<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cookie banner is not showing on external website in GDPR</title>
    <link>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171721#M1958</link>
    <description>&lt;P&gt;All good ideas! Thanks for answering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Consent Banner for the domain is active / enabled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We don't use CSP headers, for as far as I can see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading the script looks fine to me.&lt;/P&gt;&lt;P&gt;It clearly loads and runs fine, since it loads another 4 javascript files:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://js.hscollectedforms.net/collectedforms.js" target="_blank"&gt;https://js.hscollectedforms.net/collectedforms.js&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://js.hs-analytics.net/analytics/1751380500000/7481203.js" target="_blank"&gt;https://js.hs-analytics.net/analytics/1751380500000/7481203.js&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://js.hs-banner.com/v2/7481203/banner.js" target="_blank"&gt;https://js.hs-banner.com/v2/7481203/banner.js&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://js.hs-banner.com/v2/cf-location" target="_blank"&gt;https://js.hs-banner.com/v2/cf-location&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;I'm currently loading the script in the head of the default nuxt page template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;template&amp;gt;
	&amp;lt;div&amp;gt;
		&amp;lt;Header /&amp;gt;
		&amp;lt;nuxt /&amp;gt;
		&amp;lt;Footer /&amp;gt;
	&amp;lt;/div&amp;gt;
&amp;lt;/template&amp;gt;

&amp;lt;script lang="ts"&amp;gt;
import { Vue, Component } from "nuxt-property-decorator";

@Component({
	head() {
		return {
			htmlAttrs: {
				class: this.$theme.theme,
			},
			bodyAttrs: {
				class: this.$route.name ? this.$route.name : "",
			},
			script: [
				{
					id: "hs-script-loader",
					src: "//js.hs-scripts.com/7481203.js?businessUnitId=2302186",
					async: true,
					defer: true
				},
			],
		};
	}
})
export default class Default extends Vue {}
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm out of ideas, other than loading the script how&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/754021"&gt;@Balaji_Mavlers1&lt;/a&gt;&amp;nbsp;described.&lt;/P&gt;&lt;P&gt;My next step would indeed consist of contacting Hubspot support.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2025 14:50:16 GMT</pubDate>
    <dc:creator>BGW-Divotion</dc:creator>
    <dc:date>2025-07-01T14:50:16Z</dc:date>
    <item>
      <title>Cookie banner is not showing on external website</title>
      <link>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171188#M1952</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have implemented the tracking script to enable a configured Cookie banner, but the banner doesn't show on load.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The &lt;A href="https://www.divotion.com/" target="_blank" rel="noopener"&gt;website&lt;/A&gt; is built in Nuxt and served on Vercel.&lt;/LI&gt;&lt;LI&gt;I have added a banner in HubSpot &amp;gt; Settings &amp;gt; Privacy &amp;amp; Consent &amp;gt; Cookies tab for the domain name:&amp;nbsp;&lt;STRONG&gt;divotion.com&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;I have added the script with id="&lt;SPAN&gt;hs-script-loader&lt;/SPAN&gt;&lt;SPAN&gt;" to the head&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;I have added an additional button with id="&lt;/SPAN&gt;&lt;SPAN&gt;hs_show_banner_button&lt;/SPAN&gt;&lt;SPAN&gt;" to trigger the banner manually.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The script is loaded and can be called from the console.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I push events manually via the console I get:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_hspb_loaded
