You can track any browser based event, including Flash events, on your website. By using the urchinTracker JavaScript function, you can assign a page filename to any Flash action, and enter that filename into the appropriate goal or funnel step.
To track an event, call the urchinTracker() JavaScript function with an argument specifying a name for the event. For example, calling:
javascript:urchinTracker('/purchase_funnel/page1.html');
will cause each occurrence of the the calling Flash event to be logged as though it were a pageview under the name /purchase_funnel/page1.html. The argument must begin with a forward slash.
The event names may be organized into any directory style structure you wish. The path/filename argument to urchinTracker need not represent an actual URL on your website.
Flash Code Examples
on (release) {
// Track with no action
getURL("javascript:urchinTracker('/folder/file.html');");
}
on (release) {
//Track with action
getURL("javascript:urchinTracker('/folder/file.html');");
_root.gotoAndPlay(3);
myVar = "Flash Track Test"
}
onClipEvent (enterFrame) {
getURL("javascript:urchinTracker('/folder/file.html');");
}