Disable cookies when using only hsforms

I am including HubSpot forms with a script like this:

let script = document.createElement('script');
script.src = 'https://js.hsforms.net/forms/v2.js';
document.head.appendChild(script);

I don’t include other HubSpot scripts.

Can I make that form stop using cookies?

I found a solution where in Settings->Privacy&Consent->Cookies->Cookies Banner->Advanced…->Deactivate Cookies, but this solutions seems to work only for the chat widget, not for the forms.

Hey @Mmusil the form script doesn’t drop any cookies, the cookies are dropped by the HubSpot tracking code.

Could you include the hubspot form embed script on your page and not include the HubSpot tracking code?

i include only js.hsforms.net/forms/v2.js, nothing more. And I still see __cf_bm and _cfuvid cookies on .hsforms.com and __cf_bm cookie on .hsforms.net.

Should I include the script some other way?

here is the site: Ventrata Booking & Ticketing system for tour operators & attractions

Ah! My apologies, I thought you were referring to HubSpot cookies. Those are cloudflare cookies, so they’re going to need to load on any HubSpot embed since it’s hosted on cloudflare and those are required cloudflare cookies.

Only way around that would be to build a custom form frontend and have it submit data to the HubSpot form using the forms api.

aha, thank you. It makes sense; I thought it was for tracking.