# Allow loading new CTAs (Beta) outside of iframe

**URL:** <https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988>\
**Category:** HubSpot Ideas\
**Tags:** ctas\
**Created:** [June 23, 2023, 11:24am UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988 "2023-06-23T11:24:14Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![SParany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sparany/32/89259_2.png) [@SParany](https://community.hubspot.com/u/SParany)\
**Post date:** [May 2, 2024, 12:41am UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/21 "2024-05-02T00:41:47Z")

</div>

Yes to all the ideas above - I see the value in the new capabilities re: video etc but am confused by the forgotton and equally important - tracking and reporting - very limited dimensions and inability to work around with GTM + GA4 now…

---

<div class="post-metadata">

**Author:** ![melindagreen](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/melindagreen/32/73804_2.png) [@melindagreen](https://community.hubspot.com/u/melindagreen)\
**Post date:** [May 29, 2024, 12:56pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/22 "2024-05-29T12:56:33Z")

</div>

So it looks like they’ve removed the iframe, but now the CTAs are still routed through a HubSpot-domain link, which is essentially trading one problem for a different but equivalent problem. Obfuscated link targets don’t help analytics any more than unreachable ones do. This still needs to be fixed.

---

<div class="post-metadata">

**Author:** ![Malik112](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Malik112](https://community.hubspot.com/u/Malik112)\
**Post date:** [June 25, 2024, 11:42am UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/23 "2024-06-25T11:42:34Z")

</div>

@melindagreen it still shows iFrame for us.

 ![Screenshot 2024-06-25 at 13.38.22.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/2/2234d7783a39e9ef965fc51dc360256de3bdabd4.png)

---

<div class="post-metadata">

**Author:** ![Malik112](https://avatars.discourse-cdn.com/v4/letter/m/9de053/32.png) [@Malik112](https://community.hubspot.com/u/Malik112)\
**Post date:** [June 25, 2024, 5:02pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/24 "2024-06-25T17:02:12Z")

</div>

We’ve put together a script that you can use to update dataLayer. [Detailed instructions on our blog](https://trackfunnels.com/tracking-hubspot-pop-up-ctas-with-google-tag-manager/).

```lia-code-sample
<script>
 window.addEventListener("message", function(event) {

 // Ensure the message is from the expected origin

 if (event.origin !== "https://parent.yourwebsite.com") {
 return;
 }

 // Log the received message for debugging purposes
 console.log("Message received from iFrame:", event);

 // Log the entire event data object to understand its structure
 console.log("Event data object:", event.data);

 // Check for the specific form submission event
 if (event.data && event.data.eventName === "onCallToActionFormSubmitted") {
 console.log("Form submission data:", event.data.data);

 // Push the form submission event to the GTM dataLayer
 window.dataLayer = window.dataLayer || [];
 window.dataLayer.push({
 event: 'hubspot_form_submitted',
 hsformId: event.data.data.id || 'unknownForm', // This captures the Hubspot form ID
 formData: event.data.data || {} // This sends any additional form data, if available
 });
 }
 }, false);
</script>

```

---

<div class="post-metadata">

**Author:** ![PBraun8](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@PBraun8](https://community.hubspot.com/u/PBraun8)\
**Post date:** [August 30, 2024, 8:15am UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/25 "2024-08-30T08:15:59Z")

</div>

yes plaese

---

<div class="post-metadata">

**Author:** ![RDelaneyNZ](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@RDelaneyNZ](https://community.hubspot.com/u/RDelaneyNZ)\
**Post date:** [September 3, 2024, 3:09am UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/26 "2024-09-03T03:09:34Z")

</div>

Yes please, this looks to create issues with GA4 as well. We can see thousands of clicks in Hubspot on a pop up CTA, and almost none in GA4. From my research it is suggested that the iframe is causing an issue. Can you please sort this Hubspot team! 🙂

---

<div class="post-metadata">

**Author:** ![maxy345](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@maxy345](https://community.hubspot.com/u/maxy345)\
**Post date:** [January 20, 2025, 8:59pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/27 "2025-01-20T20:59:46Z")

</div>

80 upvotes on this issue. It would be great if HubSpot could address this promptly…

---

<div class="post-metadata">

**Author:** ![CMarritt](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cmarritt/32/62359_2.png) [@CMarritt](https://community.hubspot.com/u/CMarritt)\
**Post date:** [January 28, 2025, 9:10pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/28 "2025-01-28T21:10:04Z")

</div>

WE’ve looked to add these CTAs to our website as a quick solution, only to find more problems.

Hope this is sorted soon as we cannot track form conversions using these CTAs

---

<div class="post-metadata">

**Author:** ![radapop](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/radapop/32/42241_2.png) [@radapop](https://community.hubspot.com/u/radapop)\
**Post date:** [March 12, 2025, 7:37pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/29 "2025-03-12T19:37:25Z")

</div>

Hi everyone! My name is Rada and I work on the CTA product team at HubSpot.

Thanks for sharing your upvotes and comments on this idea. My team and I are actively reviewing this suggestion, and I’d love to speak with a few of you directly to make sure we’re implementing the correct solution. If you’d be open to a quick chat to share your feedback on CTAs and iframes, please DM me so we can connect.

---

<div class="post-metadata">

**Author:** ![GEiselt1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/geiselt1/32/77084_2.png) [@GEiselt1](https://community.hubspot.com/u/GEiselt1)\
**Post date:** [April 25, 2025, 7:05pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/30 "2025-04-25T19:05:12Z")

</div>

+1, pop-up forms drive a significant amount of traffic for us and we’d love to be able to report on those conversions in GA4 through GTM tagging.

---

<div class="post-metadata">

**Author:** ![hhiggins](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hhiggins/32/32091_2.png) [@hhiggins](https://community.hubspot.com/u/hhiggins)\
**Post date:** [June 2, 2025, 3:35pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/31 "2025-06-02T15:35:08Z")

</div>

Hi everyone!  
This idea’s status has changed from ‘Being Reviewed’ to ‘Idea Submitted’. This change is due to our improvement project to update our Ideas Forum statuses in order to provide better transparency into how we are listening to your feedback.

“Idea Submitted” means that our product teams are aware of this feedback and are monitoring the need for this feature alongside other inputs that determine their priorities & roadmap.

For more details about the statuses we use on the Ideas Forum & what they mean, you can read this community post [here](https://community.hubspot.com/t5/Releases-and-Updates/Status-Update-The-Ideas-Forum-Gets-a-Refresh/ba-p/1158959).

---

<div class="post-metadata">

**Author:** ![LMuhlbauer](https://avatars.discourse-cdn.com/v4/letter/l/eada6e/32.png) [@LMuhlbauer](https://community.hubspot.com/u/LMuhlbauer)\
**Post date:** [July 17, 2025, 8:47pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/32 "2025-07-17T20:47:12Z")

</div>

I need, please!

---

<div class="post-metadata">

**Author:** ![GEiselt1](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/geiselt1/32/77084_2.png) [@GEiselt1](https://community.hubspot.com/u/GEiselt1)\
**Post date:** [September 26, 2025, 11:14pm UTC](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988/33 "2025-09-26T23:14:26Z")

</div>

Hi folks, if you use Google Tag Manager to log events to GA4 there is actually a relatively straightforward solution for this: you can install a custom custom “listener” tag that makes an interaction logged anywhere on your website, including from an iframe, taggable via GTM and then pushed to GA4 as an event/key event. DM me and I’d be happy to share the custom HTML with you along with a quick Loom to show you how it works!

[Previous page](https://community.hubspot.com/t/allow-loading-new-ctas-beta-outside-of-iframe/83988.md?page=1)
