Answered

How can I launch Intercom from a React application depending on some conditions being met?

  • 25 January 2021
  • 1 reply
  • 3 views

The specific problem I am trying to solve is as follows:

 

I have an application log in page where I do not want the intercom widget to be present for any user. Then after that user has logged in, depending on their predefined role permissions, intercom should either presented or hidden.

 

Admin users should be able to see the intercom widget.

Customer users should not be able to see the intercom widget.

 

Any assistance to help resolve this would be greatly appreciated!

icon

Best answer by Kevin Bendixen 26 January 2021, 14:52

View original

1 reply

Userlevel 3
Badge +5

@michael l11​ For the first. question, you could either try this option: https://www.intercom.com/help/en/articles/168-install-intercom-on-your-web-app-to-support-and-onboard-logged-in-users

or use the URL after logging in as a filter if it's different from the login pageBildschirmfoto 2021-01-26 um 14.45.53 

This here could also do the trick, I think you might be able to solve both problems with that:

Bildschirmfoto 2021-01-26 um 14.51.17

Reply