CAOS with Borlabs Cookie + JS error with “Track Ad Blockers” enabled
-
Hey there,
I really like your plugin, great work! It’s working fine so far, but I have two issues:
- 1. I’m using Borlabs Cookies and can’t get it to work with CAOS. Borlabs saves the choices made in the Cookie Notice like this:
%7B%22consents%22%3A%7B%22essential%22%3A%5B%22borlabs-cookie%22%2C%22typekit%22%5D%2C%22statistics%22%3A%5B%22google-analytics%22%5D%2C%22external-media%22%3A%5B%22pinterest%22%2C%22instagram%22%2C%22youtube%22%5D%7D%2C%22domainPath%22%3A%22url.de%2F%22%2C%22expires%22%3A%22Mon%2C%2013%20Sep%202021%2010%3A50%3A48%20GMT%22%2C%22uid%22%3A%227y11ermn-mzci56tn-yzslnzwl-hfdtfxu2%22%2C%22version%22%3A%221%22%7D
So I’ve entered “google-analytics” in the cookie value field in CAOS settings, but this won’t work. I suspect that CAOS looks for the exact value of the specified cookie and not if value is a part of the whole string. So is it possible to use wildcards or something?
- 2. If I enable the “Track Ad Blockers” extension I get a JS error in the console:
detect-ad-block.js?ver=3.7.6:8 Uncaught TypeError: Cannot read property 'appendChild' of null at Object.create_element (detect-ad-block.js?ver=3.7.6:8) at Object.init (detect-ad-block.js?ver=3.7.6:8) at detect-ad-block.js?ver=3.7.6:10 create_element @ detect-ad-block.js?ver=3.7.6:8 init @ detect-ad-block.js?ver=3.7.6:8 (anonymous) @ detect-ad-block.js?ver=3.7.6:10
This happens both with Firefox and Chrome without an AdBlocker enabled. If I enable an AdBlocker (uBlock Origin) the error vanishes. Instead I get another error, but I think thats unrelated and just uBlock blocking the “Stealth Mode Lite” feature:
analytics.js:36 POST https://foodnphoto.de/wp-json/caos/v1/proxy/j/collect?v=1&_v=j85&aip=1&a=482876993&t=pageview&_s=1&dl=https%3A%2F%2Ffoodnphoto.de%2Fstracciatella-kuchen-orangen-1347%2F&ul=de-de&de=UTF-8&dt=Stracciatella-Kuchen%20mit%20Orangen%20-%20Food%27n%27Photo&sd=24-bit&sr=1920x1080&vp=1920x969&je=0&_u=SCCAAAIhEAAAAC~&jid=1275538016&gjid=919406489&cid=136492942.1600000405&tid=UA-125435680-1&_gid=2125652915.1600000405&_r=1&z=772024740 net::ERR_BLOCKED_BY_CLIENT
Any help is appreciated!
Cheers,
PhilippThe page I need help with: [log in to see the link]
- 1. I’m using Borlabs Cookies and can’t get it to work with CAOS. Borlabs saves the choices made in the Cookie Notice like this:
- The topic ‘CAOS with Borlabs Cookie + JS error with “Track Ad Blockers” enabled’ is closed to new replies.