How to trigger tags in GTM when someone accepts cookies?
How to trigger tags in Google Tag Manager (GTM) when someone accepts cookies?
To trigger tags in Google Tag Manager (GTM) when someone accepts cookies, you have to adjust the consent settings for your tags in GTM. Here’s a step-by-step on how to do it:
Access Tag Settings:
Go to your GTM dashboard and navigate to the Tags section.Select the tag you want to configure or create a new tag if you haven’t already.
Configure Consent Settings:
Within the tag configuration, look for the Consent Settings (Beta) option.Enable the option Require additional consent for tag to fire.
Select the appropriate storage type that is required for the tag to fire. This ensures that the tag will only fire when the user has given the necessary consent.
Save and Publish:
After configuring the consent settings, save your changes.Publish the changes to your GTM container to ensure they take effect on your website.
By following these steps, you can ensure that your tags will only fire when the user has accepted the relevant cookies, helping you comply with cookie regulations.
For further information, read the article on how to fire GTM Tags with CookieScript events.
Did this answer your question?