Hubspot tracking cookie without advertising in Wordpress

Hi,

we use WordPress for our Company Page and HubSpot for Landing pages. In HubSpot, we connect Google Ads and use the HS consent banner. So when someone reaches our Landing page, he is able to choose what kind of cookie set he wants. He is able to accept analytics but decline advertising, so all fine here.

Now we try to do the same on our WordPress Page with a 3rd party consent manager (borlabs). However, we are not able to load the HubSpot tracking without Google Ads.

At the moment the HubSpot tracking script is loaded we are not able to stop loading of GA, FB Ads, LinkedIn ads that are connected in HubSpot. We have tried to change the value of the consent cookie (__hs_cookie_cat_pref) but this seems to be ignored.

Any solution for this?

Ty

Hi, @hgN :waving_hand: Thanks for reaching out. Let’s see if we can get the conversation going — hey @miljkovicmisa @KimSanka @Teun, do you have any experience here? Or tips on how @hgN can think about troubleshooting this one?

Thank you for taking a look! — Jaycee

Okay I found a solution.
1. activate the HS consent banner for the domain where you want to steer the HubSpot cookie behaviour. (Also if you use a 3rd party consent tool!).
2. in your 3rd party consent tool, create a “__hs_cookie_cat_pref” cookie before you load the HubSpot tracking code. (here, I only set the value for analytics as true).
3. for the opt-out code, you have to use the “revokeCookieConsent” API call and also remove your own “__hs_cookie_cat_pref”.

If anyone has a different solution or notices any problems, I’m happy to hear them.