Live Agent Chat Button

Gold Contributor
Gold Contributor


I need to add the code for a Live Agent chatbot on the site.  The template for a Live Agent tag does not match with the code I have been given.  Can you suggest the best possible way to add this code?  As a Generic Tealium pixel or a custom container?

Thanks a lot!

<img id="liveagent_button_online_5730n00000001K8" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('5730n00000001K8')" src="" /><div id="liveagent_button_offline_5730n00000001K8" style="display: none;"><!-- Offline Chat Content --></div><script type="text/javascript">
if (!window._laq) { window._laq = []; }

window._laq.push(function(){liveagent.showWhenOnline('5730n00000001K8', document.getElementById('liveagent_button_online_5730n00000001K8'));

liveagent.showWhenOffline('5730n00000001K8', document.getElementById('liveagent_button_offline_5730n00000001K8'));



Live Agent Chat Button

Tealium Expert
Tealium Expert

I think you are missing the initialization script, you need to install that first before this will work it normally ends with deployment.js  

This should be supplied to you by the person who gave you the script.

Unless it has been already hard coded onto the website? and you are just looking to push through a button?

If that is the case then i would just simply throw this into a JS extension, or a customer container....

Damian Savvides