I am currently having trouble setting the Hubspot cookie when a contact is created via WordPress website that uses the Gravity Forms to Hubspot Addon. At the moment the Hubspot hutk cookie is not being set so all of my traffic comes in as Direct Traffic.
I’ve tried using CookieYes and Cookiebot. Cookiebot is detecting the cookies but when I accept I can’t see it setting the hutk value in Developer Tools under Applications. Is there a custom script I need to set for it to trigger the hubspot cookie on Accepting all cookies?
I’ve also tried the Hubspot Consent banner which worked perfectly and stored the cookie which then allowed UTM params to be logged on a contact record. I’d be happy to use the Hubspot Consent banner but I am not sure how I can use that to then control the other third party cookies on my website.
I did see another use case where people load Hubspot consent banner and the third party cookie banner but hide the Hubspot banner and trigger it upon accepting the third party banner.
Has anyone had any similar experiences when it comes to cookies on an external website? Would appreciate any guidance
Hi, @InciteJoe Happy Friday! Thanks for your post. Let’s ask some of our community champions — hey @Teun@evaldas@TomM2, do you have any experience or tips you can share with @InciteJoe?
If you have the tracking code installed on the WP site, it should automatically drop in the cookie and the record source would be recorded as a form submission.
If it is the case that your website needs opt-in before the cookie is placed, then you might be able to utilize this javascript snippet to enable tracking once user opts in:
Hey @InciteJoe from what I’ve seen cookie bot and a lot of third party cookie tools kinda go a bit “brute force” with cookie blocking. They’ll just block all cookies from loading without actually integrating, have you tried using the HubSpot to cookiebot integration?
My guess here is that the typeform script is looking for the hutk value on page load, cookiebot is blocking it loading and then only drops it when cookies are accepted without reloading the page.
Out of curiosity, if you accept cookies and then refresh your page then try a submission does the hutk go through?
For custom scripts, you can integrate third party cookies with the HubSpot consent banner using the consent api.
Outside of that you’d likely need to access the code of the gravity forms integration to change how it’s capturing the hutk in the first place.
Thanks for this, I did try Cookiebot and then I realised that the integration is moreso for Hubspot hosted websites. Mine is a WordPress one, I think I have stumbled across the issue and this will vary based on the third party Cookie platform but for example with Cookiebot I had to add this inline on the Hubspot tracking script data-cookieconsent=“marketing”
Once I did the above the cookie banner then controlled the cookie correctly, I assume this would be the same with other cookie management platforms such as CookieYes