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

How to configure consent mode? #172

Open
42savage opened this issue Jan 21, 2025 · 0 comments
Open

How to configure consent mode? #172

42savage opened this issue Jan 21, 2025 · 0 comments

Comments

@42savage
Copy link

Hi im configuring google tag manager and i want to implement consent mode.

Now im just using code like this but it looks like it send it to google as custom event, not as consent i think

  this.$gtm.push({
    event: 'cookie_consent_update',
    cookie_consent_status: 'custom',
    cookie_consent_analytics: this.consent.analytics ? 'granted' : 'denied',
    cookie_consent_advertising: this.consent.advertising ? 'granted' : 'denied',
    cookie_consent_functionality: this.consent.functionality ? 'granted' : 'denied',
    cookie_consent_personalization: this.consent.personalization ? 'granted' : 'denied'
  })

In google tag manager debug console im getting event like this

Image

but in docs it looks like this

Image

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

1 participant