Omniture Media Tracking in Flash with ActionScript 3

Omniture made media tracking easy with their creation of ActionSource.  You no longer have to make external javascript calls for when the video starts, pauses, plays, ends, etc.  The ActionSource object handles it all.  ActionSource is pretty easy to learn and implement but I do feel Omniture in general and the way they handle their reporting is quite ambiguous.  I'm lucky I just have to do the implementation and not the naming strategy for the tracking.  I am told what props, eVars, events, etc to implement and can easily fire them correctly because of ActionSource.

First you will have to setup your ActionScource object as usual.  Then you can track your videos by using the below function calls. 

When the video get initialized you need to call the media open function.

// mediaName :: Name of video
// mediaLength :: Duration of video
// mediaPlayName :: Name of video player
s.Media.open(mediaName, mediaLength, mediaPlayerName);
When the video play listener is called you need to call the media play function.

s.Media.play(mediaName, mediaOffset);
When a user pauses the video or it stops you need to call the media stop function.
s.Media.stop(mediaName, mediaOffset);
When the video is finished you need to call the media close function.
s.Media.close(mediaName);
The tracking call to Omniture doesn't get fired until the close() function gets called.

Omniture Media Tracking Reports


  • How many people watched a video
  • How long a user stayed on a video
  • What sections of the video a user watched
  • When the user exited the video
  • Videos By Player
  • If you have Omniture tracking throughout your site, you can also know the user flow before and after the video

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments

Leave a comment

Submitted comments are subject to moderation before being displayed.

 Enter the above security code (required)

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.