Integration of Revoke cookies function on the Hub page


#1

Dear All,

we need to create the page where the user has the possiblility to remove the cookies. The idea is to create the hubspot page with this java script function:

https://developers.hubspot.com/docs/methods/tracking_code_api/remove_cookies.

It will be great if somebody could help us. And knows the solution for that integration. Thank you.

Best regards,
Marina

We habe created the code like that in normal HTML & JavaScript

But as soon as we put the code on the hubspote page some elements are disappearing after the saving (see screenshot, e.g.onclick function). Who knows what we are doing wrong? What is the right way to create the page with the revoke/remove cookies function.

Thank you so much. Marina


#2

Hi @Marina,

Can you send me a link to the page in HubSpot you're referring to? Generally I'd advise you to consult with a developer for custom work like this, but I can jump in and take a quick look.


#3

Hi Derek,

thank you so much.

Here is the page:
http://info.directinteractive.de/test-cookies

The code which we would like to integrate you can see as a screenshot in my question to discuss. The results what we have after the integration you can see at our page directly. It would be great if you can tell us why some java script code was just dismissed after saving. We are very glad for the help of any kind.

Best regards
Marina


#4

Hi @Marina,

So the first thing I'm noticing is that you're putting this script tag in the source code of a rich text module. That's not officially supported, and is likely the reason you're not seeing success with this particular page. I'd recommend taking your code and putting it into your pages footer, or a custom HTML module instead.


#5

Hi Derek,

thank you so much. We'll try your solution. And let you know if it works.

Thank you.
Kind regards
Marina


#6

Hi Derek,

thank you very much the Pop up works.
We had integrated this on our test page:
http://info.directinteractive.de/test-cookies-0

Best regards
Marina