<?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: Creating a Contact From JavaScript Tracking Code in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1152859#M82137</link>
    <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/942253"&gt;@MLilien&lt;/a&gt;&lt;/SPAN&gt; and welcome, it's a pleasure to have you here!&lt;BR /&gt;&lt;BR /&gt;Thanks for asking the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;I'd love to put you in touch with our Top Experts: Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/942253"&gt;@MLilien&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a lovely day and thanks so much in advance for your valuable contributions!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 11:41:52 GMT</pubDate>
    <dc:creator>BérangèreL</dc:creator>
    <dc:date>2025-05-15T11:41:52Z</dc:date>
    <item>
      <title>Creating a Contact From JavaScript Tracking Code</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1152620#M82131</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I manage multiple Hubspot workspaces. I have two separate apps connected to two separate workspaces and they both run the same Javascript to `identify` and `trackPageView`. In one of the workspaces, a new contact is created with this code (the desired behavior). In the other, the same code does not create a new contact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The JavaScript being run is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;_hsq = window._hsq = window._hsq || [];                                                      
_hsq.push(["identify", {email: email, first_name: name}]);               
_hsq.push(['trackPageView']); &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've verified that we're using the correct source url when including the JavaScript library and have also checked Chrome's network inspector to confirm that the `trackPageView` command is making a network request to Hubspot with the correct data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a setting somewhere that determines whether a contact is created or some setting that I should compare between the two workspaces to see what's different?&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 21:17:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1152620#M82131</guid>
      <dc:creator>MLilien</dc:creator>
      <dc:date>2025-05-14T21:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Contact From JavaScript Tracking Code</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1152859#M82137</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/942253"&gt;@MLilien&lt;/a&gt;&lt;/SPAN&gt; and welcome, it's a pleasure to have you here!&lt;BR /&gt;&lt;BR /&gt;Thanks for asking the HubSpot Community!&lt;BR /&gt;&lt;BR /&gt;I'd love to put you in touch with our Top Experts: Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/133"&gt;@stefen&lt;/a&gt;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/78983"&gt;@Indra&lt;/a&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/942253"&gt;@MLilien&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a lovely day and thanks so much in advance for your valuable contributions!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 11:41:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1152859#M82137</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-05-15T11:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Contact From JavaScript Tracking Code</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1158379#M82341</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/942253"&gt;@MLilien&lt;/a&gt;&lt;/SPAN&gt;, just checking on you, do you still need help?&lt;BR /&gt;&lt;BR /&gt;I have found for you this similar thread that you might want to take a look at "&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/How-to-create-new-Contacts-via-Tracking-API-but-limit-to-certain/m-p/977748" target="_blank"&gt;How to create new Contacts via Tracking API, but limit to certain pages?&lt;/A&gt;".&lt;BR /&gt;&lt;BR /&gt;If you still need a hand, let's check with our Top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366"&gt;@sylvain_tirreau&lt;/a&gt;&lt;/SPAN&gt;, &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&lt;/a&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/171963"&gt;@Bortami&lt;/a&gt;&lt;/SPAN&gt;, do you have tips to share with &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/942253"&gt;@MLilien&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Have a great day and thanks so much in advance for your help!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 12:01:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1158379#M82341</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-05-29T12:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Contact From JavaScript Tracking Code</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1158412#M82344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Do you have the correct portal on each site for each tracking code (the XXXXX in the code below)?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!-- Start of HubSpot Embed Code --&amp;gt;
&amp;lt;script type="text/javascript" id="hs-script-loader" async defer src="//js-eu1.hs-scripts.com/XXXXX.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;!-- End of HubSpot Embed Code --&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;See settings &amp;gt; Tracking &amp;amp; Analitycs &amp;gt; Tracking code for each portal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Check your privacy policy (Settings &amp;gt; Privacy and consent): if you have a consent banner on one site and the user has not accepted the consent, the contact will not be created. You must have the same settings at this level on both portals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) Check in Settings &amp;gt; Tracking &amp;amp; analytics &amp;gt; Tracking code &amp;gt; Advanced tracking if you have the same settings and if there is no IP exclusion on one of the portals.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these initial checks producing results?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 13:23:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Creating-a-Contact-From-JavaScript-Tracking-Code/m-p/1158412#M82344</guid>
      <dc:creator>sylvain_tirreau</dc:creator>
      <dc:date>2025-05-29T13:23:39Z</dc:date>
    </item>
  </channel>
</rss>

