image for site

Using Legacy Zendesk Chat Code Post-Migration

Learn how to continue using your legacy Zendesk Chat widget code after migrating to the new Web Widget.

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 Web Widget. However, unsupported livechat APIs should be avoided, and it's recommended to transition to the newze-snippetfor future-proofing.


More related questions

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,…

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…

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