Add Google Analytics Tracking

This commit is contained in:
Mathias Schopmans
2017-05-22 09:04:20 +02:00
parent 6ac899463b
commit 33e66cb6fe
2 changed files with 14 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import App from './components/App';
import appReducer from './reducer';
import actions, { NAVIGATE } from './actions';
import {isMobileViewport} from '../common/config'
import {track} from './analytics';
// Remove .html and map / to index
const getPageNameFromPath = (path) => {
@@ -59,6 +60,7 @@ const store = createStore(appReducer, preloadedState, applyMiddleware(historyMan
const handleSetTitle = (title) => {
document.title = `${title} | AOE Technology Radar`;
track();
};
render(