I have a WordPress website and have recently added intercom. The website itself doesn't have a function (or market need) to log users in, but I'd still like to remember and prefill their details across the website once they've entered their details once before (in the chat app, or website forms).
For example, I have a quote form and if Intercom has the name and email stored I would like it to be pre-populated into the form (and vice versa).
My question is, how can I achieve this? Intercom doesn't appear to have a JS method to get the current user details.
@Roy this method doesn’t appear (link is broken). Can you please update your answer? Looking for the same. I also would like to know how to retrieve the user infor using js method, ie, pull their email address. I only see a method as GetVisitorId, but nothing returned other than the internal ID, and doesnt work (undefined) for logged in users. I need this to be able to track our tool updating email addresses in. intercom, so we log when a user of a certain user_id, is identified in the JS methods we deploy with a different email address (tracking changed to that email address for a user_id in intercom).
Finally, if we were to send info like email address using visitor id, doesnt that turn them into an authenticated user? Only method for that is update, or install? I think the question is how to add data to Intercom without loggin them in. Making them leads?
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.