intercom-rails icon indicating copy to clipboard operation
intercom-rails copied to clipboard

Ability to hide chat for selected users/accounts

Open ro-savage opened this issue 4 years ago • 1 comments

We would like the ability to exclude intercom chat for subset of users.

We can use exclude_if however this excludes them from all of intercom, including records their details, emails, stats etc.

We would like to just hide just the chat (javascript side) from certain users/companies. As we only provide live chat to runs when paid for.

Right now, we've basically got some JS that will delete intercom from the dom after the page loads. However, this hack isn't ideal.

ro-savage avatar Dec 14 '20 00:12 ro-savage

Do you not have a user database? You could just check among those parameters and if they aren't met (e.g. not a user) - don't return the Intercom widget code.

Kenner-G avatar Mar 17 '21 09:03 Kenner-G