submit_form v2 API endpoint not sending hs_context / IP Address / Original Source data


We're using the V2 version of the submit_form endpoint to pass data from FormAssembly to Hubspot. In order to get the source and analytics data into Hubspot, we're passing the hs_context parameter as a URL-encoded JSON block. However, we're still seeing "created from Direct Traffic from No URL" for all of our contacts.


Here's an example of what we're passing as the hs_context parameter:

We've double-checked our cookie policy settings and it appears that everything is correct. Any idea why this isn't working?


1 Reply 1
Community Manager

Hi @jhned,


I hope all is well with you 😄


It is possible that those leads are the one who directly type your website URL into their browser and so it is being bucketed under Direct traffic. You can also learn more here: Categorize sessions, contacts, and customers in the sources report


Also, when taking a look into your form on this portal 6247824, I'm able to see that there are contacts who is coming from PPC. 


Additionally, as mentioned by Derek here:;

While there's a couple of reasons why contacts are being bucketed under Direct Traffic, 

fundamentally all of them point to either:

  1. There is no tracking URL or referrer for the contact’s first visit
  2. The contact doesn’t have any tracking information associated

That said, I'll be more than happy to help you take a look into things here if you could sent me some example contacts.