Cookie consent and custom pixels

Cookie consent and custom pixels

mandako
Visitor
1 0 1

Hi!

I'm using Shopify's cookie consent banner. I must add a custom pixel to body-tag which is used for marketing. Is there a way to activate pixel only when user has given consent to use marketing cookies? Is there some variables that show the user consent? 

 

Thanks in advance.

Reply 1 (1)

tylerscave
Visitor
2 0 1

I am also very interested in this. We would love to use Shopify's native Cookie Consent Banner with our Hydrogen implementation, but we have many custom pixels/cookies that we would need to incorporate. Has anyone figured out a way to do this?