Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting privacy options still creates cookies #508

Open
deefeloper opened this issue Dec 1, 2022 · 1 comment
Open

setting privacy options still creates cookies #508

deefeloper opened this issue Dec 1, 2022 · 1 comment

Comments

@deefeloper
Copy link

deefeloper commented Dec 1, 2022

Using [email protected] (as recommended for vue 2.x and installed by using tag @legacy) I see that it still creates 2 cookie values (used to be 3 without the additional flags).

Maybe anybody can help me in understanding why this happens.

The code I use is:

 Vue.use(VueGtag, {
    config: {
      id: config.googleAnalytics,
      params: {
        client_storage: 'none',
        anonymize_ip: true
      }
    }
  }, router);
@deefeloper deefeloper changed the title settings privacy options still creates cookies setting privacy options still creates cookies Dec 1, 2022
@EstiT
Copy link

EstiT commented Dec 22, 2022

If you deny ad_storage and analytics_storage, then the cookies shouldn't appear

this.$gtag.query('consent', 'default', {
        ad_storage: 'denied',
	analytics_storage: 'denied',
})

https://matteo-gabriele.gitbook.io/vue-gtag/v/master/query
https://developers.google.com/tag-platform/devguides/consent#set_consent_defaults

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants