-
Notifications
You must be signed in to change notification settings - Fork 0
/
cookieconsent-config.js
123 lines (118 loc) · 4.32 KB
/
cookieconsent-config.js
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import 'https://cdn.jsdelivr.net/gh/orestbida/[email protected]/dist/cookieconsent.umd.js';
CookieConsent.run({
// https://cookieconsent.orestbida.com/reference/configuration-reference.html#guioptions
guiOptions: {
consentModal: {
layout: 'cloud inline',
position: 'bottom left',
equalWeightButtons: true,
flipButtons: false
},
preferencesModal: {
layout: 'box',
equalWeightButtons: true,
flipButtons: false
}
},
onFirstConsent: function(cookie) {
// callback triggered only once on the first accept/reject action
},
categories: {
necessary: {
enabled: true, // this category is enabled by default
readOnly: true // this category cannot be disabled
},
analytics: {
autoClear: {
cookies: [
{
name: /^_ga/, // regex: match all cookies starting with '_ga'
},
{
name: '_gid', // string: exact cookie name
}
]
},
// https://cookieconsent.orestbida.com/reference/configuration-reference.html#category-services
services: {
ga: {
label: 'Google Analytics',
cookies: [
{
name: /^(_ga|_gid)/
}
]
}
}
},
targeting: {}
},
language: {
default: 'en',
translations: {
en: {
consentModal: {
title: 'We use cookies',
description: 'Cookie modal description',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
showPreferencesBtn: 'Manage Individual preferences'
},
preferencesModal: {
title: 'Manage cookie preferences',
acceptAllBtn: 'Accept all',
acceptNecessaryBtn: 'Reject all',
savePreferencesBtn: 'Accept current selection',
closeIconLabel: 'Close modal',
sections: [
{
title: "Cookie usage",
description: "We use cookies to ensure the basic functionalities of the website and to enhance your online experience ..."
},
{
title: "Strictly necessary cookies",
description: "These cookies are essential for the proper functioning of my website. Without these cookies, the website would not work properly",
linkedCategory: "necessary"
},
{
title: "Performance and Analytics cookies",
description: "These cookies allow the website to remember the choices you have made in the past",
linkedCategory: "analytics",
cookieTable: {
headers: {
name: "Name",
domain: "Service",
description: "Description",
expiration: "Expiration"
},
body: [
{
name: "_ga",
domain: "Google Analytics",
description: "Cookie set by <a href=\"#das\">Google Analytics</a>",
expiration: "Expires after 12 days"
},
{
name: "_gid",
domain: "Google Analytics",
description: "Cookie set by <a href=\"#das\">Google Analytics</a>",
expiration: "Session"
}
]
}
},
{
title: 'Targeting and Advertising',
description: 'These cookies are used to make advertising messages more relevant to you and your interests. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.',
linkedCategory: 'targeting',
},
{
title: 'More information',
description: 'For any queries in relation to my policy on cookies and your choices, please <a href="#contact-page">contact us</a>'
}
]
}
}
}
}
});