Added web and email notifications. Tests. Fire page
This commit is contained in:
parent
df05b33e82
commit
3bf21c8caf
32 changed files with 696 additions and 88 deletions
12
imports/ui/components/History/History.js
Normal file
12
imports/ui/components/History/History.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { Meteor } from 'meteor/meteor';
|
||||
import createHistory from 'history/createBrowserHistory';
|
||||
|
||||
const history = createHistory();
|
||||
|
||||
history.listen((location) => { // , action ) => {
|
||||
// console.log(location.pathname);
|
||||
// console.log(action); // PUSH, etc
|
||||
Meteor.Piwik.trackPage(location.pathname);
|
||||
});
|
||||
|
||||
export default history;
|
||||
Loading…
Add table
Add a link
Reference in a new issue