Reinstating initial setup; Only reporting to analytics where approved, fixes #247 and #268

This commit is contained in:
James Barnsley
2018-06-05 13:43:02 +12:00
parent 984d613e17
commit c27588f2f0
22 changed files with 26310 additions and 24003 deletions

View File

@ -7,7 +7,6 @@ import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import { Router, Route, Link, IndexRoute, hashHistory } from 'react-router'
import ReactGA from 'react-ga'
import store from './bootstrap.js'
require('../scss/app.scss');
@ -44,18 +43,11 @@ console.error = function(message, error){
originalConsoleError.apply(this, arguments)
*/
// setup our analytics tracking
ReactGA.initialize('UA-64701652-3');
function handleUpdate(){
ReactGA.set({ page: window.location.hash });
ReactGA.pageview(window.location.hash);
}
global.baseURL = '/'
ReactDOM.render(
<Provider store={store}>
<Router history={hashHistory} onUpdate={handleUpdate}>
<Router history={hashHistory}>
<Route path={global.baseURL} component={App}>
<IndexRoute component={Queue} />