I think it is possible to set the banner display on the above page.
For example, our homepage can be given the following cookies.
・ HubSpot ・ A service ・ B service
Is it possible to control all cookies on HubSpot? I have set it now, but when I click "Reject" on the banner, HubSpot cookies can be rejected, but "A service" and "B service" cookies are added.
I want to be able to reject all cookies when I click "Reject".
I should mention that this only counts for HubSpot Pages and not other pages that are not hosted with HubSpot.
Did that answer your question? If so, please help the community out by marking this as a solution, so other people with similar questions find it more easily.
I should mention that this only counts for HubSpot Pages and not other pages that are not hosted with HubSpot.
Did that answer your question? If so, please help the community out by marking this as a solution, so other people with similar questions find it more easily.
you've mentioned "this only counts for HubSpot Pages and not other pages that are not hosted with HubSpot."
I do have a website with two subdomains:
abc.example.com (hosted on Hubspot)
def.example.com (hosted on WordPress - Hubspot Plugin being installed there)
I'm also usting the Hubspot GTM integration which is automatically linked to the Cookie consent bar. The behavior on Hubspot Pages (abc.example.com) works fine.
But this doesn't seem to work for the external WordPress pages (def.example.com) - even though the Hubspot Tracking Tag is inserted via the WP plugin. That's surprising because the official support article says "This feature works for all HubSpot pages as well as any external pages with your HubSpot tracking code installed."
So, it seems like the only way around this is to hard code GTM in all Hubspot/WordPress templates and to put a firing rule in place, which is listening to the user consent.
not really, I'm afraid. Like I mentioned earlier, this only counts for pages that are hosted on HubSpot. So, you would need to have a Marketing Professional or CMS Plan for that.
When you would like to use the HubSpot Cookie Banner on your other webpages where you installed the HubSpot Tracking Snippet, you can do the following with the Google Tag Manager:
In the site <head>:
<script>
var _hsq = window._hsq = window._hsq || [];
_hsq.push(['addPrivacyConsentListener', function (consent) {
if (consent.allowed) {
// All of your codes go in here. You can place this wherever you want on your site, but the header is a common placement.
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','THIS IS WHERE THE GTM ID GOES');
}
}]);
</script>
Above </body> closing (doesn't change from the original)
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="[https://www.googletagmanager.com/ns.html?id=GTM-M3CZVPJ](https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXXX)"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->