image for site

Using Custom Code to Add Chat Tags in Zendesk

Explore how to use JavaScript code to add tags to Zendesk chats. Ideal for users who prefer coding over using chat triggers.

How can I add chat tags using custom code?

If you prefer using custom code over chat triggers, you can add chat tags by embedding a JavaScript snippet on your website. The code snippet involves using the$zopimfunction to add tags, such as 'checkout_page', to the chat. This method requires you to paste the code on each webpage where you want the tag to be applied. It's a flexible option for those comfortable with coding.


More related questions

How can I add a tag to chats initiated from a specific webpage?

To add a tag to chats that start from a specific webpage, you can use a Chat trigger in Zendesk. This involves setting up a trigger that runs when a visitor requests a chat and checking the condition where the visitor's page URL equals the specific…

Can I tag chats from multiple pages with similar URLs?

Yes, you can tag chats from multiple pages with similar URLs using the 'Contains' option in the Visitor page URL condition. This is useful if you want the trigger to act on all pages that share a common URL stem but have different endings. For…

How do I tag chats from multiple different URLs with one trigger?

To tag chats from multiple different URLs using one trigger, you need to adjust the conditions to 'Check any of the following conditions'. Then, list each URL under the Visitor page URL condition. This setup allows the trigger to fire if a chat is…

Why don't my chat tags appear on the support ticket?

Chat tags might not appear on the support ticket if they are not synced until after the chat ends. This can happen if the chat session creates a support ticket before the tag is applied. To ensure tags are visible, check your chat trigger settings…

How can I report on chat tags in Zendesk?

To report on chat tags in Zendesk, you can use the Chat Engagement Dataset to create queries. This dataset allows you to track and analyze chat interactions based on the tags applied. If you're having trouble finding tags in the chat dashboard or…

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