mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-13 15:29:16 +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);
|
|
};
|