APIs & Integrations

MarkdeLange
Top Contributor | Partner
Top Contributor | Partner

Is it possible to use Java script to stop notifying visitors about the cookies on the site

This where the page/site is in a different language than the main language in the portal?

We have a cookie policy statement in the local language which already shows on the pages, and need to stop showing the “portal” notification in a different language.

Most pages/sites are in a single langauge so I don’t want to change the privacy policy configuration in the portal.

0 Upvotes
2 Replies 2
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Is it possible to use Java script to stop notifying visitors about the cookies on the site

Hi @markdelange,

If you don’t want to disable the cookie notification in your portal, the only option would be to try hiding the banner using Javascript/JQuery. Perhaps something like this?

$(#id_of_the_banner).hide()

Keep in mind this is just a suggestion for a potential workaround; I would definitely recommend either disabling the warning in your portal & using your own policy statement or using only the built-in cookie policy statement.

0 Upvotes
MarkdeLange
Top Contributor | Partner
Top Contributor | Partner

Is it possible to use Java script to stop notifying visitors about the cookies on the site

Thanks, this worked.