Home > Technical Support > Troubleshooting > Disable online visitors tracking for high load websites

Disable online visitors tracking for high load websites

Some of our customers reported, that their server is not capable to handle high load during high traffic peaks on their website.
 
Here is one tip how to reduce number of requests running on your server during high load on your website.
 
When the visitors monitoring is switched on, LiveAgent sends from visitor's browser every few seconds one update request to your server to keep information about live visitors. e.g. 1000 concurrent visitors on your website can generate about 50-100 requests per second. To reduce load on your server switch off live visitors monitoring. 
 
Pros: There will be significantly less requests running on your server.
Cons: You will not see who is currently on your website and you will not be able to manually invite visitors into chat.
 
How to switch off live visitors monitoring:
 
Simply add function LiveAgent.disableOnlineVisitorsTracking() before createButton or createForm function in the button or form integration code on your website:
 
<script type="text/javascript">
(function(d, src, c) { var t=d.scripts[d.scripts.length - 1],s=d.createElement('script');s.id='la_x2s6df8d';s.async=true;s.src=src;s.onload=s.onreadystatechange=function(){var rs=this.readyState;if(rs&&(rs!='complete')&&(rs!='loaded')){return;}c(this);};t.parentElement.insertBefore(s,t.nextSibling);})(document,
'https://something.ladesk.com/scripts/track.js',
function(e){
  LiveAgent.disableOnlineVisitorsTracking();
  LiveAgent.createButton('3htyfgq3', e); });
</script>

 

 

Ready to try LiveAgent?

It's free for the first 14 days! No credit card required.

Get Started
We work well with others...
Magento Joomla Wordpress Mailchimp
Contact us

support@liveagent.com

+1-800-811-6590 (Toll Free in USA & Canada)

+421 2 33 456 826 (European Union & Worldwide)

Quality Unit, LLC 616 Corporate Way, Suite 2-3278 Valley Cottage, NY 10989

Stay in touch
Blog Google+
© 2004-2020 LiveAgent.com, All rights reserved