How do I connect cookie tracking when my custom form creates the new HUB contact through API?



I am running into an issue with new trial account signups on my website tracking previous cookie history. When a user comes to my site and completes this custom form we activate > redirect them into our application. When the user signs up we create a new contact record in Hubspot, but we are not pulling over or correctly capturing the cookie information from the user.

All of my new leads / signups original source is showing as ‘direct traffic or offline’

Has anyone else run into this issue? Any help would be appreciated. Thanks,



Hi @mthompson,

You need to collect the hubspotutk cookie from the visitor’s browser and pass that in the hs_context parameter with the form submission: