How to use google tag manager with magento cookie consent? #81
Unanswered
alinakonkulovska-eng
asked this question in
Q&A
Replies: 1 comment
|
If you're referring to the default Magento cookie restriction mode, then our Magento 2 Google Tag Manager Extension is fully compatible with it. It works with any consent logic, which shouldn't necessarily be built inside the Google Tag Manager triggers. Just keep the "Load GTM Script Before Consent" option disabled for the GTM extension to load the GTM script only after consent. And if you're using any other tool for collecting cookie, Magefan extension will load the script, but GTM won't send any data to Google Analytics or elsewhere unless consent it given. |
0 replies
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.
Working on a Magento store that uses the Magefan Google Tag Manager extension together with a cookie consent plugin. The main goal is to make sure GTM tags respect user consent before firing.
The part that’s a bit unclear is where this should actually be handled. Should consent logic live inside Google Tag Manager triggers, or is there some recommended way to configure it through the extension or Magento side?
If someone already set up GTM with cookie consent in Magento 2, any pointers or documentation would be useful. Mainly trying to avoid analytics or marketing tags firing before the visitor accepts cookies.
All reactions