In previous posts I explained how to modify CAOS’ tracking code when you’re using
gtag.js. Today we’re going to integrate Bookeo into CAOS using
Gtag.js always uses the asynchronous tracking code.
Analytics.js, however, can also be used synchronously. Regardless, the implementation of
analytics.js looks different:
gtag.js requires less coding. Still, modifying
analytics.js‘ tracking code in CAOS isn’t difficult at all. Today we’re going to integrate Bookeo into CAOS.
Modifying CAOS’ Tracking Code for analytics.js
Since v3.1.3 CAOS sports a set of filters enabling you to freely modify the generated tracking codes using plugins (or mini plugins as I like to call them).
Integrating Bookeo into CAOS is a great way to demonstrate CAOS’ flexibility, because it requires dynamically modifying Google Analytics’ configuration (within the
ga('create')-function) and loading a 3rd party plugin (with
This requires hooking into two of CAOS’ filters. We’ll modify Google Analytics’ configuration using
caos_analytics_ga_create_config and load and trigger the plugin using
Request my CAOS Expert Configuration service if you’re not comfortable writing code and/or you need another custom integration. Read more
The Wait is Over.
Get the Newsletter you've always wanted, now!
No spam. I promise.
Integrating Bookeo into Google Analytics by extending CAOS with a Mini Plugin
Whether you’re a WordPress developer or not, the snippet below is all you need to integrate Bookeo into CAOS. The comments at the top form the base of the plugin and the two functions underneath provide the plugins functionalities.
Copy the below code into a file called
caos-bookeo.php and place into your WordPress install’s
wp-content folder. Or download it here.
After installing the above plugin, go to your Administrator Area and open the ‘Plugins’-screen. You should notice a new plugin called Bookeo for CAOS. Activate it and you’re all set.
If you’re using any caching plugins, make sure you flush its cache.
Using a mini plugin it’s very easy to modify CAOS’ tracking code for
analytics.js. While integrating Bookeo into CAOS for WordPress we’ve shown one of CAOS’ unlimited possiblities to use Google Analytics on your website and tweak it to your needs without losing performance.