From 95b98fc4edb79ec99cabbb16608078bf1f5a483f Mon Sep 17 00:00:00 2001 From: willyb321 Date: Mon, 29 Apr 2019 06:33:11 +1000 Subject: [PATCH] remove google analytics --- src/app/Router.js | 12 ------------ src/index.ejs | 9 --------- 2 files changed, 21 deletions(-) diff --git a/src/app/Router.js b/src/app/Router.js index 37bd2305..1bac3386 100644 --- a/src/app/Router.js +++ b/src/app/Router.js @@ -1,7 +1,5 @@ import Persist from './stores/Persist'; -import ReactGA from 'react-ga'; -ReactGA.initialize('UA-55840909-18'); let standalone = undefined; /** @@ -259,16 +257,6 @@ Route.prototype.match = function(path, params) { * @param {string} path Path to track */ function gaTrack(path) { - const match = path.match(/\/outfit\/(.*)(\?code=.*)/); - if (match) { - if (match[1]) { - ReactGA.ga('set', 'contentGroup1', match[1]); - } - if (match[2]) { - ReactGA.ga('set', 'contentGroup2', match[2]); - } - } - ReactGA.pageview(path); const _paq = window._paq || []; _paq.push(['trackPageView']); } diff --git a/src/index.ejs b/src/index.ejs index 37381f38..ddaada89 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -32,15 +32,6 @@ window.CORIOLIS_DATE = '<%- htmlWebpackPlugin.options.date.toISOString().slice(0, 10) %>'; window.BUGSNAG_VERSION = '<%- htmlWebpackPlugin.options.version + '-' + htmlWebpackPlugin.options.date.toISOString() %>'; - <% if (htmlWebpackPlugin.options.uaTracking) { %> - - - <% } %> -