<?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: CTAs not firing on external page in Lead Capture Tools</title>
    <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838541#M9932</link>
    <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/619876"&gt;@AmyDePalma&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Thank you for providing the screenshot. It appears that the pop-up isn't triggering due to the error: "Refused to load the script because it violates the following Content Security Policy directive: 'script-src 'self'."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Upon conducting a quick search, I found some informative articles detailing the functionality of &lt;A href="https://en.wikipedia.org/wiki/Content_Security_Policy" target="_blank" rel="noopener"&gt;content security policies&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;A content security policy essentially comprises server settings that define which external scripts can be accessed from within a webpage. To enable the proper functioning of our forms, we require access to external scripts hosted on the HubSpot server. Unfortunately, the existing server settings prevent us from accessing our scripts from your page, resulting in the malfunction of the pop-up form.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;To resolve this, it's necessary to collaborate with your development team to include our scripts in the allowlist within your content security settings. Regrettably, we lack the capability to bypass your content security settings, as they are implemented on the external page. Any restrictions enforced by these security settings affect our scripts' ability to function as intended.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Please be aware that we do not possess insight into the specifics of how or why these security settings might block our scripts, as they are determined externally. If the security settings prohibit the loading of our scripts, we are unable to circumvent these limitations.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Thank you for your understanding and cooperation.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Diana&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 23:40:07 GMT</pubDate>
    <dc:creator>DianaGomez</dc:creator>
    <dc:date>2023-08-22T23:40:07Z</dc:date>
    <item>
      <title>CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/832265#M9871</link>
      <description>&lt;P&gt;I created a CTA (Beta) for use on my website but it's not firing. Here's the strange thing.... the tracking code is installed and working because I tested a chatbot on the same page and it worked perfectly.&amp;nbsp; But when I truned off the chatbot and tried the CTA I get nothing. PLease advise.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 20:52:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/832265#M9871</guid>
      <dc:creator>DChesnick</dc:creator>
      <dc:date>2023-08-09T20:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/832324#M9873</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/471708"&gt;@DChesnick&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your inquiry. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Could you kindly provide additional details pertaining to your question? It would be greatly appreciated if you could furnish examples accompanied by screenshots, as well as outline the configuration and steps involved. This information will enable us to offer you more precise assistance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Diana&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2023 00:41:02 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/832324#M9873</guid>
      <dc:creator>DianaGomez</dc:creator>
      <dc:date>2023-08-10T00:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838524#M9931</link>
      <description>&lt;P&gt;Diana,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not the OP, but i am having a similiar issue. We were previoulsly using the Popup form on our client's site and have noq switched over to the new CTA (Beta). Upon doing so, we now recieve a CORS error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmyDePalma_1-1692743921794.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97452i22D80DE3E9EA4F37/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmyDePalma_1-1692743921794.png" alt="AmyDePalma_1-1692743921794.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We've set up the triggering the same way as the old, which was working.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AmyDePalma_2-1692744129307.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/97453iDC9E83A5EC824944/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AmyDePalma_2-1692744129307.png" alt="AmyDePalma_2-1692744129307.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 22:44:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838524#M9931</guid>
      <dc:creator>AmyDePalma</dc:creator>
      <dc:date>2023-08-22T22:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838541#M9932</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/619876"&gt;@AmyDePalma&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;SPAN&gt;Thank you for providing the screenshot. It appears that the pop-up isn't triggering due to the error: "Refused to load the script because it violates the following Content Security Policy directive: 'script-src 'self'."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Upon conducting a quick search, I found some informative articles detailing the functionality of &lt;A href="https://en.wikipedia.org/wiki/Content_Security_Policy" target="_blank" rel="noopener"&gt;content security policies&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;A content security policy essentially comprises server settings that define which external scripts can be accessed from within a webpage. To enable the proper functioning of our forms, we require access to external scripts hosted on the HubSpot server. Unfortunately, the existing server settings prevent us from accessing our scripts from your page, resulting in the malfunction of the pop-up form.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;To resolve this, it's necessary to collaborate with your development team to include our scripts in the allowlist within your content security settings. Regrettably, we lack the capability to bypass your content security settings, as they are implemented on the external page. Any restrictions enforced by these security settings affect our scripts' ability to function as intended.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Please be aware that we do not possess insight into the specifics of how or why these security settings might block our scripts, as they are determined externally. If the security settings prohibit the loading of our scripts, we are unable to circumvent these limitations.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Thank you for your understanding and cooperation.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Diana&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 23:40:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838541#M9932</guid>
      <dc:creator>DianaGomez</dc:creator>
      <dc:date>2023-08-22T23:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838595#M9933</link>
      <description>&lt;P&gt;Thanks for this. I am assuming from this that there is something different in HubSpot script for the new CTA feature that was not there for the old Popup Form feature, since we didn't change anything else aside from deactivating one feature and activating a new one. Our HubSpot embed code has not changed. If I reactivate the previous Popup Form, it will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Back to debugging. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 04:47:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/838595#M9933</guid>
      <dc:creator>AmyDePalma</dc:creator>
      <dc:date>2023-08-23T04:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/839089#M9936</link>
      <description>&lt;P&gt;I'll investigate.&amp;nbsp; But intuitively, this sounds odd:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"To enable the proper functioning of our forms, we require access to external scripts hosted on the HubSpot server. Unfortunately, the existing server settings prevent us from accessing our scripts from your page, resulting in the malfunction of the pop-up form."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why then does it not affect the Chatbot? Or standard forms?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 17:58:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/839089#M9936</guid>
      <dc:creator>DChesnick</dc:creator>
      <dc:date>2023-08-23T17:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/839113#M9937</link>
      <description>&lt;P&gt;The error we are seeing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;web-interactives-embed.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'then')&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at f.fetch (web-interactives-embed.js:1:10883)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at f.fetchConfigs (web-interactives-embed.js:1:9267)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at f.init (web-interactives-embed.js:1:9971)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at ai.init (web-interactives-embed.js:1:53174)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at di (web-interactives-embed.js:1:55969)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at HTMLDocument.ui (web-interactives-embed.js:1:56029)&lt;BR /&gt;fetch @ web-interactives-embed.js:1&lt;BR /&gt;fetchConfigs @ web-interactives-embed.js:1&lt;BR /&gt;init @ web-interactives-embed.js:1&lt;BR /&gt;init @ web-interactives-embed.js:1&lt;BR /&gt;di @ web-interactives-embed.js:1&lt;BR /&gt;ui @ web-interactives-embed.js:1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 18:50:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/839113#M9937</guid>
      <dc:creator>DChesnick</dc:creator>
      <dc:date>2023-08-23T18:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/839146#M9938</link>
      <description>&lt;P&gt;This is what I am also confused about. Our other popup form worked on the same site/setup. So nothing changed on our end. For us, it's just the activation fo the CTA (Beta).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 19:49:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/839146#M9938</guid>
      <dc:creator>AmyDePalma</dc:creator>
      <dc:date>2023-08-23T19:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/841132#M9971</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/619876"&gt;@AmyDePalma&lt;/a&gt;&amp;nbsp;have you had any success here? The security setting argument Diana offered doesn't appear to hold water for us. We're going through an exercise trying to identify conflicts with any existing WP plugins but haven't found any thus far.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:49:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/841132#M9971</guid>
      <dc:creator>DChesnick</dc:creator>
      <dc:date>2023-08-28T13:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: CTAs not firing on external page</title>
      <link>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/841534#M9976</link>
      <description>&lt;P&gt;Hello! We were able to get this working by adding *.hubspot.com to our allowed domain list. For context, we are using Wordpress, hosted on Pantheon. We were able to sucessfully get this working by adding a MU plugin for additional security headers. Here's our file, which we palced inside of the MU-plugins folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;&amp;lt;?php
