-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcookie-control-cpop.js
More file actions
30 lines (28 loc) · 1.01 KB
/
cookie-control-cpop.js
File metadata and controls
30 lines (28 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE HTML>
<script>
var config = {
apiKey: '4046f32b1e29040a42de6279781f4c78e7aef922',
product: 'community',
text : {
thirdPartyTitle : 'Warning: Some cookies require your attention',
thirdPartyDescription : 'Consent for some third party cookies can not be automatically revoked. Please follow the link below if you want to opt out of them.'
},
optionalCookies: [
{
name: 'analytics',
label: 'Google Analytics',
description: 'Analytical cookies help us to improve our website by collecting and reporting information on its usage.',
cookies: ['_ga', '_gid', '_gat', '__utma', '__utmt', '__utmb', '__utmc', '__utmz', '__utmv'],
onAccept: function(){
gtag('consent', 'update', {'analytics_storage': 'granted'});
},
onRevoke: function(){
gtag('consent', 'update', {'analytics_storage': 'denied'});
}
}
],
position: 'RIGHT',
theme: 'DARK'
};
CookieControl.load( config );
</script>