mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2024-12-26 14:59:14 +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);
|
|
}; |