The basic configuration for CAOS is very easy. The basic settings are required for proper functioning of the plugin.
Just enter your Google Analytics Measurement ID (GA V4) (G-ABC123DEF) and you're good to go!
Tracking Logged In Administrators
For development/testing purposes, you can decide whether you want to Track Logged In Administrators. This option should be disabled on production environments!
Increase GDPR Compliance
Enabling this setting removes any data that can be used to identify a person (i.e. personal data, e.g. IP address, User Agent, Location, etc.) to use Google Analytics in compliance with the GDPR. Be warned that enabling this setting doesn't guarantee GDPR compliance of your site, e.g. any parameters that enable (internal) routing (e.g. UTM tags) must be removed from any URLs on your site. Read more
Allow Tracking...
Choose ‘Always’ if your blog doesn’t need to show a Cookie Notice or if you’ve configured Google Analytics to only collect anonymous data,
Choose 'Consent Mode' if you use a Cookie Banner which supports Google Analytics 4's Consent Mode API. (Most do)
Tracking Code
For peak performance choose the Asynchronous tracking code. This tracking code is loaded non-render blocking, providing the best user experience without sacrificing on Google Analytics’ feature set.
Are you a light-weight Google Analytics user i.e. you only care about Pageviews/Events? Enable Minimal Analytics to use only the code you need (and nothing more).
- This also eliminates the Unused JS notice in Google PageSpeed Insights for analytics.js/gtag.js, because the entire library isn’t loaded anymore! Cha-ching!
Anonymize IP Mode
Choose One to enable the aip
-parameter provided by Google Analytics which anonymizes the last octet of the user's IP address.
WARNING! This is not GDPR compliant. For full GDPR compliance, set Anonymize IP Mode to Two.
CAOS Pro is the only Google Analytics plugin for WordPress that goes further than Google Analytics' own aip
-parameter and anonymizes the last two octets of the user's IP address.
Tracking Code Position
Decide where you want to load the generated tracking code:
Choose ‘Header’ for best performance. Because the tracking code is loaded before the rest of the page, you’re sure that all visitor data can be registered by Google Analytics,
Choose ‘Footer’ (not recommended). This used to be necessary, because in some cases Google Pagespeed would throw an ‘eliminate render-block Javascript in above-the-fold content’-notice. This would cause the snippet to be loaded after everything else,
Choose ‘Add manually’ to maximize compatibility. If your theme or another plugin is preventing CAOS from adding the tracking code automatically, choose this option and copy the generated tracking code from the field underneath.