Created
August 24, 2018 13:05
-
-
Save bradical/2510422ded81ebc86badfddb28522e63 to your computer and use it in GitHub Desktop.
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
<script src="https://cc.cdn.civiccomputing.com/8.0/cookieControl-8.0.min.js"></script> | |
<script> | |
var config = { | |
apiKey: '<API-KEY>', | |
product: 'PRO', | |
necessaryCookies: ['<GTM_COOKIE>'], // for GTM itself | |
optionalCookies: [{ | |
name: 'analytics', | |
label: 'Analytics', | |
description: 'We use cookies to track analytics and engagement with things like videos on our sites including Google Analytics, FullStory, and Spectate.', | |
cookies: ['_gid','_ga*',','__distillery', 'fs_uid'], // GA, FullStory (eventually) | |
initialConsentState: 'on', | |
onAccept : function(){ | |
dataLayer.push({'event':'cookiecontrol_analytics_consent', 'CookieControl.analytics.consent':'on'}); | |
}, | |
onRevoke: function(){ | |
dataLayer.push({'event':'cookiecontrol_analytics_opt-out','CookieControl.analytics.consent':'off'}); | |
}, | |
/* thirdPartyCookies: [ | |
{"name": "Google Analytics", "optOutLink": ""} | |
{"name": "Spectate", "optOutLink": ""} | |
{"name": "Spectate", "optOutLink": ""} | |
]*/ | |
},{ | |
name: 'functional', | |
label: 'Functional', | |
description: 'We use functional cookies to enable site features site including the messaging feature.', | |
cookies: ['intercom-id-ndutusm1','__distillery'], // Intercom, Wistia | |
initialConsentState: 'on', | |
onAccept : function(){ | |
dataLayer.push({'event':'cookiecontrol_functional_consent', 'CookieControl.functional.consent':'on'}); | |
}, | |
onRevoke: function(){ | |
dataLayer.push({'event':'cookiecontrol_functional_opt-out','CookieControl.functional.consent':'off'}); | |
}, | |
/* thirdPartyCookies: [ | |
{"name": "Intercom", "optOutLink": ""} | |
{"name": "Wistia", "optOutLink": ""} | |
]*/ | |
},{ | |
name: 'marketing', | |
label: 'Marketing', | |
description: 'We use marketing cookies to help us create targeted advertising.', | |
cookies: [], // Facebook, Google Ads are third-party only afaik | |
initialConsentState: 'on', | |
onAccept : function(){ | |
dataLayer.push({'event':'cookiecontrol_marketing_consent', 'CookieControl.marketing.consent':'on'}); | |
}, | |
onRevoke: function(){ | |
dataLayer.push({'event':'cookiecontrol_marketing_opt-out','CookieControl.marketing.consent':'off'}); | |
}, | |
/* thirdPartyCookies: [ | |
{"name": "Facebook Pixel", "optOutLink": ""} | |
{"name": "Google Ads", "optOutLink": ""} | |
]*/ | |
}], | |
position: 'LEFT', | |
theme: 'LIGHT', | |
initialState: 'notify', | |
text : { | |
title: 'We uses cookies on this site.', | |
intro: 'Some of these cookies are essential, while others help us to improve your experience by providing insights into how the site is being used.', | |
necessaryTitle : 'Necessary Cookies', | |
necessaryDescription : 'Necessary cookies enable core functionality. The website cannot function properly without these cookies, and can only be disabled by changing your browser preferences. This includes things like Google Tag Manager itself which is used to trigger on/off the categories mentioned below.', | |
}, | |
statement : { | |
description: 'For more information vist our', | |
name : 'Privacy Policy', | |
url: '<link to our privacy policy>', | |
updated : '27/07/2018' | |
} | |
}; | |
CookieControl.load( config ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment