Adding a chat widget

I’m trying to figure out how to add a chat widget to my site. I have an embed script like:

<!--Start of Zendesk 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="SECRET";z.t=+new Date;$.
type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script");
</script>
<!--End of Zendesk Chat Script-->

But I am not sure where or how I can add this to my project without an index.html file.

You can use the info in this topic: autoAds adsense

Effectively just putting your script inside the head component from frontity.

1 Like