<?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: Custom Event Triggering with modules that run the same JS in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-Event-Triggering-with-modules-that-run-the-same-JS/m-p/436706#M43264</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;, thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two modules are basically "stores" for two different prodocuts. You click a button that opens a modal that lets you select what operating system you'd like to purchase the software for. You can see it in action here:&amp;nbsp;&lt;A href="https://store.airsquirrels.com/" target="_blank"&gt;https://store.airsquirrels.com/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;One module is for AirParrot and the other is for Reflector.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to give Reflector and AirParrot a tracking code. So when someone successfully purhases AirParrot, it's tracked. Same for Refletor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I made an event for the Reflector and AirParrot modules and put the event handler in each module like I showed in the code above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is that whatever module is placed second in the page editor, its event handler gets ignored. I think the browser is ignoring the second module because it's running the script in the first moduel that does essentially the same thing, but the even hendler code is different and I need it read both event handlers.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 11:51:39 GMT</pubDate>
    <dc:creator>ckingg</dc:creator>
    <dc:date>2021-05-12T11:51:39Z</dc:date>
  </channel>
</rss>

