Tracking playback events with Google Analytics Flash plugins - Demo 8 / 14
Introduction
This demo shows the Analytics plugin that tracks video playback related events to Google Analytics. The plugin is configured in debug mode so that it shows all the events that gets triggered and sent to Google.
JavaScript coding
The plugin is here configured to show all the available configuration options. Normally you only need to supply the accountId to get started with this plugin.
$f("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.7.swf", {
plugins:{
gatracker: {
url: "flowplayer.analytics-3.2.2.swf",
labels: {
start: "Start",
play: "Play",
pause: "Pause",
resume: "Resume",
seek: "Seek",
stop: "Stop",
finish: "Finish",
mute: "Mute",
unmute: "Unmute",
fullscreen: "Full Screen",
fullscreenexit: "Full Screen Exit"
},
debug: true,
trackingMode: "AS3",
accountId: "UA-5877901-1" // your Google Analytics id here
}
}
});
Take a look at a standalone version of this demo. View its source code to get things going on your page.