HubSpot Forms not working with Cookiebot and Tag Manager
SOLVE
Hello all,
I'm running into a really strange issue and cannot find a solution.
In order to align with GDPR I'm using Cookiebot on my website, which is integrated via Google Tag Manager. I'm also using HS forms for my contact page.
After the first scan of Cookiebot all HS cookies are categorized as marketing cookies.
If a user now just accepts the necessary cookies and not the marketing cookies, the HS form is not shown on the contact page.
If a user accepts the marketing cookies, the HS form is shown.
So I tried to move all HS cookies from marketing to necessary cookies but nothing changes. Even if there is no cookie within the marketing category, the form is just shown in case the user is accepting the empty marketing cookies category.
What am I doing wrong? Which cookies need to be accepted in order to get the HS form running?
Oct 11, 20216:45 AM - edited Oct 11, 20216:53 AM
Contributor
HubSpot Forms not working with Cookiebot and Tag Manager
SOLVE
Hi!
We are having the same problem which landed me on this thread, i scanned your website to see if it was compliant and it looks like it isnt due to the way the form is loaded. To me this feels like a Hubspot form issue, the cookie responsible is called embed/v3/counters.gif, if this is set to necessary in cookiebot, the form loads perfectly. however, this is not GDPR and Privacy compliant as upon submissions the form still tracks the user journey around the website. This Cookie/script needs to be divided into two, 1 script for loading the form and another for the tracking
HubSpot Forms not working with Cookiebot and Tag Manager
SOLVE
Hi, I think the hubspot formula you use on your website is technically important that the website works and so the cookie is in my opinion necessary and not a marketing cookie.
thanks for your reply and I'm sorry for my late response. I thought that I solved the problem myself but it is still happening. So answering your questions:
1. I followed the deployment guide.
2. I'm using the auto cookie blocking mode.
3. Yes, the HubSpot tracking script is loading via Google Tag Manager and has a trigger, which is Cookie Consent Statistics.
Strange thing though, the form is only appearing when one accepts the Marketing cookies in the cookie banner. If someone accepts the Statistics cookies but not Marketing, the form is not showing.
Any idea how I get the HubSpot form displayed on my contact page even if the user just accepted the necessary cookies?
I noticed your form embed code is set to data-cookieconsent="marketing", did you set that manually in your code? If so can you try removing that from the code as this script would be considered necessary for functionality rather than for marketing.
HubSpot Forms not working with Cookiebot and Tag Manager
SOLVE
@MatthewShepherd thank you so much. It is finally working and was caused by the wrong embeded code, like you said. I didn't insert the wrong part but used the HS-plugin, which created a shortcode and just used that one. This time I used the code from HS web directly and now it's working just fine.