We have an app that generates it’s own registration page and form. On formsubmit (and mailconfirmation), the app sends new person via the API into hubspot. That’s where I pick the contact up for onboarding.
The problem is that this registration page is not an actual page and the form is not an actual form. It’s generated by a low code platform and just shows as a page in the browser.
My developer can create something to run hubspot tracking script, but I don’t know how to make sure that the tracking cookie is placed the same way as when the lead would have filled out a hubspot form.
Can anybody point me in the right direction, what to setup to place that cookie, so I can connect the cta click from the cms (start free trial) to the actual conversion on this generated registration page?
Hope this makes sense.
If not, you can try for yourself. Go to servoy.com and click on try free in the top right. Then watch the page source of the page and I think it will clarify.
Hey, @thies_servoy Thanks for your question. Here are some details to share with your dev. If they’ve already tried this, or run into any issues, please have them follow up here and the community will try to help.
Please note, if you are not using a standard HubSpot form, you’ll need to use of the Forms API to submit the form data. The hs_context parameter is used to pass along additional visitor data, including the HubSpot tracking cookie, hubspotutk.
This is how HubSpot connects the form submission to a specific website visitor. The hubspotutk cookie is stored in the visitor’s browser when they first visit a page with the HubSpot tracking code on it. Its value gets pulled from the visitor’s browser and included in the hs_context parameter when the form submission is made.
It might look something like this:
{
...
"hs_context": JSON.stringify({
"hutk": "123abc", // include this parameter and set it to the hubspotutk cookie value to enable cookie tracking
...
})
}