What is Event Tracking ?
Web-Stat measures the traffic on every single page of your site as long as the page contains the Web-Stat code. This works great most of the time but there are a few limitations :
How does it work ?
In all the cases above we are trying to detect the loading of a non-HTML document, or the loading of an HTML document outside of our control. This loading is triggered by a simple event : the visitor clicking on a link in order to access the document. 'Event Tracking' is the ability to record that click, as opposed to the default behavior of Web-Stat which detects page loads. So basically we are now detecting clicks towards a target file as opposed to the actual loading of that file.
So, to give an example : if your visitor sees a link on your site that says 'Listen to My Music' and clicks on that link, Web-Stat will detect the click and show a 'page view' for the music file.
Configure Event Tracking
The configuration is quite simple. Let's take an example and assume that you want to record the loading of an MP3 music file. Right now your HTML link to that MP3 file looks like this :
<a href="/my_music.mp3">Listen to My Music</a>
To enable Event Tracking for that link, simply modify it like this :
<a href="/my_music.mp3"
onClick="javascript:wtslog('al####','#','http','my_music','event_track');">
Listen to My Music</a>
For a Flash site the syntax is a bit different but it works the same way :
on (release) {
loadMovieNum("flash_file.swf", 1);
unloadMovieNum(2);
getURL("javascript:wtslog('al####','#','http','flash_file','event_track');");
}
As you can see, all you need to do is add the 'OnClick' element in red inside the link that you want to track (or the 'getURL' element for a Flash site) and Web-Stat will take care of the rest. Note that there are two caveats for this to work :
[ original Web-Stat | version Française | revenue sharing | contact us | site map ]
Web-Stat by Web Tracking Services, LLC - 1670 Springdale Plaza - Unit 9, Suite 270 - Camden, SC 29020 - USA