Answered

Custom Launcher not working

  • 15 June 2023
  • 2 replies
  • 230 views

Hi all,

I’ve followed the online guide and tried to launch the messenger from a button on a web page, but it fails to do anything. It’s 2 lines of code - how hard can it be?!

Debugging in Chrome, the button click makes no calls at all. If I click the standard Messenger icon everything works fine.

All help much appreciated!

Button code:

<a id="open_web_chat" class="btn btn-sm btn-primary lift w-75">Chat Now</a>

Script before </body>:

<script>

window.intercomSettings = {

api_base: "https://api-iam.intercom.io",

app_id: "XXXXXX",

custom_launcher_selector:'open_web_chat'

};

</script>

icon

Best answer by Shauna 21 June 2023, 08:48

View original

2 replies

Userlevel 3
Badge +4

Hey @Alex Lewis 👋🏼  Shauna here from Support! 

I’ve gone and opened a conversation with the Support Engineers to help you with this - they will contact you via email with more on this 🙏🏼

Userlevel 3
Badge +4

Answer taken from the conversation with Customer Support 👇🏼

 

Looks like you didn't add '#' in the beginning of open_web_chat in the installation code. To fix this, all you have to do is to change

 

custom_launcher_selector:'open_web_chat'

 

to custom_launcher_selector:'#open_web_chat'

 

Hope this helps 😊 

Reply