All Collections
Messenger
Customizing
Hiding the Messenger Launcher
Hiding the Messenger Launcher

Learn how to hide the Messenger app on websites.

Avatar of tanazmasaba06
Written by tanazmasaba06
Last updated Jan 29, 2025
In Web2Chat, you have the flexibility to control the visibility of the Messenger on your website or application. Hiding the Messenger can be useful in scenarios where you want to limit user interactions during specific periods or on certain pages. This guide will walk you through the steps to hide the Messenger in Web2Chat.

Hiding the Messenger Launcher (for Web)

1. Using Web2Chat Settings

  1. Navigate to Channels--> Messenger from your dashboard in Web2Chat.
  2. Here you will find the following options: Content, Styling, General Settings, Lead Collection, Install.
  3. Navigate to 'Publishing'.
  4. Toggle the option to Turn on your widget to make your Web2Chat Messenger available to users.
By disabling this option, the Messenger launcher will be hidden across your website, preventing users from initiating new conversations or viewing past interactions.

2. Using JavaScript API

For more granular control, you can hide the Messenger using Web2Chat's JavaScript API:
  1. Modify the Installation Code:
    • Locate the Web2Chat installation script on your website.
    • Add the following key-value pair to the web2chatSettings object:
      javascript
      hide_default_launcher: true
    This configuration hides the default Messenger launcher.
  2. Example Implementation:
    javascript
    window.web2chatSettings = { app_id: 'YOUR_APP_ID', hide_default_launcher: true };
    Replace 'YOUR_APP_ID' with your actual Web2Chat application ID.
Implementing this setting programmatically allows you to control the Messenger's visibility based on specific conditions or user interactions defined in your website's code.

Important Considerations

  • Proactive Messages: Even when the Messenger launcher is hidden, proactive messages (e.g., in-app messages) will still be delivered to users. Users can engage with these messages, but once they have read or dismissed them, the Messenger will no longer be accessible unless the launcher is made visible again.
  • Help Center Integration: The Messenger visibility settings also apply to the Messenger on your Help Center. If you prefer to keep the launcher visible on your Help Center while hiding it elsewhere, adjust the display conditions accordingly.

If you need further assistance, contact our Customer Support.

Related Articles