mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-27 07:18:17 +01:00
8 lines
197 B
JavaScript
8 lines
197 B
JavaScript
|
import ReactGA from 'react-ga'
|
||
|
import {config} from 'config'
|
||
|
|
||
|
ReactGA.initialize(config.googleAnalyticsId);
|
||
|
|
||
|
exports.onRouteUpdate = (state, page, pages) => {
|
||
|
ReactGA.pageview(state.pathname);
|
||
|
};
|