How to Make Calendly and Cookiebot Play Nice
Calendly embeds are sometimes a bit difficult to manage. Not as horrible as iframes, but close enough. Using it and Cookiebot together opens another tin of worms.
The Calendly embed doesn't load, unless the website visitor has consented to statistics or marketing cookies. It simply stops appearing on the website. Not cool when you want to drive leads.
For example, Cookiebot actively changes the embedded coding by changing the script type to
text/plain. Only once the cookies have been accepted, the CMP then changes the script type to
There are two ways of fixing this situation. Neither of them is great.
When it comes to consent management platforms, there are two kinds of implementations.
1) The seven hour one when we set up Cookiebot, modify your GTM container, and everything hums along.
2) The sixty hour one when you need to draw a special map and spend ages on telcos with the legal team.
We know how to do both of them, so if you need anything regarding consent, you know what to do.
1) The Manual Solution
You find out what cookies Calendly uses to ensure its functionality. Then re-classify them in the Cookiebot admin into the necessary category. Wait a while for the changes to propagate, test, rinse, repeat.
Should the Calendly dev team add or remove some of the cookies necessary for the embed to work, it's up to you to find out. Otherwise, your embed breaks. Calendly's documentation about cookies doesn't mention which cookies fall under the necessary category.
2) The Data Attribute Solution
Add the attribute
data-cookieconsent="necessary" to the <div> and the <script> tags. That signals the CMP to let this script load when the user has accepted the necessary cookies. You are, strictly speaking, classifying all the Calendly cookies as necessary.
It's extremely easy and fast to implement. One line of code, copy, paste, done.
I hear you asking: "Isn't there a way to make these two platforms work together?" As of now, it isn't. However, the CF Agency team has submitted tickets to both platforms' support teams, so let's wait and see. In the meantime, good luck explaining to your stakeholders why the two of the most prominent platforms in their respective verticals don't play nice together. It would be so much easier if Calendly learnt to respect Cookiebot and vice versa.
Honza Felt is a performance marketing specialist who turned into a marketing consultant after a mysterious accident. He spends his days leading a bunch of misfits at CF Agency. Drinks rum and knows things.