API Data

In the email sent to addresses listed in in a Form’s ‘Options’, there is a line stating:

“Submitted through API on page: Not included in API data”

How do I get the email to show the page url or name, instead of “Not included, etc.”?

Thanks

Hey, @GeeDeeJay :waving_hand:

:waving_hand: Welcome to our community!

Just to clarify, are you including the following in your request body?

"context": {
 "hutk": "[hutk value]", // include this parameter and set it to the hubspotutk cookie value to enable cookie tracking on your submission
 "pageUri": "[Your Page URL]",
 "pageName": "[Your Page Name]"
}

This should allow the URL and page name to be included in your submission data. Just replace [hutk value], [Your Page URL], and [Your Page Name] with the actual values that correspond to your page.

Please let the community know if you have any more questions!

Best,

Jaycee

Hi Jaycee

Thanks for your help. No, I wasn’t including the ‘Context’ section in the request body.

It seems to be working perfectly now.

It’s a good job somebody knows what they’re doing!

:slightly_smiling_face:

Thanks again Jaycee