I’ve been working with the Forms API for a while and for the most part everything works just fine as the submissions appear correctly in HubSpot with the correct field values.
However, all of the stuff related to “web analytics” doesn’t work. For example, the original source is shown as “Offline sources” with the drill down saying “FORM”, even though I came to the site via a link and can verify that the cookie value of the user is correctly being passed in the hutk section as part of the request body.
I assume the issue might have something to do with my escaping/formatting of “hs_context” part being somehow incorrect. Any ideas on what could be wrong? You’ll find an example request body below.