Troubleshooting Forms API submission


I’m creating form submissions via the Forms API but the metadata I pass in the hs_context parameter doesn’t appear to populate (regular properties like name and email populate fine, but I can’t see any analytics history, pages visited, etc). It looks like the hutk isn’t being ingested, but I’m getting a blank 204 response so I have no idea what it is about the parameter that’s incorrect. The value I’m passing in the request body is


How do I debug this?


@turningart the hs_context data is being double encoded. If you decode the data in your data, the result is the correctly encoded data: