Skip to content

Commit de15025

Browse files
committed
Add ad cookies for GDPR
1 parent c665591 commit de15025

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/components/gdpr/GdprModal.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
a form or define your cookie preferences. If you configure your computer to block these cookies or to warn you
2828
of their existence, our website will not function fully.
2929
</p>
30-
</div>
31-
<div class="column">
3230
<div class="is-flex is-justify-content-space-between is-align-items-baseline">
3331
<h2 class="is-size-3" v-translate>Statistical cookies</h2>
3432
<div class="field">
@@ -47,6 +45,20 @@
4745
website and know the sources of traffic. Data we obtain help us understand what visitors like and improve our
4846
website. If you reject them, we cannot improve your experience.
4947
</p>
48+
</div>
49+
<div class="column">
50+
<div class="is-flex is-justify-content-space-between is-align-items-baseline">
51+
<h2 class="is-size-3" v-translate>Advertisement cookies</h2>
52+
<div class="field">
53+
<input type="checkbox" id="ad" name="ad" class="switch is-rounded" v-model="gdpr.ad" />
54+
<label for="ad"></label>
55+
</div>
56+
</div>
57+
<p v-translate>
58+
These cookies are used to provide you with personalized advertising based on your browsing on the site. They
59+
track your activities on the site in order to display relevant ads tailored to your interests. By disabling
60+
these cookies, you will continue to see ads, but they will no longer be tailored to your preferences.
61+
</p>
5062
<div class="is-flex is-justify-content-space-between is-align-items-baseline">
5163
<h2 class="is-size-3" v-translate>Social cookies</h2>
5264
<div class="field">

src/js/vue-plugins/gdpr.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ export default function install(Vue) {
4141
},
4242

4343
setAll(accept) {
44-
this.set(accept ? { statistics: true, social: true } : { statistics: false, social: false });
44+
this.set(
45+
accept ? { statistics: true, social: true, ad: true } : { statistics: false, social: false, ad: false }
46+
);
4547
},
4648
},
4749
});

0 commit comments

Comments
 (0)