<?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: Tracking page and Lead Flows in SPA in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/355896#M34956</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139151"&gt;@BiWeeklyStats&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have responded to your query here:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Popup-not-triggering-on-Single-Page-App/m-p/355460/highlight/false#M34890" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Popup-not-triggering-on-Single-Page-App/m-p/355460/highlight/false#M34890&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 07:27:38 GMT</pubDate>
    <dc:creator>WendyGoh</dc:creator>
    <dc:date>2020-07-21T07:27:38Z</dc:date>
    <item>
      <title>Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/294698#M27618</link>
      <description>&lt;P&gt;Hi there, I am trying to integrate lead flows (pop-ups forms) in a Single Page Application (SPA). I created a pop-up that should be shown in a specific page (like /contactus).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The popup shows when I reload the page directly with that url, but it does not when I navigate to that page from a different url.&lt;/P&gt;&lt;P&gt;I though this can be fixed by tracking the page, so I did something like this in the router (I am using react):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;const _hsq = window._hsq = window._hsq || [];&lt;BR /&gt;_hsq.push(['setPath', newPath]);&lt;BR /&gt;_hsq.push(['trackPageView']);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, I notice the page is being updated on every path changing, but the popup is still not being shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question is: if we track a page, lead flow popups should work like if we reaload it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your answers.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:46:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/294698#M27618</guid>
      <dc:creator>cgomez</dc:creator>
      <dc:date>2019-10-03T14:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/295351#M27683</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/106877"&gt;@cgomez&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope all is well with you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When looking to show a dismissed pop up form again, the tracking page function wouldn't work. The tracking page function intend is to track page views, it doesn't control when a pop up form would show.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, when looking to show dismissed pop up form again, you can do so by determing how much time should pass before the pop up form appear again in the options tab of your pop up form. You can learn more here:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/articles/kcs_article/pop-up-forms/pop-up-forms-not-displaying" target="_blank" rel="noopener"&gt;https://knowledge.hubspot.com/articles/kcs_article/pop-up-forms/pop-up-forms-not-displaying&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The minimum setting is 1 day. Additionally, &lt;A href="https://community.hubspot.com/t5/Lead-Capture-Tools/How-can-I-make-my-popup-form-appear-for-leads-who-revisit-my/td-p/7906" target="_self"&gt;if a lead flow is being submitted, it won't reappear for that visitor again&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps to clarify!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 02:43:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/295351#M27683</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2019-10-08T02:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/324608#M31322</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm following this same method to show pop up forms. But it doesn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement: Add tracking code to track pages and display pop-up forms in SPA (React)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I did:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add the HubSpot tracking code at the end of the body tag.&lt;/LI&gt;&lt;LI&gt;Added setPath and trackPageView when the page is changed.&lt;/LI&gt;&lt;/OL&gt;&lt;PRE&gt;const _hsq = window._hsq = window._hsq || [];
_hsq.push(['setPath', window.location.pathname]);
_hsq.push(['trackPageView']);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issues:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The pop-up form appears when I directly go to the page by typing the address in the address bar. And the pop-up doesn't go away when I navigate to another page.&lt;/LI&gt;&lt;LI&gt;The pop-up form doesn't show when I go to the home page first and then go to the contact page by clicking the link from the menu.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Am I doing something wrong? Or is there any other way that we can achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 06:06:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/324608#M31322</guid>
      <dc:creator>maheshsamudra</dc:creator>
      <dc:date>2020-03-09T06:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/355425#M34888</link>
      <description>&lt;P&gt;I'm having the exact same issue as&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/123328"&gt;@maheshsamudra&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jul 2020 16:25:41 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/355425#M34888</guid>
      <dc:creator>BiWeeklyStats</dc:creator>
      <dc:date>2020-07-18T16:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/355896#M34956</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/139151"&gt;@BiWeeklyStats&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have responded to your query here:&amp;nbsp;&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Popup-not-triggering-on-Single-Page-App/m-p/355460/highlight/false#M34890" target="_blank"&gt;https://community.hubspot.com/t5/APIs-Integrations/Popup-not-triggering-on-Single-Page-App/m-p/355460/highlight/false#M34890&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 07:27:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/355896#M34956</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-07-21T07:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/375589#M36932</link>
      <description>&lt;P&gt;Hi, I'm having the same issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an SPA website developed in VueJS and I can't get pop-up forms to work when set up an URL targeting the form does not pop-up when entering the page. It only works if I refresh the page on the correct URL or enter directly on this one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tryed setting up the traking for SPA as described in the documentation but this only effects page traking, it does not trigger the lead flow actions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 08:40:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/375589#M36932</guid>
      <dc:creator>galant</dc:creator>
      <dc:date>2020-10-01T08:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/376257#M36987</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131434"&gt;@galant&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you ensure that you've went through these troubleshooting steps:&amp;nbsp;&lt;A href="https://knowledge.hubspot.com/pop-up-forms/pop-up-forms-not-displaying" target="_blank"&gt;Pop-up forms not displaying&lt;/A&gt;?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, could you share with me the page url and portal Id in question?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 08:24:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/376257#M36987</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-10-05T08:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/415116#M41129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hi, I'm having the same issua as&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131434"&gt;@galant&lt;/a&gt;. Pop-up shows when I enter page directly, but when I use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;const _hsq = window._hsq = window._hsq || [];
_hsq.push(['setPath', window.location.pathname]);
_hsq.push(['trackPageView']);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in Vue router and fire this method after router change nothing happend. I tried console.log(_hsq) and it says that its function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:05:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/415116#M41129</guid>
      <dc:creator>otutam</dc:creator>
      <dc:date>2021-03-04T16:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking page and Lead Flows in SPA</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/424714#M42176</link>
      <description>&lt;P&gt;Hi there, I also want to know that if&amp;nbsp;&lt;SPAN&gt;there is an alternate way to track clicks for non Form Step Pop-ups, since this would be useful in tracking the effectiveness of our efforts to reduce page exits through the use of free sample offers on pop-ups. I know that&amp;nbsp;HubSpot only tracks clicks and click through rate for pop-up forms that have&amp;nbsp;Form step&amp;nbsp;selected in the section.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;If any other type of pop-up form is selected in this section HubSpot will track views only. Could you also help?&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/66274"&gt;@WendyGoh&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any ideas? Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 13:55:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Tracking-page-and-Lead-Flows-in-SPA/m-p/424714#M42176</guid>
      <dc:creator>NKang1</dc:creator>
      <dc:date>2021-04-05T13:55:43Z</dc:date>
    </item>
  </channel>
</rss>

