How to add 2desk live chat

How to insert this code provided by 2desk live chat software to my cscart site??

which file should be edited??


<br />
<!-- ClickDesk - <a href='http://www.clickdesk.com'> Live Chat Service </a> for websites --><br />
<script type='text/javascript'><br />
var _glc =_glc || [];<br />
_glc.push('ag9jb250YWN0dXN3aWRnZXRyDwsSB3dpZGdldHMY59phDA');<br />
var glcpath = (('https:' == document.location.protocol) ? 'https://contactuswidget.appspot.com/livily/browser/' : 'http://gae.clickdesk.com/livily/browser/');<br />
var glcp = (('https:' == document.location.protocol) ? 'https://' : 'http://');<br />
var glcspt = document.createElement('script'); glcspt.type = 'text/javascript'; glcspt.async = true;glcspt.src = glcpath + 'livechat.js';<br />
var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(glcspt, s);<br />
</script><noscript><p><a href='http://gae.clickdesk.com/clickdeskchat.jsp?widget_id=ag9jb250YWN0dXN3aWRnZXRyDwsSB3dpZGdldHMY59phDA' >Live Support Software</a></p></noscript><br />

Hi,

I use a different chat, but it should work the same. I just created an html block and add the code. I place the block where I want it on the pages.

I think I made two different blocks. One for SSL and one without. I put the one with ssl on ssl pages only. My chat gives me the code for both. I don't put the code on all pages since I want the ssl code just on the secure pages.

Bob

Hi sanjananb, thanks you helped me because I couldn't get the code but you mde it easily. I added a HTML block, paste the code and replaced witm my ID and it worked.