问题
我不希望我的小组件最小化后,在客户第一次访问我的网站时需要单击一下才能打开在线交谈。我希望实时在线交谈能够弹出并自动打开,而无需客户手动请求在线交谈。我该怎么操作?
回答
注意:消息传送没有现成的主动通知功能。有关消息传送的信息,请参阅文章:消息传送与实时在线交谈:哪个更适合您?
要使您的小组件在客户首次加载页面时打开并显示实时在线交谈,您有两个选择:
- 如本文所述使用在线交谈触发器:使用主动式在线交谈锁定关键访问者
- 将以下代码添加到您网站的小组件脚本正下方:
<script type="text/javascript">
zE(function() {
zE.activate();
});
</script>
免责声明:上述代码仅供说明之用。Zendesk 对代码不提供支持,也不保证代码质量。如有任何问题,请将其发布在评论部分,或尝试在线搜索解决方案。
5 条评论
Chris Vázquez
I've used ChatGPT to create many variations of HTML and all of them can display the widget on a blank webpage but I can't figure out how to have the widget open automatically without being clicked no matter what I try. It's loaded and can be clicked - just can't get it to open automatically
0
Chris Vázquez
Hey David, I tried your solution above and it still doesn't work unfortunately.
0
David
Hi Davide,
Usually that zE.activate is not a function error is from the Widget code not actually being loaded on the site correctly. Ensure it is then try that again.
Assuming it IS loaded, try to wrap the code in a setTimeout function to delay its execution until the
zE
object is available with this:<script type="text/javascript">
setTimeout(function () {
zE(function () {
zE.activate();
});
}, 3000);
</script>
0
Davide Cuppone
Hello, I tried
and receive the error
the other solution
does nothing
0
Inspera LLC
I was brought to this post by wanting to link "contact us" buttons and links to our Messenger widget. I found the following workaround on my own:
1
登录再写评论。