APIs & Integrations

Mmusil
Member

Disable cookies when using only hsforms

SOLVE

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. 

1 Accepted solution
TomM2
Solution
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Disable cookies when using only hsforms

SOLVE

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

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a meeting

Did my post help answer your query? Help the community (and me) by marking it as a solution.


View solution in original post

0 Upvotes
4 Replies 4
TomM2
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Disable cookies when using only hsforms

SOLVE

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? 

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a meeting

Did my post help answer your query? Help the community (and me) by marking it as a solution.


0 Upvotes
Mmusil
Member

Disable cookies when using only hsforms

SOLVE

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: https://ventrata.com/book-a-demo

0 Upvotes
TomM2
Solution
Thought Leader | Platinum Partner
Thought Leader | Platinum Partner

Disable cookies when using only hsforms

SOLVE

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

Tom Mahon
Technical Consultant | Solutions Engineer | Community Champion
Baskey Digitial

Book a meeting

Did my post help answer your query? Help the community (and me) by marking it as a solution.


0 Upvotes
Mmusil
Member

Disable cookies when using only hsforms

SOLVE

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

0 Upvotes