Hi,
I found that when using CAOS I was unable to use the GA4 instructions to filter my internal IP in my analytics account. I found this link in another support thread – https://github.com/Dan0sz/caos-exclude-ips and I have enabled this additional plugin to filter this from my server.
I just wanted to confirm if this is still the recommended way, or if this functionality has since been merged into the main CAOS plugin and if I should enable this via a function or something?
Thanks,
Brendan
]]>Yo Daan,
I use Autoptimize to combine and minify scripts, including inline code, but I want to keep the Analytics tracking in the HEAD. However, since I use Stealth Mode, the plugin inserts 2 inline script tags with no IDs or source files, and there’s no way to exclude them.
Can you please add IDs to these SCRIPT tags, along with data-noptimize="true"
?
To be extra compliant, it’ll be good to add data-cfasync="false" data-wpfc-render="false"
as well.
Thank you!
]]>I’m having trouble getting it to work on one site (sorry it’s tricky providing a link because I don’t want to leave it without working tracking). If I click on regenerate aliases, I get this error with debugging enabled – not sure if it explains it.
Deprecated: Automatic conversion of false to array is deprecated in /customers/3/7/d/example.com/httpd.www/test/wp-content/plugins/host-analyticsjs-local/includes/admin/class-notice.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/7/d/example.com/httpd.www/test/wp-content/plugins/host-analyticsjs-local/includes/admin/class-notice.php:36) in /customers/3/7/d/example.com/httpd.www/test/wp-admin/includes/misc.php on line 1438 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/7/d/example.com/httpd.www/test/wp-content/plugins/host-analyticsjs-local/includes/admin/class-notice.php:36) in /customers/3/7/d/example.com/httpd.www/test/wp-includes/functions.php on line 7108 Warning: Cannot modify header information - headers already sent by (output started at /customers/3/7/d/example.com/httpd.www/test/wp-content/plugins/host-analyticsjs-local/includes/admin/class-notice.php:36) in /customers/3/7/d/example.com/httpd.www/test/wp-admin/admin-header.php on line 9
]]>
Does this plugin support multiple IDs for the same script? I can’t see any mention of it.
Thanks
]]>hello can you help me i have set mnimal analytics 4 but it not runs the code When cookie is set cookie_notice_accepted it always runs the tracking code can i fix it ? thanks a lot
i have tried and the When cookie has a value (exact match) but the same
]]>Hey there,
I recently noticed a weird drop in my visitor data in GA and while looking at CAOS, I noticed that the Stealth Mode (Pro) Feature no longer bypasses all adblockers.
Tested this with Chrome & Firefox while having uBlock Origin enabled. ublock seems to detect the /wp-json/caos/v1/proxy/stealth POST request and blocks it. This occurs on multiple websites I have CAOS installed on. A few months ago, everything was still working and ublock wasn’t able to detect the request. Other adblockers seem not to be affected and won’t block the request.
I would like to know if there’s a way to restore the adblock bypass regarding uBlock, or if this method has now been officially “detected” so it will no longer work with this adblocker. If that’s the case and since uBlock Origin is one of the most popular blockers (at least I think it is), I will reluctantly have to switch. Hosting GA locally isn’t difficult, but the adblock bypass is a unique selling point of your plugin.
Cheers
Philipp
CookieYes has added Google Consent mode via the UI, What interferences will that have with CAOS, what setting should we use in CAOS?
Currently I have in CAOS Allow Tracking: When Consent Mode’s?analytics_storage
?property is updated to “granted” by another plugin and
Cookie Name: empty
Are my settings correct?
Is there any way to test the google consent mode or should I rely on the network inspection tool and the parameter gcs=G100
for declined and gcs=G111
for allowed.
Hi there,
I just upgraded CAOS to the pro version and noticed that the names of the corresponding cookies are now the standard Google Analytics cookie names (ga and _ga), whereas before there were cookies named CaosGtag_ga (which I don’t see anymore). Hence my question in the sub.
Thank you!
]]>Hello,
I would like to know how could one verify that the consent mode signals are working as they should.
Normally, we can visit the site through tagassistant.google.com and it will show the events, consent signals, etc.
Tried with CAOS and Asynchronous mode, but event though I get the message:
Tag Assistant Connected
Debug information for this page is viewable in the Tag Assistant window
no info is shown in tag assistant.
It also mentions:
“To improve the quality of your testing, enable your Tag Manager container for debugging in the Tag Assistant window, then return here.”
but the tracking is only through GA4. This message I think normally appear if a site uses Google Tag Assistant.
The setup is using CookieYes. CAOS is initially setup as “Always Allow tracking” so that CookieYes will find the cookies on the initial scan. Afterwards, I switch it to track only when analytics_storage
is granted.
Verify that the consent signal are sent is very important for everyone I guess. So how could we verify that?
Thank you!
PS: with the “minimal” version, tagassistant cannot recognise anything. But I guess this is probably expected.
PS2: Also, the CaosGtag_ga* cookies are actually the ga cookies?
]]>When I have the CAOS plugin and the Complianz plugin installed, the Google Analytics tags do not appear, and it is not possible to check with Google’s Tag Assistant whether the consents are functioning correctly. After disabling CAOS, the Google Analytics tags display properly and the consents from Google also appear correctly.
I have tried various configurations, entering my Google Measurement ID in the Data Stream Measurement ID both with and without specifying it.
Allow tracking… Always (default) or when Consent Mode’s analytics_storage property is updated to “granted” by another plugin.
Tracking Code: Asynchronous
This did not help, please assist me in solving this issue. Thank you in advance.
hello so how can i make the caos analytics ?consent mode v2 i have implament with cookie notice and set ?When cookie is set on cookie_notice_accepted is this ok with consent mode v2 ? thanks a lot
]]>Hello the console says Third-party cookie will be blocked. Learn more in the Issues tab. Is that normal ? Thanks a lot
]]>Hi Daan
Thanks for making this plugin available, it looks great but I have some questions before I can use it specifically in regards to how it will work with Cloudflare’s APO. I see your plugin description lists “Cloudflare Compatibility Mode” as a PRO feature, but I can’t find any details about this in your docs?
With Cloudflare’s APO a web page could be fully or partially cached and served by Cloudflare, including the HTML and assets (JS/CSS) of the page.
When your plugin updates the GA JS file and it gets a new file name. How does this play ball with Cloudflare’s cached version?
Let’s say for example Cloudflare fully caches the HTML of a web page which references one of your generated GA JS files. For whatever reason the JS file itself is however not cached by Cloudflare. Now your plugin updates the GA JS file, giving it a new file name. When a user requests the web page it still references the old file name in the HTML, so the browser tries to retrieve that old file, presumably triggering a 404 and leading to the user not being tracked.
I am guessing optimally whenever your plugin updates the GA JS file, the whole Cloudflare cache would be purged. Does that happen? Am I missing something?
Hello and thank you for the nice plugin!
So basically my question is how to verify that tracking is active or not.
I am also using the Cookie Notice & Compliance for GDPR/CCPA plugin, which sets a cookie named cookie_notice_accepted
with a value of true
when the user accepts.
CAOS is set to allow tracking “When cookie has a value (exact match)”, I provide the name of the cookie and the value true.
I am also using the minimal version, so I would like to know what should change in the page/tracking when the cookie is set.
I also tried with with the Asyncronous mode and I can see that the analytics js (uploads/caos/[random].js?id=my_ga4_id
) is always loaded. Tried to change the cookie name in the CAOS settings with an invalid one, but still I see the .js file.
My guess would have been that in async mode the .js would not load at all. Not sure if that is true and also have no idea what should happen in the minimal version since the code is inlined in the page.
Thank you!
PS: also noticed in the logs that there is a deprecation warning:
]]>PHP Deprecated: Function utf8_encode() is deprecated in wp-content/plugins/host-analyticsjs-local/includes/admin/class-settings.php on line 456
Hi Daan
I recently installed CAOS free. We use the Complianz plugin to get consent for statistics collection, which sets a functional cookie ‘cmplz_statistics’ to ‘allow’ if consent is given.
In CAOS, if I select the default Asynchronous code and allow tracking when that cookie has that value, all works as expected. I can see the local renamed gtag.js script being loaded or not in Chrome Developer tools.
But if I select Minimal Analytics 4, it appears that the cookie condition is ignored and data is still sent to GA when the cookie is not set to ‘allow’, which obviously breaks GDPR rules.
MA4 appears to load two inline scripts into the <head> of the page rather than loading a .js file, regardless of the cookie setting. Is this the expected behaviour? And how can I make sure no data is sent to GA with MA4 if consent is refused or not yet given?
(I have disabled all caching and am testing in an Incognito window).
Kind regards
Julian
]]>Is it safe to assume that, since the gtag.js is local, that also the cookie will be local; in other words: making the former third party cookie a first party cookie?
Best
Marc
]]>Hi, unfortunately the newest plugin version v4.7.13 produces a PHP Notice PHP Notice:
Warning: Undefined array key “_wpnonce” in /home/*/domains/*/public_html/wp-content/plugins/host-analyticsjs-local/includes/class-caos.php on line 407
Hi, I would like to know if CAOS can implement Google Tag Manager?
I’m using GTM to track conversions in Google Ads. Is there a better way or the plugin support it?
Thanks!
]]>Hi
I hope you are fine.
I have CAOS installed along with WooCommerce GA integration.
On my mobile, I use the free Adblocker browser and I notice that when I use it, Google Analytics does not record any visit.
Can you please check if CAOS is well installed and configured correctly?
Would I need the pro version?. I previous posts, I read that “Stealth Mode does not work with gtag.js”
Thanks.
]]>Hi there,
I’m trying to configure e-commerce events such as add to cart and purchase.
I trying to find how to create the data layer to send and the trigger. All the docs from Google use Google Tag.
Is there a way to configure all of this using CAOS ?
If yes, is there some documentation how to do so or can you please explain ?
Thanks, sorry if if has been asked before but I could not find it in the search.
Thanks
]]>Hi,
I just installed your plugin after using another solution (Zaraz)
I installed it & put my measurement ID but I’m not getting any data.
I followed your instructions, deactivated internal cron & activated a 5 minute Cron job.
Still nothing.
Is there something I have to configure in Google Analytics ?
Please help.
]]>Hi!
I used to have this code that tracked the events:
var myEvent = $(this).data(“my”);
ma.trackEvent(myEvent, ‘ClickOut’);
And it worked good it sent the event to ga4 with my the correct parameter. Now i can’t gte the new way of doing it to work. I tried this:
track({ type: ‘ClickOut’, event: {‘event_category’: myEvent} });
it does track the event but it won’t send the parameters. Any ideas how to fix this?
hello i need you help is ok google to track any of 404 not found pages ? because on the panel on live users it shows how many users is on 404 not found is this correct or somethings i got wrong on the settings ? thanks a lot
update i se the setting to load the code on footer and now is ok not shows up on the 404 not found pages
]]>Hi there,
As far as I understand this plugin also add some codes.
Does your plugin support it?
https://www.ads-software.com/plugins/google-listings-and-ads/
]]>Beside the issue that after one of the upgrades the GA4 code field is erased there is much more serious issue. If I set that CAOS runs the GA4 code only if a cookie has an exact value this doesn’t work correctly any more. This suddenly stopped working on a few sites I manage. If I use cookie value is set it works, but I need it working only if the cookie value “viewed_cookie_policy” is set to “yes”. As said this worked before when there were the old and the GA4 code (dual tracking) but now doesn’t work anymore.
Please advise!
Does this plugin have a way to filter out your IP address when you’re not logged in on the website? I can’t see anywhere to filter out my IP.
The process of doing it from Google Analytics is so depressing to follow.
I have migrated to GA4 and am using a G- type label. Since then it has never transmitted data. Can you help? Thank you
]]>mod_fcgid: stderr: PHP Warning: file_get_contents(/var/www/vhosts/domain.gr/httpdocs/wp-content/plugins/caos-pro/caos-pro.php): Failed to open stream: No such file or directory in?/var/www/vhosts/domain.gr/httpdocs/wp-includes/functions.php?on line 6651
]]>Which compatible GA4 wordpress plugins work well with CAOS PRO?
]]>I attempted to use the new caos_local_file_url filter, but it only changes the URL of the GA JavaScript in the code and does not affect where the GA file is downloaded. This makes the filter useless.
We need a way to manually specify the path and the constant filename of the downloaded script.