Hi HubSpot Community, i am selling product on my website with a form and i track payment success. But i do not collect the Original Source Tracking. For now i only have Direct traffic, from wherever the customer is coming (ads compaign, social medica, affiliate link etc). Can anyone help to set up the field Original Source Tracking with API to collect this data ? Thank you for you rhelp ![]()
Hi @CRey9,
If you want HubSpot to track original source information, you would have to install the tracking code on your website: Install the HubSpot tracking code
Best regards!
Hi Karsten, Thank you for your message. I already put tracking code on my website. I can have this info only when people contact my customer service but not when they bought.
Hi @CRey9,
Just to confirm, you’d like to see which source a contact has at the time of the purchase? If so, you could look up the Latest source properties at the time of the purchase.
Is that what you mean?
Best regards
Hi @karstenkoehler, i want to know the original source from where my customer is coming but even with api i am not getting the data. I have ‘Direct traffic’ for every deals.
So i would like to know how to track my customer to have the data “where my customer is coming from before buying ?”
Hi @CRey9,
If it says direct traffic, that means that it’s being recorded but maybe incorrectly so:
- Original source data 1: additional information about the original source for the associated contact, or associated company if there is no contact, with the oldest value for the Time first seen property.
- Original source data 2: additional information about the original source for the associated contact, or associated company if there is no contact, with the oldest value for the Time first seen property.
- Original source type: the original source of the associated contact, or associated company if there is no contact, with the earliest activity for the deal. Learn more about contact original source values.
Best regards!
Hi @karstenkoehler, it seems that is more Lastest Source that we need to update because it came from Contact. A contact can have multiple deals from different Latest Source. Can you give me the code to apply for our api maybe ?
Hi @CRey9,
I still don’t fully understand what exactly you’re looking for. Could you maybe rephrase which source information exactly you would want to get at which time? Can you give an example, not using HubSpot terminology? For example, looking at a hypothetical contact with a deal and a recent social media touchpoint?
Best regards
hi again @karstenkoehler , sorry for the lack on information. Through Hubspot i want to track the origine of a client that is buying my product (does he buy coming from google search, does he buy coming from the link sent by my sales team, does he buy coming from the website). My client can buy multiple times so i want to have the info per time (hubspot vocabulary : per deal). At the end i want to be able to see, per product what is the source that generate more income
Update (2026): If you want to track the marketing source of each individual purchase, rather than the contact’s first or most recent traffic source, consider capturing UTM parameters at checkout and storing them in custom deal properties.
HubSpot’s Original Traffic Source and Latest Traffic Source properties describe contact interactions and aren’t designed to store a separate source for every purchase.
You can then use deal-based reporting to analyze revenue by purchase source and product, provided the relevant attribution data is captured and associated with each deal.
Learn more: Understand Original and Latest Traffic Source properties.
Hi @CRey9,
Would it be an option to pass the last utm parameters through the purchase form, as explained here? How to pass UTM parameters to HubSpot form - Tips, Tricks & Best Practices - HubSpot Community
Best regards
Moderator Note: this post was reviewed for relevancy and optimized for clarity on November 6, 2026. Thank you for your contributions to the HubSpot Community!