image for site

Show Zendesk Chat Widget on Select Pages

Learn how to keep the Zendesk chat widget on all pages but only display it on select ones using JavaScript.

Can I keep the Zendesk chat widget on all pages but only show it on some?

Yes, you can keep the Zendesk chat widget on all pages but only display it on certain ones by using specific JavaScript techniques.

You can use theon chat:unreadMessagesevent to listen for chat notifications andwindow.location.pathnameto track the user's page. This allows you to toggle the visibility of the chat widget based on your requirements. Additionally, you can manipulate the widget'sz-indexto control its visibility on different pages. This approach ensures that the chat session remains active even if a user navigates between pages with and without the chat widget.


More related questions

How can I hide the Zendesk live chat on specific pages of my website?

To hide the Zendesk live chat on specific pages of your website, you can either remove the widget source code from those pages or use specific code to suppress the chat feature. If you want to remove the widget entirely from a webpage, simply…

What is the difference between the Chat Widget and the Web Widget in Zendesk?

The Chat Widget and the Web Widget in Zendesk serve different purposes and have distinct functionalities. The Chat Widget is specifically designed for live chat interactions, allowing users to communicate with support agents in real-time. On the…

How can I suppress the Zendesk widget on specific forms in the help center?

To suppress the Zendesk widget on specific forms in the help center, you will need to implement custom coding. You can use an IF/THEN statement in your code to hide the widget for particular forms. For example, you can use the `zE('messenger',…

Why does the Zendesk Messenger briefly show the bubble after closing?

The brief appearance of the Zendesk Messenger bubble after closing is due to the expected behavior of the JavaScript API controlling its visibility. When you use thezendeskAPI('messenger', 'close')method, it triggers the closing animation of…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites