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.

How do I track Flash events?

How do I track Flash events?

Urchin lets you 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 that Flash event to be logged as though it were a pageview of /homepage/flashbuttons/button1. The argument must begin with a forward slash. The event names may be organized into any directory style structure you wish, and actual pages with these filenames need not exist.

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');");
    }
Search
Clear search
Close search
Main menu
272186611475735973
true
Search Help Center
true
true
true
false
false