<?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: Message Events on iFrames in Hubspot in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080990#M41526</link>
    <description>&lt;P&gt;HubSpot blocking event from the Iframe window would explain why it is not working and makes sense.&lt;BR /&gt;&lt;BR /&gt;2 things which makes it a little bit tricky for me:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I also want to the Iframe event to trigger and anchor in the landing page, such that the page scrolls to the bottom of the page. For this I do need the communication.&lt;/LI&gt;&lt;LI&gt;The Iframe is an app developed by a third party which I am not associated to. This makes communication difficult about settup up tracking correctly.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We are already a bit deep in this solution, so it would be best enable the event from the Iframe somehow. Is there any possibilty to circumvent HubSpot blocking the events?&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 15:51:56 GMT</pubDate>
    <dc:creator>JVermunt</dc:creator>
    <dc:date>2024-12-09T15:51:56Z</dc:date>
    <item>
      <title>Message Events on iFrames in Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080134#M41503</link>
      <description>&lt;P&gt;&lt;SPAN&gt;A software company has developed an application which we can embed on our website. It uses a message event to push information to the parent window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added a screenshot which shows the code in action. You can see how the message gets logged in the console.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unnamed (1).png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/133341i9EAC5F478DB6539C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="unnamed (1).png" alt="unnamed (1).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;I added the iframe as a module in Hubspot using the design manager, and it works well when building a website page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2024-12-05 14-43-55.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/133340iD0F05ED242498B69/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot from 2024-12-05 14-43-55.png" alt="Screenshot from 2024-12-05 14-43-55.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;However, the message event is not triggered in the HubSpot environment.&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt;How can we receive the message event for further actions in HubSpot?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 15:14:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080134#M41503</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-12-06T15:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Message Events on iFrames in Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080543#M41515</link>
      <description>&lt;P&gt;I think HubSpot is set up to block any events that come from the Iframe window which is just standard web protection,&lt;BR /&gt;&lt;BR /&gt;To achieve what you're looking for the easiest way would be to have a server and then connect both user instances to a websocket on the server and have them communicate that way, but from what I'm seeing your use case isn't that complex, if you're just looking to fire analytics events then just do that on the iframe page itself instead of trying to pass back the event data and doing it on the original site.&lt;BR /&gt;&lt;BR /&gt;You can pass data like HubSpot, GA cookie in the Iframe URL request as query params and associate the 2 seassions that way.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If my post helped answer your query, please consider marking it as a solution.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 08 Dec 2024 07:14:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080543#M41515</guid>
      <dc:creator>AnzeKoprivec</dc:creator>
      <dc:date>2024-12-08T07:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Message Events on iFrames in Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080990#M41526</link>
      <description>&lt;P&gt;HubSpot blocking event from the Iframe window would explain why it is not working and makes sense.&lt;BR /&gt;&lt;BR /&gt;2 things which makes it a little bit tricky for me:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I also want to the Iframe event to trigger and anchor in the landing page, such that the page scrolls to the bottom of the page. For this I do need the communication.&lt;/LI&gt;&lt;LI&gt;The Iframe is an app developed by a third party which I am not associated to. This makes communication difficult about settup up tracking correctly.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;We are already a bit deep in this solution, so it would be best enable the event from the Iframe somehow. Is there any possibilty to circumvent HubSpot blocking the events?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 15:51:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1080990#M41526</guid>
      <dc:creator>JVermunt</dc:creator>
      <dc:date>2024-12-09T15:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Message Events on iFrames in Hubspot</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1081027#M41527</link>
      <description>&lt;P&gt;Same as the iframe events can't trigger analytics events you'll face a similar issue if you try to have it trigger an ahcor. If you want the page to autoscroll to the iframe then just execute some js client side that moves the user to the anchor on DOM content load although this is a UX antipattern as users generally prefer to scroll themselves - you should move an iframe to the top if you're looking to achieve visability.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As for the 2nd point - this won't be possible with HubSpot, the only way I see this working is if you pass the iframe through another site where you can configure the server to allow iframe events to pass through and capture analytics events there, although its generally not good web practice to allow iframe events as what is sent can also be mallicious and having an iframe inside an iframe might also not lead to the best web experience.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 16:52:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Message-Events-on-iFrames-in-Hubspot/m-p/1081027#M41527</guid>
      <dc:creator>AnzeKoprivec</dc:creator>
      <dc:date>2024-12-09T16:52:41Z</dc:date>
    </item>
  </channel>
</rss>

