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

If you enjoyed this post, I would be very grateful if you leave a quick comment below or subscribe via email or RSS or follow me on Twitter. Don't miss out on Web Analytics tips! - Dipali Thakkar

Related posts:

  1. Tracking outgoing links, downloads and RSS feed subscriptions with Google Analytics
  2. Tracking 404 error pages using Google Analytics
  3. Tracking Subdomains with Google Analytics
  4. Google analytics tracks Adob flash contnet
  5. How to track google sites with analytics?

Leave a Comment

Previous post:

Next post:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes