Skip to content

Commit f3511d4

Browse files
committed
fix: name consent marketing to align with c15t
1 parent 8fccc57 commit f3511d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/c15t-cookie-banner.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
const defaultConsent = {
1313
necessary: true,
1414
analytics: false,
15-
identification: false,
15+
marketing: false,
1616
};
1717

1818
// Wait for the page to fully load
@@ -75,8 +75,8 @@
7575
if (window.gtag) {
7676
window.gtag("consent", "update", {
7777
analytics_storage: consent.analytics ? "granted" : "denied",
78-
ad_user_data: consent.identification ? "granted" : "denied",
79-
ad_personalization: consent.identification ? "granted" : "denied",
78+
ad_user_data: consent.marketing ? "granted" : "denied",
79+
ad_personalization: consent.marketing ? "granted" : "denied",
8080
});
8181
}
8282

@@ -116,7 +116,7 @@
116116
const consent = {
117117
necessary: true,
118118
analytics: true,
119-
identification: true,
119+
marketing: true,
120120
};
121121
applyConsent(consent);
122122
hideCookieBanner();
@@ -184,7 +184,7 @@
184184
<div class="cookie-category">
185185
<div class="cookie-category-header">
186186
<label class="cookie-switch">
187-
<input type="checkbox" id="cookie-identification" ${currentConsent.identification ? "checked" : ""}>
187+
<input type="checkbox" id="cookie-marketing" ${currentConsent.marketing ? "checked" : ""}>
188188
<span class="cookie-slider"></span>
189189
</label>
190190
<div class="cookie-category-info">
@@ -211,7 +211,7 @@
211211
const consent = {
212212
necessary: true,
213213
analytics: false,
214-
identification: false,
214+
marketing: false,
215215
};
216216
applyConsent(consent);
217217
hidePreferencesDialog();
@@ -221,7 +221,7 @@
221221
const consent = {
222222
necessary: true,
223223
analytics: document.getElementById("cookie-analytics").checked,
224-
identification: document.getElementById("cookie-identification")
224+
marketing: document.getElementById("cookie-marketing")
225225
.checked,
226226
};
227227
applyConsent(consent);

0 commit comments

Comments
 (0)