Cookie after Opt In - otherwise no cookie

i want to try to make the cookie only availible after a opt in via a thirdparty opt in tool. When this opt in is not given, I want to track cookieless.

I have the cookieless version running but dont know how to “enable the cookie” via a script. Is there a possibility to activate cookie tracking via a custom script or do I just need to place the cookie tracking script in the opt in tool and then automatically the “non cookie” script is disabled?

Thank you so much for your help


You should be able to follow to achieve pretty much exactly this.

1 Like

Hey Lukas,
thank you so much for sharing. Look perfect.

Best regards