- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Passing the hubspot tracking cookie with form api
SOLVEApr 20, 2020 6:36 AM - edited Apr 20, 2020 6:42 AM
Hello, I am using the following request to post form data to my hubspotforms:
https://developers.hubspot.com/docs/methods/forms/submit_form
In the documentation it says i need to add my hubspotutk to the hutk field under context like this:
"context": {
"hutk": ":hutk",
"pageUri": "www.example.com/page",
"pageName": "Example page"
},
Hower when i try to post my data i am getting the following message:
message":"Error in 'context'. Unexpected attribute 'htuk' of 'context' object","errorType":"INVALID_METADATA"}]
Am I missing something here?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Apr 20, 2020 8:15 AM - edited Apr 20, 2020 8:27 AM
Nevermind... Looks like I read it wrong. there was an error in my field just like the error said "htuk" is indeed not a valid attribute it needs to be "hutk".
It works now. Thank you for your time to respond Matthew.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content