Skip to main content

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>

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 🙏🏼


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