1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 09:23:13 +01:00

remove Google Analytics

This commit is contained in:
Matthias Kretschmann 2018-05-23 16:29:15 +02:00
parent 01669fcd59
commit f968d6c4b9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
4 changed files with 3 additions and 41 deletions

View File

@ -32,14 +32,6 @@
<body> <body>
<div id="main"></div> <div id="main"></div>
<!-- Google Analytics tracking code -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
</script>
<!-- Intercom library --> <!-- Intercom library -->
<script> <script>
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true; (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;

View File

@ -25,7 +25,6 @@ import EventActions from './actions/event_actions';
// You can comment out the modules you don't need // You can comment out the modules you don't need
// import DebugHandler from './third_party/debug_handler'; // import DebugHandler from './third_party/debug_handler';
import FacebookHandler from './third_party/facebook_handler'; import FacebookHandler from './third_party/facebook_handler';
import GoogleAnalyticsHandler from './third_party/ga_handler';
import IntercomHandler from './third_party/intercom_handler'; import IntercomHandler from './third_party/intercom_handler';
import NotificationsHandler from './third_party/notifications_handler'; import NotificationsHandler from './third_party/notifications_handler';
import RavenHandler from './third_party/raven_handler'; import RavenHandler from './third_party/raven_handler';

View File

@ -24,14 +24,12 @@ const constants = {
{ {
'subdomain': 'cc', 'subdomain': 'cc',
'name': 'Creative Commons France', 'name': 'Creative Commons France',
'type': 'wallet', 'type': 'wallet'
'ga': 'UA-60614729-4'
}, },
{ {
'subdomain': 'sluice', 'subdomain': 'sluice',
'name': 'Sluice Art Fair', 'name': 'Sluice Art Fair',
'type': 'prize', 'type': 'prize'
'ga': 'UA-60614729-5'
}, },
{ {
'subdomain': 'cyland', 'subdomain': 'cyland',
@ -85,8 +83,7 @@ const constants = {
}, },
], ],
'defaultDomain': { 'defaultDomain': {
'type': 'default', 'type': 'default'
'ga': 'UA-60614729-2'
}, },
// These are all possible types that are currently supported in HTML5 for the input element // These are all possible types that are currently supported in HTML5 for the input element

View File

@ -1,26 +0,0 @@
'use strict';
import { altThirdParty } from '../alt';
import EventActions from '../actions/event_actions';
class GoogleAnalyticsHandler {
constructor() {
this.bindActions(EventActions);
}
onRouteDidChange() {
window.ga('send', 'pageview');
}
onApplicationWillBoot(settings) {
if (settings.ga) {
window.ga('create', settings.ga, 'auto');
console.log('Google Analytics loaded');
} else {
console.log('Cannot load Google Analytics: no tracking code provided');
}
}
}
export default altThirdParty.createStore(GoogleAnalyticsHandler, 'GoogleAnalyticsHandler');