Parker Software Ltd Homepage
Forum Home Forum Home > WhosOn Live Chat > FAQ's
  New Posts New Posts RSS Feed - Tracking Downloads, Outgoing Clicks etc
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedTracking Downloads, Outgoing Clicks etc - Event Date: 28 Aug 2006 - 28 Aug 2006

 Post Reply Post Reply
Stephen View Drop Down
Admin Group
Admin Group

Joined: 21 Oct 2005
Location: Stoke on Trent
Points: 1454
Direct Link To This Post Calendar Event: Tracking Downloads, Outgoing Clicks etc
    Posted: 28 Aug 2006 at 9:56am
If you are using the WhosOn Gateway to track visitors via the embedded page tags, you can still use WhosOn to track downloads (PDFs, EXEs etc) and outgoing clicks, ad clicks etc. In fact any page event can be tracked.

This is done using a version of the WhosOn Tracking Code, which sends an event back to the WhosOn server without displaying any image.

It can be included on pages along with the normal tracking code.

Download the script here:

Save it to the root of your site. Include it on your page like this:

<script language="javascript" src="/whoson_call.js"></script>

Then simply call it on the 'onclick' event of any page element, for example:

<A href="myfile.exe" onclick="javascript:writeWhosOn('gateway','domain','myfile.exe');">Click To Download</a>

Replace gateway with the IP address[:port] of your Whoson Gateway and domain with the domain name of the site being monitored in WhosOn.

<A href="myfile.exe" onclick="javascript:writeWhosOn('','','myfile.exe');">Click To Download</a>

The last parameter is the filename/pagename or event name that you want to appear in WhosOn when the element is tracked.

Back to Top
Daniel Horton View Drop Down
Admin Group
Admin Group
Technical Support

Joined: 01 Jun 2009
Location: Stoke-on-Trent
Points: 351
Direct Link To This Post Posted: 30 Apr 2010 at 5:07pm
The WhosOn_Call.js has since been updated. You will find it within the C:\Program Files\WhosOnV5\JavaScript folder of the installable edition. 

Here is the new code for hosted customers:

function writeWhosOn(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();
document.cookie="whoson="+sWOSession+";expires=Thu, 31-Dec-2020 00:00:00 GMT;";
} else {
var s=sWOCookie.indexOf("whoson=")+7;
var e=sWOCookie.indexOf(";",s);

Edited by James Horton - 15 Sep 2011 at 4:37pm
Best Regards,

Daniel James Horton

Technical Manager

Parker Software
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.05
Copyright ©2001-2016 Web Wiz Ltd.

This page was generated in 0.082 seconds.