Reset identity via js apiSOLVE
Feb 8, 2018 9:12 AM
Is there a way to reset the users identity via a Js API call/method? We have a use case where we need to clear out the Hubspot session to allow for a new user to submit a form without modifying the existing users contact record or activity. I know that there is an option for forms to be cookieless but that isn’t a desirable solution for our use case
I know “segment” has a resetIdentity method that allows you to do this but I can’t find anything in the Hubspot docs.
Current alternative is to delete all the Hubspot cookies prior to next submission. Not ideal but may be only option.
Solved! Go to Solution.
Feb 8, 2018 5:53 PM
You’ll need to delete the tracking cookie (specifically, the
hubspotutk cookie) in order to ‘reset’ a visitor’s identity. This would allow a new
hubspotutk cookie to be placed, essentially creating a new identity separate from the previous one.