CAOS has been around for a few years now, bathing in all of the glory it accumulated by hosting analytics.js locally. About two months ago, our lives are enriched by the new GDPR laws. For me, it meant getting back to work and make sure CAOS is GDPR compliant as well. I’ve introduced many changes since then. One of the major new features though, is complete compatibility with other Cookie Notice plugins for WordPress. By far the most popular is Cookie Notice for GDPR. Today I will show you how to configure CAOS to work with this plugin. So you can host analytics.js locally and be GDPR compliant at the same time!
How to Configure CAOS to be GDPR Compliant with Cookie Notice for GDPR
Not using Cookie Notice for GDPR? Click here to add the power of CAOS to GDPR Cookie Consent
Request my CAOS Expert Configuration service if you’re using another Cookie Notice plugin and/or you need help configuring this one. Read more
After following the steps below, your WordPress-blog will abide to the new laws enforced by the GDPR. Your Google Analytics-tracking scripts will still be locally hosted so you can have the best of both worlds. Follow the rules and maintain your high score on Pingdom and Google Pagespeed. Let’s get started!
Enabling the Cookie Notice
The Cookie Notice will not be provided by CAOS, but by ‘Cookie Notice for GDPR’: by far the most downloaded Cookie Notice plugin in the WordPress repository.
If you’re already using Cookie Notice for GDPR and want to combine it with CAOS, you can skip to the next chapter. Otherwise continue with the steps below.
Installing the plugin into your WordPress environment is easy:
- Open the ‘Plugins‘ menu and click ‘Add new‘.
- In the next screen that opens, search for ‘Cookie Notice for GDPR‘.
- The plugin will show at the top of the search results. Click ‘install now‘.
- After it’s finished downloading, click ‘activate‘.
A new menu-item will be added to your Settings-menu, called ‘Cookie Notice‘. Go there to configure the cookie notice’s visuals and functioning.
Once your done, you can continue to configure CAOS for full compatibility with Cookie Notice for GDPR.
The Wait is Over.
Get the Newsletter you've always wanted, now!
Sign up to receive Biweekly, Free Optimization Tips for WordPress.
No spam. I promise.
Configuring CAOS with Cookie Notice for GDPR
Now all that’s left to do is tell CAOS to check for the cookie created by the plugin. If you haven’t downloads CAOS yet, download it here or directly from the ‘Plugins’ > ‘Add New’-screen in your WordPress admin-area.
- Open the ‘Settings‘-menu and click on ‘Optimize Analytics‘ to open CAOS’ configuration screen.
- Select the value ‘When cookie has a value‘ in the ‘Allow tracking…‘-section.
- In the field named ‘Cookie name‘ enter ‘cookie_notice_accepted‘. This is the name of the cookie generated by Cookie Notice for GDPR once a user clicked the ‘Approve‘-button.
- In the field named ‘Cookie value‘ enter ‘true‘. This is the value the plugin sets the cookie to, once the user approves your cookie notice.
- Enter a value in the ‘Cookie expiry period‘-field. I use ‘30‘, since I don’t think I can keep following you around for more than a month. It’s okay to enter nothing, the settings defaults to a session cookie. Which means cookies are flushed the moment the user leaves your website.
- Press ‘Save Changes‘ and if you use any caching-plugins, make sure you flush your cache.
That’s it! You’re done. You’ve now configured CAOS with a cookie notice to be fully compliant with GDPR. Enjoy!