Subject: txt script
From: Akhil P Walia <[email-masked]>
To: philippines <[email-masked]>
Date: Mon, 20 May 2013 00:53:56 +0530 (IST)

Tools, Scipting >> add new script: 

Call it: LiveEngage90secs (like screenshot attached). 

This will now load up the chat windown if user does not click chat link after 90 seconds on out sites. 

function visitor(id){ 
var visitor = controller.getVisitor(id); 
if(visitor == null) return; 
var url = visitor['url']; 
if(url == null) return; 
if(url == '') return; 
var country = visitor['gi_cname']; 
var ip = visitor['ip']; 
// call my_liveEngage function with 90 second delay and pass visitor's id and liveenage id (le_id) 
controller.timer('my_liveEngage', 90000 , {'id': id, 'le_id': 12417}); 
} 
function my_liveEngage(obj){ 
// get visiotor data 
var visitor = controller.getVisitor(obj.id); 
if(visitor == null) return; 
// visitor is still here 
var url = visitor['url']; 
if(url == null) return; 
if(url == '') return; 
var country = visitor['gi_cname']; 
// visitor is still on pricing page let invite him/her to chat 
controller.liveEngage_v2(obj.id, obj.le_id); 
} 

ä ✌ h ↑ L