Notification

Urchin WebAnalytics Software is discontinued and is no longer supported. All Urchin documentation applies only to the Urchin product as it was at the time of discontinuation, and does not apply to any Google Analytics products or services.

Tracking Flash and Browser Events

You can track any browser based event, including Flash and Javascript events. To track an event, call the urchinTracker JavaScript function with an argument specifying a name for the event. For example, calling:

javascript:urchinTracker('/homepage/flashbuttons/button1');

will cause each occurrence of the the calling Flash event to be logged as though it were a pageview under the name /homepage/flashbuttons/button1. The argument must begin with a forward slash. The event names may be organized into any directory style structure you wish.

For example, if you wish to organize flash events by page, by type of event, you might organize a hierarchy along these lines:

  • '/homepage/flashbuttons/button1'
  • '/homepage/clips/clip1'

Flash Code Examples


on (release) {

      // Track with no action

      getURL("javascript:urchinTracker('/folder/file');");

}

on (release) {

      //Track with action

      getURL("javascript:urchinTracker('/folder/file');");

      _root.gotoAndPlay(3);

      myVar = "Flash Track Test"

}

 

onClipEvent (enterFrame) {

      getURL("javascript:urchinTracker('/folder/file');");

}

HTML Code Examples

The following illustrates how to log an onClick event:


<a href="?javascript:void(0);?"
onClick=?"javascript:urchinTracker('/folder/file');">

The following illustrates how to log a rollover event:

<a href=?"javascript:void(0);?"
onMouseOver="?javascript:urchinTracker
('/folder/file');">

 

Search
Clear search
Close search
Main menu
17636698446111934527
true
Search Help Center
true
true
true
false
false