+ Start a Discussion
Nandita Shah 10Nandita Shah 10 

Live Agent Chat button not appearing on website

I want a chat button to be displayed on my website that says "Chat with Us" where people can click to initiate a chat on VerifiedFirst.com.
This code is embedded in my footer but no button appears. What am I doing wrong?

<script type='text/javascript' src='https://c.la3-c1-was.salesforceliveagent.com/content/g/js/34.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la3-c1-was.salesforceliveagent.com/chat', '572o0000000L5LT', '00Do0000000XzpL');

<a id="liveagent_button_online_573o0000000L6Ig" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('573o0000000L6Ig')"><!-- Online Chat Content --></a><div id="liveagent_button_offline_573o0000000L6Ig" style="display: none;"><!-- Offline Chat Content --></div><script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('573o0000000L6Ig', document.getElementById('liveagent_button_online_573o0000000L6Ig'));
liveagent.showWhenOffline('573o0000000L6Ig', document.getElementById('liveagent_button_offline_573o0000000L6Ig'));
Alexander TsitsuraAlexander Tsitsura
Hi Nandita

You need use liveagent_invite_button_573x0000000001O instead of liveagent_button_online_573o0000000L6Ig. Please see example below
<div id="liveagent_invite_button_573x0000000001O" style="display: none;
  position: fixed; border: 2px solid darkblue; border-radius: 5px;
  background-color: lightblue; height: 100px; width: 200px;">
<div style="cursor: pointer; padding: 5px; right: 0px;
  position: absolute; color: darkred; font-weight: bold;"
<div style="cursor: pointer; top: 42px; left: 65px; position: absolute;
  font-weight: bold; font-size: 16px;" 
  onclick="liveagent.startChat('573x0000000001O')">Start Chat</div>

<script type='text/javascript' src='https://c.la1s1.saleforceliveagent.com/content/g/deployment.js'> </script>
<script type='text/javascript'>
liveagent.init('https://d.la1s1.salesforceliveagent.com/chat', '572x00000000001',

As a common practice, if your question is answered, please choose 1 best answer. 
But you can give every answer a thumb up if that answer is helpful to you.

Alexander TsitsuraAlexander Tsitsura
Hi Nandita,

Setup -> Customize -> Live Agent -> Chat Buttons & Invitations -> choose item with "Automated Invitation" type - scroll down to "Automated Invitation Sample Code". There you can find example of code "The following code sample shows what the automated invitation will look like on your page."

Copy&Paste this example to you page.

Nirmal ChristopherNirmal Christopher
what is the difference between automated invitation and chat Button ??

Vishal Tandon 11Vishal Tandon 11
Chat Button - It is something static I would say in easy terms. The moment you open any site or page, the button will be there on the screen. It will remain static on the page, as per you designed it or placed it.

Automated Button - Something dynamic. You can choose after how much duration the button will be popped up on the screeen including the directions from where you want it.

Thanks ..