Cookiebot is one of the most popular cookie consent tools. It shows your visitors a cookie banner and stops tracking scripts from running until they say yes.
Converly works with Cookiebot, so visitors who accept marketing cookies are tracked as normal and visitors who decline aren't tracked at all.
To set it up, follow the instructions below:
Installed Converly through Google Tag Manager?
Follow the Google Tag Manager guide instead. The steps below are for sites where the Converly code is pasted straight into the website.
Step 1: Find your Converly code
The first step is to find where you pasted the Converly code on your website. For most sites this is the head code box in your website builder's settings, or a header code plugin if you're on WordPress. If you're not sure, the install guides show where it usually goes for each platform.
It should look something like this:
<script src="https://js.converly.io/v1/loader.js?key=YOUR_SITE_KEY"></script>Step 2: Mark Converly as a marketing script
The next step is to tell Cookiebot that Converly is a marketing script. To do that, simply add 2 things to the start of the code, type="text/plain" and data-cookieconsent="marketing", so it looks like this:
<script type="text/plain" data-cookieconsent="marketing" src="https://js.converly.io/v1/loader.js?key=YOUR_SITE_KEY"></script>The first part stops the browser from running Converly when the page loads. The second tells Cookiebot to switch it on as soon as the visitor accepts marketing cookies.
Important: Make sure NOT to change anything else in the code, especially the part after key=. That's the key that is unique to your site, and if it changes, Converly won't track anything.
Then save your changes and publish your site.
You might wonder why you need to do this if Cookiebot has automatic blocking. Cookiebot's automatic blocking only holds back scripts its scanner has found and you have categorised. Until then, a new script like Converly runs for everyone. Marking it in the code like this means it's held back from day 1, and it works on Cookiebot's free plan too.
Step 3: Test it works
That's it! The final step is to test it, and it only takes a couple of minutes.
First, open a new incognito window (or private window) and go to your website. When the cookie banner appears, decline marketing cookies. Then submit a test entry through one of your forms.
Now open the Activity page in Converly. The test entry should NOT appear there, because Converly never ran for that visitor.
Next, close that window, open another new incognito window, and go to your website again. This time accept marketing cookies (or click accept all), then submit another test entry. Head back to the Activity page, and this time the test conversion should show up within a moment.
If both of those happen, your cookie banner is holding Converly back properly.
