I would like to implement this code on a page to give the user the possibility to opt-out of google analytics.
<a href="#" onclick="document.cookie='ga-disable-UA-12345-67=true;expires=Thu, 31 Dec 2099 23:59:59 UTC;path=/';window['ga-disable-UA-12345-67']=true;return false">Opt-Out Cookie für diesen Browser und diese Website setzen</a>
Is it somehow possible with WIX code? I tried to do that with the HTML-App. But that is just an iFrame and don´t work for this code.
Or is there another way to do that not using cookies?
https://webixdesigns.wixsite.com/search-redirect
Hi,
You can try the Track & Analyze feature. For questions regarding this feature, please contact Wix support team.
Best,
Tal.