Tracking Flash in Google Analytics

Tracking Flash events and actions occurring within these assets is relatively easy with Google Analytics.  Basically, there are two ways that this can be achieved.

  1. Take advantage of an open source collaboration between Adobe and Google Analytics where more insight and tracking functionality can be gained.  This method is the more challenging of the two and can be reviewed at the Flash Tracking for GA link.
  2. An easier method is to use the _trackPageView variable.  This variable allows you to track events or actions on your site that do not generate a page view.  This is especially handy with Flash and Javascript calls since neither cause the page to refresh (triggering the page code to fire again).
    Within the _trackpageview variable, you can take a flash action and assign a unique page name to it.  This can be achieved by the below code:
    pageTracker._trackPageview(“/plugins/test.html”);
    * Please remember that your code and calls to _gat._getTracker must be placed on the page above the call to _trackPageview.
    By doing this, this will cause Google Analytics to capture each event as though it were a page view under the predetermined name listed above.  You should adjust this to follow a nomeclature that’s easy for your business users to work with.

    Within the _trackpageview variable, you can take a flash action and assign a unique page name to it.  This can be achieved by the below code:pageTracker._trackPageview(“/plugins/test.html”);* Please remember that your code and calls to _gat._getTracker must be placed on the page above the call to _trackPageview.By doing this, this will cause Google Analytics to capture each event as though it were a page view under the predetermined name listed above.  You should adjust this to follow a nomeclature that’s easy for your business users to work with.



Written by:

Google, Google Analytics, Web Analytics

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Leave Comment

(required)

(required)