Support gtag consent mode in gatsby-plugin-google-gtag #31562
Unanswered
chrishilditch
asked this question in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It'd be nice if the gatsby-plugin-google-gtag plugin supported gtag's consent option.
From the google docs - 'Consent mode (beta) allows you to adjust how your Google tags behave based on the consent status of your users. You can indicate whether consent has been granted for Analytics and Ads cookies. Google's tags will dynamically adapt, only utilizing measurement tools for the specified purposes when consent has been given by the user.'
The plugin current allows you to set other options.
I think it'd be nice if you could set the default consent option in gatsby-config.js, along with the other gtag options. And add a JS example to the documention to show how to update the consent settings.
I can put together a PR for this.
Beta Was this translation helpful? Give feedback.
All reactions