Recently I received an inquiry on the support forum asking if it is possible to track Google Ads conversions with CAOS.
It appears it is! Using CAOS’ integrated filters it is quite easy to modify the tracking code using a WordPress plugin. Let me show you how you can write your own mini plugin for CAOS.
What is Google Ads?
Google Ads, AKA Google AdWords, is Google’s advertising system in which advertisers bid on certain keywords in order for their clickable ads to appear in Google’s search results. Advertisers pay per click of which publishers get a share.
Tracking conversions is not relevant for you if you are a publisher (the person who’s showing the ads). However, if you’re an advertiser, you’ll want to know how effectively your ad clicks convert. In other words, how your ad clicks lead to valuable customer activity on your website, e.g. purchases, sign-ups and form submissions. That’s why Google allows you to track conversion using Google Analytics.
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.
Enable Conversion Tracking in CAOS
Request my CAOS Expert Configuration service if you’re not comfortable writing code and/or you need another custom integration. Read more
The snippet of code is really straight forward. It hooks into the recently added
caos_process_settings action and adds the specified
$optimizeId to its configuration.
Mind you that this snippet will only work with CAOS versions 3.1.0 and higher and
gtag.js enabled. (Why
Simply copy the above code into a file called
caos-google-ads.php, insert your Google Ads ID in the position of the placeholder (make sure to place it in between the quotation marks to prevent Syntax Errors) and save it inside WordPress’ plugins-folder, e.g.
/path/to/wordpress/wp-content/plugins/caos-google-ads.php. Or, if you want to save yourself the hassle, download this mini plugin for WordPress from Github!
Enable your Google Ads mini Plugin
Now, visit the Plugins screen inside your WordPress Administrator area. You’ll notice a new plugin, called Google Ads for CAOS. Activate it like you normally would and off you go! If you’re using any caching plugins, make sure to flush all caches.
And that’s it! You have now successfully integrated Google Ads into CAOS! I hope this tutorial was clear enough. If you have any remarks or questions, please leave a comment.