I am trying to insert a small block of javascript code in nopCommerce 4.10.
It is the Zopim chat code. I tried to insert it in the header of the '_Root.Head.cshtml' page but nothing is visible on the site. No error, but no chat is visible.
In version 3.40, entering it as I did worked fine.
This is the code:
<!--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/?xxxxxxxxxxxxxxxxxxxxxxxxxx'; z.t = +new Date; $.
type = 'text/javascript'; e.parentNode.insertBefore($, e)
})(document, 'script');
</script>
<!--End of Zopim Live Chat Script-->
How can I do?
Thanks for your help