Tracking Flash pages and events using Google Analytics

by Dipali on December 23, 2008 · 0 comments

in Google Analytics

Google Analytics can be applied to assign a page name to any Flash action. In order for it to work though, you need to have access to the Flash source code.

To track a Flash action, call _trackPageview() with an argument specifying a name for the action. For example, calling:

pageTracker._trackPageview(”/brochure.flpa”);

OR

pageTracker._trackPageview(”/brochureprint.flev”);

It’s a good idea to distinguish between Flash pages and Flash events using .flpa and .flev respectively. This is so that you can apply a filter and not count Flash events within site page views.

This is implemented into the Flash source code with the getURL command as follows:

on (release) {

//Track with action

getURL(”javascript:pageTracker._trackPageview(’/brochure.flpa’);”);

_root.gotoAndPlay(3);

myVar = “Flash Track Test”;

}

In order for Flash tracking to work, the Google Analytics tracking code needs to be placed before the Flash code so that the javascript function _trackPageview is defined first.

More info:

http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55520

you can also look at

Tracking of subdomains with google analytics

Tracking Outgoing links, downloads and rss feeds with google analytics

Leave a Comment

Previous post:

Next post: