Hubspot Froms API Retrieve IP and Hubspot HTK


Hey There, I've gone ahead and used the link 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!


Hi @swoopamir,

Happy to help. My research turned up the following:

Retrieving cookie values with React.js:

Retrieving IP addresses client-side with JavaScript:


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