Answered

Newbie Question: How do I use Javascript API: Methods

  • 12 September 2023
  • 1 reply
  • 77 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!

icon

Best answer by Jacob Cox 18 September 2023, 00:41

View original

1 reply

Userlevel 4
Badge +5

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.

Reply