Fix analytics

This commit is contained in:
Sam Potts
2019-01-17 18:50:26 +11:00
parent e40c63b9e7
commit ad72ebd4bb
6 changed files with 16 additions and 28 deletions

View File

@ -276,13 +276,4 @@ import Raven from 'raven-js';
if (env.prod) {
Raven.config('https://d4ad9866ad834437a4754e23937071e4@sentry.io/305555').install();
}
// Google analytics
// For demo site (https://plyr.io) only
if (env.prod) {
window.dataLayer = window.dataLayer || [];
const gtag = () => window.dataLayer.push(arguments); // eslint-disable-line
gtag('js', new Date());
gtag('config', 'UA-132699580-1');
}
})();