Question

Capturing users email address from Login Page and associating as a property to the userID

  • 8 November 2022
  • 1 reply
  • 16 views

Hi there, 

I am looking to associate a users email address to its userID. Currently the only location we capture the email address on our site is via the login page. 

Looking for advice on best solution to associate email addresses to our users? Would this be via capture the value from the login screen? 

Of note, it is a SPA 

any help appreciated.


1 reply

Hey Matt!

Thanks for posting on the community about this. 

The best way to associate a particular email address to a User ID is to leverage our identify API call. With this call, you will be able to permanently assign an identifiable property to a user, allowing them to be referenced with tangible information, rather than a series of numbers.

Normally we’d recommend making this call once an email address has been provided to you, and this tends to be when the user logs in. At this point, you can call the API and pass in the email address value provided to you by the user.

 

For further information on this topic, please refer to our Developer Guides:

Identify

Using Identify


Dan | Solutions Engineer @ http://www.heap.io

Reply