How can I customize the widget to automatically open when the page loads?

Question

My customers often avoid the widget button and I would like to have the widget window automatically open when they arrive on my page. Is it possible to have the window pop up when someone goes to my website? How do I customize my widget so that the window is displayed instead of the button?

Answer

When users arrive at your website they will see the default widget button. To set the window to automatically open, add the following script after the widget script:


zE(function() {
zE.activate();
});


Note: These instructions are specific to the Web Widget (Classic). To check which version of the widget you are using, see the article: Which Zendesk widget do I have with my account and website?.

For more information, visit our Zendesk Developers page.

Tip: For more information on how to proactively reach out to visitors on your webpage, see the article: proactive Chat Triggers.