You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be useful to be able to apply simple OR or AND in data-category so It's loaded when either or both categories are granted. I know about onChange and onConsent but solution like this provides extra flexibility with some CMS solutions.
Proposed solution
Example OR:
<scripttype="text/plain" data-category="analytics|marketing">// gets loaded when analytics or marketing consent is grantedwindow.dataLayer=window.dataLayer||[];functiongtag(){dataLayer.push(arguments);}</script>
Example AND:
<scripttype="text/plain" data-category="analytics&marketing">// gets loaded when both analytics and marketing consent is grantedgtag('consent','update',{'analytics_storage': 'granted','ad_user_data': 'granted','ad_personalization': 'granted','ad_storage': 'granted',});</script>
Additional details
No response
The text was updated successfully, but these errors were encountered:
Description
It might be useful to be able to apply simple OR or AND in data-category so It's loaded when either or both categories are granted. I know about
onChange
andonConsent
but solution like this provides extra flexibility with some CMS solutions.Proposed solution
Example OR:
Example AND:
Additional details
No response
The text was updated successfully, but these errors were encountered: