<?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: Lead's source attribution for SaaS in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/1259025#M87147</link>
    <description>&lt;P&gt;The challenge you're having is that HubSpot's native attribution only works when someone completes an actual HubSpot form. When leads come in via API (like from your app signup), HubSpot has no way to connect that new contact to their previous website activity, so it defaults to "Offline Sources."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best way to solve this is to capture the attribution data when visitors first land on your website, store it in your database when the user signs up, and then include it in the API payload you send to HubSpot to create a new contact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tools like Attributer can help with this. You put their code on your site, and when a visitor lands on your site, it stores the UTM parameters, referrer data, and other attribution information in a first-party cookie. Then, when the user signs up in your app, you can pull that data from the cookie using JavaScript and store it in your database (usually on the users or accounts table). Finally, you send it along with the contact creation API call to HubSpot (and you can also send it to other tools as well, like billing platforms such as Stripe, product analytics tools like Amplitude, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this approach, even though the signup didn't happen through a HubSpot form, you're still sending HubSpot the original source information (Paid Search, Organic Search, Paid Social, etc.) plus campaign details, landing page, and other context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also write custom JavaScript to handle the cookie storage and retrieval yourself, but that requires ongoing maintenance as browsers update and your site structure evolves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key is capturing the attribution data early in the visitor journey and then making sure it gets passed through when the API creates the contact in HubSpot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S If this all sounds technical, it's not that hard. Your developers could probably get this all set up in about an hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.P.S: I used an AI assistant to help structure this response because I'm not great at writing, but the advice comes from my experience and I've reviewed it before posting.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2026 05:26:55 GMT</pubDate>
    <dc:creator>azisbak</dc:creator>
    <dc:date>2026-03-16T05:26:55Z</dc:date>
    <item>
      <title>Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/923090#M71097</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;Because we're a PLG company once a prospect is signing up it is usually not being performed with a HubSpot form. This lead will go into the system (HS) through API and his original source would be offline sources.&lt;BR /&gt;If it was an ordinary HubSpot form, the system would have known to attribute all previous site visits to this lead and tag him with the right source which he really came from.&lt;/P&gt;&lt;P&gt;Obviously, we would like to be able to see the true source of that lead. What solutions are there for immediately syncing the lead's details to HubSpot, on the same session without using custom integration?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 09:11:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/923090#M71097</guid>
      <dc:creator>OCheikha</dc:creator>
      <dc:date>2024-02-15T09:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/927111#M71287</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/710226"&gt;@OCheikha&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Community!&lt;BR /&gt;&lt;BR /&gt;First, I'd like to share these resources for information:&lt;BR /&gt;&lt;BR /&gt;- &lt;A href="https://knowledge.hubspot.com/contacts/what-is-lead-source-and-how-does-the-property-get-updated" target="_blank"&gt;Update the lead source property&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://knowledge.hubspot.com/properties/understand-source-properties" target="_blank"&gt;Understand Original and Latest source properties&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://knowledge.hubspot.com/reports/understand-hubspots-traffic-sources-in-the-traffic-analytics-tool" target="_blank"&gt;Understand HubSpot's traffic sources in the traffic analytics tool&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I found similar threads that might be of interest:&lt;BR /&gt;&lt;BR /&gt;- The solution from &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/665"&gt;@IsaacTakushi&lt;/a&gt;&lt;/SPAN&gt; on this post "&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/API-Post-into-an-existing-source-in-Hubspot/m-p/239845" target="_blank"&gt;API Post into an existing source in Hubspot&lt;/A&gt;"&lt;BR /&gt;- The solution from &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/72929"&gt;@Willson&lt;/a&gt; on this post "&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/Lead-Source-API/m-p/325551" target="_blank"&gt;Lead Source API&lt;/A&gt;"&lt;BR /&gt;&lt;BR /&gt;I also wanted to invite a couple of subject matter experts to this conversation: 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/341938"&gt;@MBERARD&lt;/a&gt;&lt;/SPAN&gt;, &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/533153"&gt;@DanielJeal&lt;/a&gt;&lt;/SPAN&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258"&gt;@Teun&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/710226"&gt;@OCheikha&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;If anybody else has anything to add and/or share, please feel free to join in the conversation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks so much and have a lovely day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 10:40:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/927111#M71287</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-02-22T10:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/927223#M71294</link>
      <description>&lt;P&gt;Thank you for your answer and resources! I'll look into it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Looking forward to &lt;SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938" target="_blank" rel="noopener"&gt;@MBERARD&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/533153" target="_blank" rel="noopener"&gt;@DanielJeal&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258" target="_blank" rel="noopener"&gt;@Teun&lt;/A&gt;'s response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 13:16:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/927223#M71294</guid>
      <dc:creator>OCheikha</dc:creator>
      <dc:date>2024-02-22T13:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/934392#M71498</link>
      <description>&lt;P&gt;Hey guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I should just embed the tracking code on our app domain? I feel like it could solve it&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938" target="_blank"&gt;@MBERARD&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/533153" target="_blank"&gt;@DanielJeal&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/101258" target="_blank"&gt;@Teun&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 12:19:28 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/934392#M71498</guid>
      <dc:creator>OCheikha</dc:creator>
      <dc:date>2024-02-28T12:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/939513#M71737</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/710226"&gt;@OCheikha&lt;/a&gt;&lt;/SPAN&gt;, I hope that you are well!&lt;BR /&gt;&lt;BR /&gt;Thank you for your patience!&lt;BR /&gt;&lt;BR /&gt;I'd like to invite a couple of subject matter experts to this conversation:&lt;BR /&gt;&lt;BR /&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/74"&gt;@Phil_Vallender&lt;/a&gt;&lt;/SPAN&gt;, &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/76319"&gt;@DanielSanchez&lt;/a&gt;&lt;/SPAN&gt;, &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/642"&gt;@mangelet&lt;/a&gt;&lt;/SPAN&gt;, &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/363300"&gt;@Jnix284&lt;/a&gt;&lt;/SPAN&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/123775"&gt;@danmoyle&lt;/a&gt;&lt;/SPAN&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/710226"&gt;@OCheikha&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Also, if anybody else has anything to add and/or share, please feel free to join in the conversation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you so much and have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 11:59:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/939513#M71737</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-03-07T11:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/939683#M71744</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/710226"&gt;@OCheikha&lt;/a&gt;&amp;nbsp;and welcome to thje Community! I agree, adding the HubSpot tracking code to your assets (app, website, etc.) is critical. This will help track contacts as the interact, and add source information to their journey.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 15:42:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/939683#M71744</guid>
      <dc:creator>danmoyle</dc:creator>
      <dc:date>2024-03-07T15:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lead's source attribution for SaaS</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/1259025#M87147</link>
      <description>&lt;P&gt;The challenge you're having is that HubSpot's native attribution only works when someone completes an actual HubSpot form. When leads come in via API (like from your app signup), HubSpot has no way to connect that new contact to their previous website activity, so it defaults to "Offline Sources."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best way to solve this is to capture the attribution data when visitors first land on your website, store it in your database when the user signs up, and then include it in the API payload you send to HubSpot to create a new contact.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tools like Attributer can help with this. You put their code on your site, and when a visitor lands on your site, it stores the UTM parameters, referrer data, and other attribution information in a first-party cookie. Then, when the user signs up in your app, you can pull that data from the cookie using JavaScript and store it in your database (usually on the users or accounts table). Finally, you send it along with the contact creation API call to HubSpot (and you can also send it to other tools as well, like billing platforms such as Stripe, product analytics tools like Amplitude, etc).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this approach, even though the signup didn't happen through a HubSpot form, you're still sending HubSpot the original source information (Paid Search, Organic Search, Paid Social, etc.) plus campaign details, landing page, and other context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also write custom JavaScript to handle the cookie storage and retrieval yourself, but that requires ongoing maintenance as browsers update and your site structure evolves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key is capturing the attribution data early in the visitor journey and then making sure it gets passed through when the API creates the contact in HubSpot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S If this all sounds technical, it's not that hard. Your developers could probably get this all set up in about an hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.P.S: I used an AI assistant to help structure this response because I'm not great at writing, but the advice comes from my experience and I've reviewed it before posting.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2026 05:26:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Lead-s-source-attribution-for-SaaS/m-p/1259025#M87147</guid>
      <dc:creator>azisbak</dc:creator>
      <dc:date>2026-03-16T05:26:55Z</dc:date>
    </item>
  </channel>
</rss>

