-
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Kingston] Add cookie control and analytics code.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] | ||
<!-- Google Tag Manager (noscript) --> | ||
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-57VJDBT" | ||
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | ||
<!-- End Google Tag Manager (noscript) --> | ||
[% END %] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[% IF c.config.BASE_URL == "https://www.fixmystreet.com" %] | ||
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js" type="text/javascript"></script> | ||
<script> | ||
var config = { | ||
apiKey: '67e66ced473704b266e9c82015018ff0030f92ca', | ||
product: 'PRO', | ||
optionalCookies: [ | ||
{ | ||
name: 'analytics', | ||
label: 'Analytics', | ||
description: 'Analytical cookies help us to improve our website by collecting and reporting information on its usage.', | ||
cookies: ['_ga', '_gid', '_gat', '_gat_UA-*', '_ga_*', '_hjid', '__hjTLDTest', 'mc', 'd'], | ||
onAccept : function(){ | ||
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | ||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | ||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | ||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | ||
})(window,document,'script','dataLayer','GTM-57VJDBT');}, | ||
onRevoke: function(){} | ||
},{ | ||
name: 'marketing', | ||
label: 'Marketing', | ||
description: 'We use marketing cookies to help us improve the relevancy of advertising campaigns you receive.', | ||
cookies: [], | ||
onAccept : function(){}, | ||
onRevoke: function(){} | ||
},{ | ||
name: 'preferences', | ||
label: 'Preferences', | ||
description: 'Your preferences will apply to this website only. Please note that some processing of your personal data may not require your consent, but you have a right to object to such processing. You can change your preferences at any time by returning to this site or visit our privacy policy.', | ||
cookies: [], | ||
onAccept : function(){}, | ||
onRevoke: function(){} | ||
} | ||
], | ||
position: 'LEFT', | ||
theme: 'LIGHT' | ||
}; | ||
CookieControl.load( config ); | ||
</script> | ||
[% END %] |