Converting visitor to lead by passing anonymous email

  • 22 March 2023
  • 1 reply

Userlevel 1

Using our JS API, it is not possible to update the email field of a visitor type contact with the standard Intercom('update', {"email": ""}); 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": ""});

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?