Skip to main content
Answered

Custom Launcher not working


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>

Best answer by Shauna

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 😊 

View original
Did this topic help you find an answer to your question?

2 replies

Shauna
Intercom Team
Forum|alt.badge.img+4
  • Intercom Team
  • 159 replies
  • June 16, 2023

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


Shauna
Intercom Team
Forum|alt.badge.img+4
  • Intercom Team
  • 159 replies
  • Answer
  • June 21, 2023

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 😊 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings