If you are using the ParaChat LiveHelp Gateway to track visitors via the embedded page tags, you can still use ParaChat LiveHelp to track downloads (PDFs, EXEs etc) and outgoing clicks. In fact any page event can be tracked.
This is done using a version of the ParaChat LiveHelp Tracking Code, which sends an event back to the ParaChat LiveHelp server without displaying any image.
It can be included on any of your pages along with the normal tracking code.
Below is the code you will need to use. Please copy and paste this code into a new document called parachat_call.js
function writeParaChat(sWOGateway,sWODomain,sWOPage)
{
var sWOSession;
var sWOUrl;
var sWOProtocol=window.location.protocol;
var iWO=new Image(1,1);
// create a unique session cookie for the visitor if not already created
var dt=new Date();
var sWOCookie=document.cookie.toString();
if(sWOCookie.indexOf("whoson")==-1){
sWOSession=parseInt(Math.random()*1000)+"-"+dt.getTime();
document.cookie="whoson="+sWOSession+";expires=Fri, 31-Dec-2010 00:00:00 GMT;";
}
sWOCookie=document.cookie.toString();
if(sWOCookie.indexOf('whoson')==-1){
sWOSession="";
} else {
var s=sWOCookie.indexOf("whoson=")+7;
var e=sWOCookie.indexOf(";",s);
if(e==-1)e=sWOCookie.length;
sWOSession=sWOCookie.substring(s,e);
}
if(sWOPage=="")sWOPage=escape(window.location);
if(sWOProtocol=="file:")sWOProtocol="http:";
sWOUrl=sWOProtocol+"//"+sWOGateway+"/stat.gif?u="+sWOSession+"&d="+sWODomain;
sWOUrl+="&p='"+sWOPage+"'&r='"+escape(document.referrer)+"'";
iWO.src=sWOUrl;
return;
}
Save it to the root of your site. Include it on your page like this:
<script language="javascript" src="/parachat_call.js"></script>
Then simply call it on the 'onclick' event of any page element, for example:
<A href="myfile.exe" onclick="javascript:writeParaChat('gateway','domain','myfile.exe');"Click To Download</a>
Replace gateway with the DNS of your ParaChat LiveHelp Gateway and domain with the domain name of the site being monitored in ParaChat LiveHelp.
The last parameter is the filename/pagename or event name that you want to appear in ParaChat LiveHelp when the element is tracked.