A client of mine is running CookieBot on their site (via Google Tag Manager), but it’s restricting data being sent via collected forms when marketing cookies are rejected.
How can we set up CookieBot so that data from non-HubSpot forms is always sent, whether marketing cookies are accepted or not?
Hey @JohnRooney1 you’ll need to ask cookiebot to allowlist the “collectedforms.js” script from HubSpot. Looking through their documentation it looks like they ask you to add an attribute to the script:
However this wouldn’t be possible since the non-Hubspot forms script loads after the page loads and it’s not embedded directly. My javascript isn’t great, but you might be able to set up a script to append this attribute to the non-HubSpot forms script using setAttribute
It might be worth reaching out to cookie bot themselves to see if there’s a way to do this too!