/*
  Plugin Name: Custom Actions and Filters
  Description: a plugin to customize header security on a Pantheon-hosted Wordpress site
  Version: 0.1
  Author: Carney
  Based on https://pantheon.io/docs/wordpress-best-practices#security-headers
*/

function additional_securityheaders( $headers ) {
  if ( ! is_admin() ) {
    $headers['cache-control'] = "no-cache, max-age=2592000"; // 2592000 = 6 months
    $headers['Content-Security-Policy'] = "script-src 'self' 'unsafe-inline' 'unsafe-eval' unpkg.com *.unpkg.com *.cloudflare.com *.hs-scripts.com *.hs-analytics.net *.hs-banner.com *.hsleadflows.net *.newrelic.com *.google.com *.gstatic.com *.googletagmanager.com *.google-analytics.com *.googleapis.com *.licdn.com *.nr-data.net *.jsdelivr.net *.fontawesome.com *.hotjar.com *.hubspot.com *.clarity.ms";
    $headers['Strict-Transport-Security'] = "max-age=2592000"; // 2592000 = 6 months
    $headers['x-content-type-options'] = "nosniff"; // value derived from Pantheon template
  }

  return $headers;
}

add_filter( 'wp_headers', 'additional_securityheaders' );
// End of File&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 04:28:32 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Lead-Capture-Tools/CTAs-not-firing-on-external-page/m-p/841534#M9976</guid>
      <dc:creator>AmyDePalma</dc:creator>
      <dc:date>2023-08-29T04:28:32Z</dc:date>
    </item>
  </channel>
</rss>

