Skip to main content

Converting visitor to lead by passing anonymous email

  • 22 March 2023
  • 1 reply
  • 166 views

Using our JS API, it is not possible to update the email field of a visitor type contact with the standard Intercom('update', {"email": "rk.test@testing.com"}); Doing so will result in a 403 error. However, using a parameter in the JS API called anonymous_email will allow you to convert a visitor to a lead via the JS API without running into any issues. Use the update method to pass through the email of the visitor without needing to set up REST API calls to achieve the same result. 

Intercom('update', {"anonymous_email": "test@example.com"});

1 reply

 

Hi Ruth

I want to convert a visitor to lead after they fill up the form. I tried to call the update script upon Form Submit, but it didn’t work.

Any ideas?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings