See our other products: ChatBot - AI bot platform | - support ticket system | KnowledgeBase - help center for website

Help and support

Resources that will teach you everything about LiveChat.

Hiding your chat from Google Crawlers

by Krzysztof Kraus
Note that loading different assets for Google Crawlers may impact your position in Google Search engine. If your Google Search console will display errors about Google not being able to access LiveChat assets, consider removing our modified script and using the regular one. To read more on this matter, click here.

Google Crawlers are useful and harmless bots that can help you tremendously when it comes to positioning your website in Google Search. However, they are also treated as regular visitors, and they are clever enough to start empty chats with your LiveChat agents. So, is there a way to make them leave your operators alone?

Actually, there is! We have prepared a modified LiveChat code that can detect a Google Crawler. When it does, LiveChat will load a chat window from a non-existent group, which will automatically prevent the bot from starting a chat and being shown as a regular visitor. So, how to install it on your website?

Script installation

Please note that the the proposed workaround will not work if you are using our URL Rules feature, as they override the group ID specified directly in the LiveChat snippet.
  1. The process of installation is fairly easy. First, copy the modified LiveChat script from below and paste it into the source code of your website, just before the closing </body> tag, but don’t save your changes yet!
<script type="text/javascript">
var ua = navigator.userAgent;

window.__lc = window.__lc || {};
window.__lc.license = your_license_number;

if(ua.toLowerCase().indexOf("googlebot") >= 0) { = 999999999;

(function() {
  var lc = document.createElement('script'); lc.type = 'text/javascript'; lc.async = true;
  lc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + '';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(lc, s);
  1. Now, log into your LiveChat and go to Settings → Channels → Chat widget. From there, copy the number of your LiveChat license.
Copy the number of your license
  1. There’s just one more step left. Go back to your website’s source code where you have pasted the code from above → replace the your_license_number with the number of your license → save changes made to your website.

And that’s it! From now on, every time LiveChat will detect a Google Crawler, we will automatically prevent it from starting a chat and being shown as a regular visitor.

Hopefully, you have found this article helpful but if you have any additional questions, feel free to start a chat with us – we are available 24/7/365!

Did you find this helpful? Yes No
Thanks for your feedback.
100% of people found this helpful.

Start free LiveChat trial!

5-minute setup, test out the Team plan features for 14 days, no credit card required.

Rate us! Rate this chat to help us become better support. +