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>

 

 

×