image for site

Disable Chat on Specific URLs with GTM

Learn how to use Google Tag Manager to disable chat on specific URLs by setting conditions or using the Hide API.

How can I disable chat on specific URLs using Google Tag Manager?

You can disable chat on specific URLs by setting conditions in Google Tag Manager (GTM). This allows you to control where the Web Widget code snippet is loaded.

One approach is to configure GTM to not load the Web Widget on URLs where you don't want the chat to appear. Alternatively, you can load the Web Widget on all pages and use the Web Widget Hide API to remove it from specific URLs. This flexibility helps you manage the chat visibility based on your site's structure.


More related questions

How can I customize Web Widget components on different pages?

You can customize Web Widget (Classic) components on different pages using API endpoints. By utilizing the Web Widget (Classic) API, you can enable or disable components like Help Center Search, Chat, and Contact Form based on your needs. To…

How do I enable only the search option in Web Widget?

To enable only the search option in the Web Widget, you need to adjust the script parameters. By setting the parameters in therunWidgetLogic.initfunction, you can control which components are active. For instance, to enable just the search…

What is the process to add Web Widget Classic via Google Tag Manager?

Adding the Web Widget Classic via Google Tag Manager (GTM) involves a few steps. GTM allows you to manage and deploy the Web Widget script efficiently across your site. To add the Web Widget, you need to create a new tag in GTM and insert the Web…

How can I suppress chat on specific Help Center pages?

Suppressing chat on specific Help Center pages can be achieved by using conditional logic in your script. This involves tracking the page location and applying logic to show or hide the widget components. For example, you can use DOM events to…

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