Sorry, but it’s unclear to me how this is related to the plugin. Could you clarify on how you use Cookie Notice & Consent in that case?
It sounds as if this is a different use-case than what the plugin provides.
Yes I’ll try my best:
IF Google Tag Manager is used via js, when cookies are accepet, you can change the consent to store analytics data or ads data according to the cookie selected, as you can see here gtm dev blog the same for windows clarify, you can set the cookie triggering via javascript the consent…
Ah, I see. I don’t know if it’s legal (based on your requirements and privacy laws), but you could basically do this:
Add the base code (with gtag ‘ad_storage’: ‘denied’) into the “Essential” category, and add the gtag with “‘ad_storage’: ‘granted'” code bit into the “Marketing” category. That way, the base code will always be output, and the ad consent will be output once the Marketing category has been accepted.
The additional “granted” code will not be output without a page reload though. Without page reload, additional code will only be output on the next page load (be it the same or a different page that the user navigates to).