WhosOn Help

Tracking Downloads, Outgoing Clicks and Other Custom Events

Hide Navigation Pane

Tracking Downloads, Outgoing Clicks and Other Custom Events

Previous topic Next topic  

Tracking Downloads, Outgoing Clicks and Other Custom Events

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

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. 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 any of your pages along with the normal tracking code.

 

The script is located in the folder C:\Program Files\WhosOnV6\JavaScript\whoson_call.js

 

or downloaded from:

http://www.whoson.com/scripts/whoson_call.js

 

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.

 

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

 

For additional samples of tracking page events see:

http://www.whoson.com/test.htm

 

 


Click here to submit a support ticket.
www.WhosOn.com