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:
parent
01669fcd59
commit
f968d6c4b9
@ -32,14 +32,6 @@
|
||||
<body>
|
||||
<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 -->
|
||||
<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;
|
||||
|
@ -25,7 +25,6 @@ import EventActions from './actions/event_actions';
|
||||
// You can comment out the modules you don't need
|
||||
// import DebugHandler from './third_party/debug_handler';
|
||||
import FacebookHandler from './third_party/facebook_handler';
|
||||
import GoogleAnalyticsHandler from './third_party/ga_handler';
|
||||
import IntercomHandler from './third_party/intercom_handler';
|
||||
import NotificationsHandler from './third_party/notifications_handler';
|
||||
import RavenHandler from './third_party/raven_handler';
|
||||
|
@ -24,14 +24,12 @@ const constants = {
|
||||
{
|
||||
'subdomain': 'cc',
|
||||
'name': 'Creative Commons France',
|
||||
'type': 'wallet',
|
||||
'ga': 'UA-60614729-4'
|
||||
'type': 'wallet'
|
||||
},
|
||||
{
|
||||
'subdomain': 'sluice',
|
||||
'name': 'Sluice Art Fair',
|
||||
'type': 'prize',
|
||||
'ga': 'UA-60614729-5'
|
||||
'type': 'prize'
|
||||
},
|
||||
{
|
||||
'subdomain': 'cyland',
|
||||
@ -85,8 +83,7 @@ const constants = {
|
||||
},
|
||||
],
|
||||
'defaultDomain': {
|
||||
'type': 'default',
|
||||
'ga': 'UA-60614729-2'
|
||||
'type': 'default'
|
||||
},
|
||||
|
||||
// These are all possible types that are currently supported in HTML5 for the input element
|
||||
|
26
js/third_party/ga_handler.js
vendored
26
js/third_party/ga_handler.js
vendored
@ -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');
|
Loading…
Reference in New Issue
Block a user