&amp;gt; true
_hspb_ran
&amp;gt; true
_hsp.push(['revokeCookieConsent']);
&amp;gt; true
_hsp.push(['showBanner']);
&amp;gt; false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I'm at a loss on how to resolve this issue. There's not much else I can configure in the HubSpot settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help?&lt;/P&gt;&lt;P&gt;With regards, Bart&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 13:54:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171188#M1952</guid>
      <dc:creator>BGW-Divotion</dc:creator>
      <dc:date>2025-06-30T13:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner is not showing on external website</title>
      <link>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171215#M1953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/960272"&gt;@BGW-Divotion&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the manual trigger (‎`showBanner`) returns ‎`false`, it might mean the banner logic believes it has already been shown or that consent is set. Have you tried opening it in incognito?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, check if any Content Security Policy (CSP) headers could be blocking HubSpot scripts or resources.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 14:56:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171215#M1953</guid>
      <dc:creator>GiantFocal</dc:creator>
      <dc:date>2025-06-30T14:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner is not showing on external website</title>
      <link>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171295#M1954</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/960272"&gt;@BGW-Divotion&lt;/a&gt;&amp;nbsp;- Did you add the embed code as suggested by HubSpot? Is anything blocking the HubSpot script?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jun 2025 18:01:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171295#M1954</guid>
      <dc:creator>Aakar</dc:creator>
      <dc:date>2025-06-30T18:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner is not showing on external website</title>
      <link>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171664#M1957</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="55" data-end="74"&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/960272"&gt;@BGW-Divotion&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="76" data-end="299"&gt;Since the script loads and &lt;CODE data-start="103" data-end="124"&gt;revokeCookieConsent&lt;/CODE&gt; works but &lt;CODE data-start="135" data-end="147"&gt;showBanner&lt;/CODE&gt; returns &lt;CODE data-start="156" data-end="163"&gt;false&lt;/CODE&gt;, this could be related to how Nuxt handles page rendering. Try making sure the HubSpot script runs only on the &lt;STRONG data-start="275" data-end="290"&gt;client side&lt;/STRONG&gt;, like:&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre! language-js"&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-keyword"&gt;if&lt;/SPAN&gt; (process.&lt;SPAN class="hljs-property"&gt;client&lt;/SPAN&gt;) {  
  &lt;SPAN class="hljs-comment"&gt;// Load the script here  &lt;/SPAN&gt;
}  &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P data-start="370" data-end="443"&gt;Or try placing the script just before &lt;CODE data-start="408" data-end="417"&gt;&amp;lt;/body&amp;gt;&lt;/CODE&gt; instead of in &lt;CODE data-start="432" data-end="440"&gt;&amp;lt;head&amp;gt;&lt;/CODE&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="445" data-end="539"&gt;Also, double-check that the banner is published and linked to the correct domain in HubSpot.&lt;/P&gt;
&lt;P data-start="541" data-end="622"&gt;If it still doesn’t work,&amp;nbsp;it’s best to connect with the &lt;STRONG data-start="581" data-end="605"&gt;HubSpot support team&lt;/STRONG&gt; to check for any backend issues.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 13:17:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171664#M1957</guid>
      <dc:creator>Balaji_Mavlers1</dc:creator>
      <dc:date>2025-07-01T13:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner is not showing on external website</title>
      <link>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171721#M1958</link>
      <description>&lt;P&gt;All good ideas! Thanks for answering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Consent Banner for the domain is active / enabled&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We don't use CSP headers, for as far as I can see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading the script looks fine to me.&lt;/P&gt;&lt;P&gt;It clearly loads and runs fine, since it loads another 4 javascript files:&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://js.hscollectedforms.net/collectedforms.js" target="_blank"&gt;https://js.hscollectedforms.net/collectedforms.js&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://js.hs-analytics.net/analytics/1751380500000/7481203.js" target="_blank"&gt;https://js.hs-analytics.net/analytics/1751380500000/7481203.js&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://js.hs-banner.com/v2/7481203/banner.js" target="_blank"&gt;https://js.hs-banner.com/v2/7481203/banner.js&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://js.hs-banner.com/v2/cf-location" target="_blank"&gt;https://js.hs-banner.com/v2/cf-location&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;I'm currently loading the script in the head of the default nuxt page template:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;template&amp;gt;
	&amp;lt;div&amp;gt;
		&amp;lt;Header /&amp;gt;
		&amp;lt;nuxt /&amp;gt;
		&amp;lt;Footer /&amp;gt;
	&amp;lt;/div&amp;gt;
&amp;lt;/template&amp;gt;

&amp;lt;script lang="ts"&amp;gt;
import { Vue, Component } from "nuxt-property-decorator";

@Component({
	head() {
		return {
			htmlAttrs: {
				class: this.$theme.theme,
			},
			bodyAttrs: {
				class: this.$route.name ? this.$route.name : "",
			},
			script: [
				{
					id: "hs-script-loader",
					src: "//js.hs-scripts.com/7481203.js?businessUnitId=2302186",
					async: true,
					defer: true
				},
			],
		};
	}
})
export default class Default extends Vue {}
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm out of ideas, other than loading the script how&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/754021"&gt;@Balaji_Mavlers1&lt;/a&gt;&amp;nbsp;described.&lt;/P&gt;&lt;P&gt;My next step would indeed consist of contacting Hubspot support.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 14:50:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/GDPR/Cookie-banner-is-not-showing-on-external-website/m-p/1171721#M1958</guid>
      <dc:creator>BGW-Divotion</dc:creator>
      <dc:date>2025-07-01T14:50:16Z</dc:date>
    </item>
  </channel>
</rss>

