Solved

Can you connect an email entered into a form to a user identity?

  • 10 January 2023
  • 2 replies
  • 119 views

Badge
  • New Member
  • 0 replies

Can Heap tie the email address users enter into our contact form to their user identity?

This would rely on Heap taking data from a field *after* an event (user clicks submit) and then filling it into the user profile. If the same user submitted the form with multiple emails, the most recent will overwrite.

icon

Best answer by Ariana-Heap 13 January 2023, 21:59

View original

2 replies

Userlevel 1
Badge

Hi @Rgo

 

Thanks for reaching out with your question! You can use Heap’s addUserProperties API to attach an email address to users after they submit a contact form. This will require some engineering or web development resources to implement, but the basic idea is to:

  1. Add an event listener to the page that checks for a form submission

  2. Call a javascript function that grabs the email address from the form and sends it to Heap’s built-in email property using the addUserProperties API

As you noted, user properties in Heap are stateless, so only the most recent value will be stored if a user submits the form multiple times with different email addresses. 

 

I hope this helps! Please don’t hesitate to reach out if you have any more questions. 

 

All the best,

Ariana

Badge

Heap

Reply