Zopim Live Chat Widget

zopim.com/product

Official Implementation

HTML<body>
<!--Start of Zopim Live Chat Script-->
<script type="text/javascript">
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute("charset","utf-8");
$.src="//v2.zopim.com/?MY_APP_KEY";z.t=+new Date;$.
type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script");
</script>
<!--End of Zopim Live Chat Script-->
</body>

Solution

Remove the supplied javascript and add the following to your application's javascript.

JAVASCRIPT<script type="text/javascript">
  function zopim_chat(){$('[__jx__id]').remove();
  window.$zopim = null;
  (function(d,s){
    var z=$zopim=function(c){z._.push(c)},$=z.s=d.createElement(s),e=d.getElementsByTagName(s)[0];
    z.set=function(o){z.set._.push(o)};
    z._=[];
    z.set._=[];
    $.async=!0
    ;$.setAttribute('charset','utf-8');
    $.src='//v2.zopim.com/?MY_APP_KEY';
    z.t=+new Date;
    $.type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script')};
    $(window).off('page:change.zopim').on('page:change.zopim', zopim_chat);
    // zopim_chat();
</script>

Related Issues: #131

Contributors

All solutions should be considered unofficial. There is no guarantee that a given solution will work with your application. If you find that a solution is insufficient, please let me know by submitting an issue on Github.