mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +01:00
7b8b07b05a
adds .eslintcache to gitignore
9 lines
189 B
JavaScript
9 lines
189 B
JavaScript
import ReactGA from 'react-ga';
|
|
import { config } from 'config';
|
|
|
|
ReactGA.initialize(config.googleAnalyticsId);
|
|
|
|
exports.onRouteUpdate = (state) => {
|
|
ReactGA.pageview(state.pathname);
|
|
};
|