Clear search
Close search
Google apps
Main menu

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:


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



on (release) {

      //Track with action



      myVar = "Flash Track Test"



onClipEvent (enterFrame) {



HTML Code Examples

The following illustrates how to log an onClick event:

<a href="?javascript:void(0);?"

The following illustrates how to log a rollover event:

<a href=?"javascript:void(0);?"