Sep 16, 2021 7:58 AM - edited Sep 16, 2021 7:59 AM
My question is a bit more complex as the title suggests. I'll try to explain in short.
In our Hubspot account we are using two domains. Domain 1 is using the Hubspot Cookie consent banner. Apparently it is not possible to use a separate Hubspot cookie consent banner on both domains. Therefor we installed a 3rd party cookie consent script on domain 2.
We can not install Hubspot tracking code on our website on domain 2 because that will automatically show the Hubspot cookie consent banner which is meant for the website on domain 1.
One way or another we need to be able to send user cookie consent data to Hubspot from the website on domain 2 (which is a Wordpress website). Hubspot Support suggested us to use the HubSpot API.
I have worked with APIs in PHP from other sources but in this case I don't really know where to start. Can anyone point me in the right direction?
Solved! Go to Solution.
Sep 20, 2021 10:57 AM
Sep 16, 2021 11:53 AM
Sep 16, 2021 12:27 PM
First of all, you are able to add multiple cookie policies in your account, and choose which one is for which domain. this is extensively documented right here in this link.
This should get you covered with having differrent cookie concents on differrent domains.
So to answer clearly: You are able to add two differrent conscents for two differrent websites. This link has you covered on that.
If that doesn't cover your needs for some reason, you should write here what exactly is the issue, because if you must use the third party tool on that second website, things are getting very complicated, firstly because hubspot has it's own system of categorizing cookies, that is documented in this link. Secondly because the third party concent should manipulate the hubspot cookies, but this is not possible without the tracking code.
P.S.: The api that support was talking about is the tracking api and is only valid if the tracking code is present in the page. The full documentation on the api can be found here.
P.P.S.: thanks for the shoutout @dennisedson !
If my answer was helpful please mark it as a solution.
Sep 17, 2021 2:53 AM
Thanks you very much for your reply.
We are still in comunication with hubspot Support and this morning I received verification that what we are experiencing is unexpected behaviour.
We would prefer to use Hubspot's cookie consent banner, we just installed the third party once because we understood what we wanted to do with the two websites was not possible. Aparently this is not the case.
Sep 20, 2021 10:57 AM