image for site

Identify Your Zendesk Widget Code Snippet

Learn how to identify whether you're using the Zendesk Chat or Web Widget code snippet on your site.

How can I identify which Zendesk widget code snippet I am using?

To identify which Zendesk widget code snippet you are using, check the code snippet on your page. The Chat code snippet starts withwindow.$zopimand includes anACCOUNT_KEYspecific to your account. If you started with a Chat-only account, this is likely your snippet. The Web Widget code snippet, on the other hand, usesze-snippetand is also tied to anACCOUNT_KEY, but in a different format. This snippet is used if your Chat account was created from within your Support account. To be certain, open your account and check the Widget page for the exact snippet.


More related questions

What is the correct way to add custom JavaScript to the Zendesk Chat widget?

To add custom JavaScript to the Zendesk Chat widget, ensure that your code executes in the correct order. JavaScript runs asynchronously, so use the appropriate 'ready' functions to ensure your customizations are applied after the widget loads. For…

How can I prevent the Zendesk web widget from sending the user's current URL?

Currently, there isn't a direct method provided in the documentation to prevent the Zendesk web widget from sending the user's current URL. However, you might consider rewriting the URL or using DOM manipulation techniques to alter the data being…

Can I continue using the legacy Zendesk Chat widget code after migrating?

Yes, you can continue using the legacy Zendesk Chat widget code after migrating, provided you update your customizations to follow the new format. The existing code snippet can be wrapped in azE()function to ensure compatibility with the new…

How do I enable cookie consent for the Zendesk Chat widget?

To enable cookie consent for the Zendesk Chat widget, you can use a simple JavaScript setup. Create a consent banner with a button that, when clicked, updates the widget settings to allow cookies. For example, use `zE('webWidget', 'updateSettings',…

What should I do if my custom JavaScript runs before the Zendesk widget loads?

If your custom JavaScript runs before the Zendesk widget loads, use the appropriate 'ready' functions to delay execution. For the Web Widget (Classic), wrap your code in$zopim(function(){ // Custom code here });. For the Web Widget, use…

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