Skip to content

Google Consent Mode v2? #48

Answered by johannschopplich
younex1 asked this question in Q&A
Discussion options

You must be logged in to vote

Sure thing, you can send any parameters to Google via the gtag method:

const { gtag } = useGtag()

gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied'
})

Tip

Head over to the docs for the whole useGtag
usage.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@johannschopplich
Comment options

Answer selected by johannschopplich
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants