Newbie Question: How do I use Javascript API: Methods | Community
Skip to main content
Answered

Newbie Question: How do I use Javascript API: Methods

  • September 12, 2023
  • 1 reply
  • 131 views

Hello everyone! 

I’m new to Intercom and not a developer but I’d like to know how do I use these Javascript API: Methods in my Intercom deployment, specifically. 

Intercom('shutdown') and Intercom('update')

Intercom('shutdown');
Intercom('update');

where should I place these scripts into? 

 

Thanks!

Best answer by Jacob Cox

Hey there @reiszrie !

 

Those methods would be called in the JavaScript code of your site/app. For example, the ‘shutdown’ method is used for logging Users out of Intercom when they log out of your app. So you would call that method after a User clicks on the ‘Log out’ button of your app. The ‘update’ call would be made whenever you need to send updated User data to Intercom.

 

If you’re not a developer you will most likely need to work with one in order to integrate these into your site. Everyone’s setup and app works differently, so each one will be it’s own custom situation.

1 reply

Jacob Cox
Intercom Team
Forum|alt.badge.img+5
  • Sr. Technical Support Engineer
  • Answer
  • September 17, 2023

Hey there @reiszrie !

 

Those methods would be called in the JavaScript code of your site/app. For example, the ‘shutdown’ method is used for logging Users out of Intercom when they log out of your app. So you would call that method after a User clicks on the ‘Log out’ button of your app. The ‘update’ call would be made whenever you need to send updated User data to Intercom.

 

If you’re not a developer you will most likely need to work with one in order to integrate these into your site. Everyone’s setup and app works differently, so each one will be it’s own custom situation.