The basic configuration for CAOS is very easy. The basic settings are required for proper functioning of the plugin.
For development/testing purposes, you can decide whether you want to Track Logged In Administrators. This option should be disabled on production environments!
For GDPR Compliance, decide when you want to 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 ‘when cookie is set’ or ‘when cookie has a value’ if you want to configure CAOS with a Cookie Notice.
Choose your Snippet Type:
- Google Analytics’ Default tracking code is loaded render blocking, providing the most accurate statistics and is suitable in most situations, but…
- 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 (by 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!
For some countries (e.g. Germany) it’s required to anonymize IP addresses of your visitors to comply with GDPR laws. Enable this option if your server is located in such a country, or you expect visitors from such countries.
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 ‘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.
If you haven’t already, remove any other previously installed Google Analytics plugins or manually inserted tracking code from your WordPress installation.