Open chat through link
RespondidaI'm trying to figure out how I can get Zopim chat to open by clicking a link on my page. Either opening the chat that exists in the bottom corner, or by creating a popout chat window.
Any advice appreciated.
-
Hi Ian,
You can use this link, replace with your account key to open a popout chat window:
http://v2.zopim.com/widget/livechat.html?key=<ACCOUNT_KEY>Note that each link will open a new chat session though.
-
Hi there Ian,
If you want a link or button to open the chat window or open the chat window in a popout, you can make the button/link have the following code using our Javascript API.
To open in a new browser window:
javascript:void($zopim.livechat.window.openPopout())
To open in the same tab:
javascript:void($zopim.livechat.window.show())
I personally would avoid directly linking to the v2.zopim.com/widget/ link because your agents lose where the visitor is located on your site and the visitor will need to reenter their information if they were to chat again with you.
Let me know if you have any questions about using the APIs. You can get all the docs here
Thanks,
Ramin
-
I've tried different solution above but none work so I've try and try until I come up with this solution:
If you are using button you can use this, this works on me.
1. <button onclick="zE.activate();">Chat Us</button>
2. or using text link <a href="javascript:zE.activate();">Chat us</a>
3. be sure to add this two script via footer before body tag closing.
4. <script>if(loggedIn) {zE(function() {zE.show();});}</script>
5. <!-- Start of Zendesk Widget script -->
<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=YOUR KEY"> </script>
<!-- End of Zendesk Widget script -->6. Hope this helps
-
Thanks for sharing your solution, John.
-
Thanks John, if only I found this post first. Good stuff!
-
Is it possible to pre-select a department as well?
-
Mani Berenji Currently, it is not possible to pre-select departments in the popout experience.
Por favor, entrar para comentar.
7 Comentários