Any best practices on how to implement 3rd party cookie tools? (Onetrust, Cookiebot)

Highlighted
Occasional Contributor

Hello everyone,

I am seeking help regarding the implementation of 3rd party cookie tools on HubSpot. 

Some part of our website is on WordPress, but our Landing Pages and the Blog is on HubSpot. I need a cookie tool for both content management systems and I figured out that the best 3rd party cookie tools are Onetrust and Cookiebot. 

The question is - which one would you recommend implementing and how?
I did not find any best practices neither on HubSpot nor on the providers' website. 

Any tips for someone who has no big technical background? I would very much appreciate it.

Thank you in advance.

Regards,

Anett

Reply
0 Upvotes
7 Replies 7
Highlighted
Community Manager

Hi @anhorvat,

 

Thanks for reaching out.

I want to tag in some thoughtleaders to see if they have some suggestions.

 

Hi @MatthewShepherd @RaviT @GregBrown @SimonS, do you have any thoughts on this?

 

Thanks!

Jess 


Wusstest du, dass es auch eine DACH-Community gibt?
Nimm an regionalen Unterhaltungen teil, in dem du deine Spracheinstellungen änderst !


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !


Reply
0 Upvotes
Highlighted
Occasional Contributor

Hi @anhorvat,

 

We are using OneTrust. We are only doing one cookie preference center for all of our HubSpot pages. We are defaulting to a preference center v banner because it allows for the user to choose between the different cookie categories. We were able to do this out of the box, with no additional cost or coding.

 

One thing to note about OT, is that any publish can take up to 4 hours. So you have to have patients to see live changes. 

 

I have heard good things about Cookiebot too but have not used it.

 

Hope this helps,

Ravi

Reply
0 Upvotes
Highlighted
Occasional Contributor

Hi RaviT,

Thank you for your reply. Can you send me a link to your website so I can see what you are describing here?

Did I understand it correctly - you've implemented the cookie preference banner on your HubSpot sites. How did you do that without additional coding? 

Best,

Anett

Reply
0 Upvotes
Highlighted
Occasional Contributor

@anhorvat -

 

Please see below for our site:

https://hub.kearney.com/take-5-sign-up

 

This is the code (provided by OT) we used to show the cookie preference center vs the banner:

<!-- OneTrust Cookies Consent Notice start -->

<script type="text/javascript" src="https://cdn.cookielaw.org/consent/XXXX.js"></script>
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="XXX"></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>


<script type="text/javascript">
//functions to hide banner and show preference centre
var consent = false;
function OptanonWrapper() {
setTimeout(function(){
if (!getCookie('OptanonAlertBoxClosed') && consent == false) {
consent = true;
Optanon.ToggleInfoDisplay();
var banner = document.getElementById("onetrust-banner-sdk");
banner.style = "display: none;";
}
}, 1000)
}
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) {
return true;
}
}
</script>

<!-- OneTrust Cookies Consent Notice end -->

 

Let me know if this helps,

Ravi

Highlighted
New Contributor

Hi Ravi - as a OneTrust user too (though we're going the cookie banner route) - I'm curious if you've had issues with the OneTrust script causing issues in the HubSpot editor? My issue is that the acceptance banner comes up within the in-browser editor in HubSpot, and even though I'm able to click the 'I Accept', the grey background overlay never goes away, so I can't access the in-browser page editing tools. I'm curiosu to know if you've dealt with anything similar and if so, how you've worked around it?

 

I'm including a screenshot below of the editor with the greyed out screen that won't allow in-page editing. I'd appreciate any thoughts you, or any other thread viewers have. Thanks in advance!

 

Snip20200724_1.png

Reply
0 Upvotes
Highlighted
Occasional Contributor

Hi  MMalloy-

 

We are not having that particular issue. We do have to choose our opt-in each time we make a change to a landing page or blog post. Not an issue on forms creation though. We have an open ticket with OneTrust on this issue. Hopefully, they will have a solution for us soon. If it seems like a universal solution, I will pass it along to you.

 

Thanks,

Ravi

Reply
0 Upvotes
Highlighted
Top Contributor | Gold Partner

Hi Anett,

 

We're using Cookiebot which I find very easy to use. Even as a non-techie...

 

About implementing

Cookiebot needs to be configured for the different cookie categories that you want to set. Out of the box it suggests 4 categories which pretty much covers most of the neccessary cookies. Maybe you'll drop or add one.

Per category you'll be able to describe in your own words what they do and how you'll be using the cookies.

Next you design your consent banner and decide where and when you want it to show up.

Cookiebot delivers a script that you'll need to implement on the pages of all the domains/subdomains that you're using.

You configure that in GTM where you also configure the cookie setting based on the results of the consent banner. For instance: category Marketing = True -> GTM will set all applicable cookies of that category.

 

Hope this helps!

 

Best,

Simon