Hubspot Froms API Retrieve IP and Hubspot HTK


#1

Hey There, I've gone ahead and used the link https://developers.hubspot.com/docs/methods/forms/submit_form_ajax for the new hubspot form api to submit data.

My question is; what would I add to my react.js file to retrieve the users "hutk" and "ipAddress" so that I can include it in my code under the "context" object.

Thanks for your help!


#3

Hi @swoopamir,

Happy to help. My research turned up the following:

Retrieving cookie values with React.js:

Retrieving IP addresses client-side with JavaScript:


#4

amazing @Isaac_Takushi Thanks for the help, i got the cookies and ip addresses working to hubspot.