12 lines
333 B
JavaScript
12 lines
333 B
JavaScript
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;
|