Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire one or a few tags withing ad_storage #466

Open
Abathi opened this issue Jan 30, 2023 · 0 comments
Open

Fire one or a few tags withing ad_storage #466

Abathi opened this issue Jan 30, 2023 · 0 comments

Comments

@Abathi
Copy link

Abathi commented Jan 30, 2023

I am applying Klaro on GTM to block third parties cookies, however I am only able to enable all of them or block all of them.
Knowing that I added a JS variable to check the Klaro cookie then updating ad_storage to granted/denied.
this is the variable logic:
function(){
var cookie = {{klaro}}
if(!cookie){return 'denied'}
var json = JSON.parse(cookie)
if(json["Facebook Ads"] && json["Facebook Pixel Ads"] && json["Twitter Ads"] && json["Tiktok Ads"] && json["RTB Ads"] && json["Line Ads"]){
return "granted";
} else {
return "denied";
}
}
This means that "ad_storage" will be set to "granted" only if all conditions are met.
And what if we need to fire only one of those tags?
How should we do this? How to make fire only one or a few tags within that "ad_storage"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant