You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Flash plugin: Analytics - Customizing Tracked Values Created Feb 19, 2010

This thread is solved

Views: 2129     Replies: 9     Last reply Nov 10, 2011  
You must login first before you can use this feature

lawinfo

Posts: 15

Registered:
Jun 26, 2008

Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 19, 2010

I'm using version 3.1.5 fromhttp://flowplayer.org/plugins/flash/analytics.html. Is there a way to customize the values that are tracked?

Instead of the calls to Google being:
trackEvent( host:http://www.example.com/video.html, start,http://www.example.com/video.flv, 0 )

can the 1st and 3rd values be passed in like:

trackEvent( My Own Category, start, My Video Title, 0 )

Something similar to the way its done onhttp://flowplayer.org/demos/events/google-analytics.html by using some of the 'clip' values.

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 19, 2010

Reply to: Flash plugin: Analytics - Customizing Tracked Values, from lawinfo
The example shown here: http://flowplayer.org/demos/events/google-analytics.html Is the default functioning of google analytics. It will automatically show the name of the file being tracked.

Here's a quick example of it in the clip section.

clip:{
        onStart: function(clip) { 
            _tracker._trackEvent("Videos", "Play", clip.url); 
        },
        onPause: function(clip) { 
            _tracker._trackEvent("Videos", "Pause", clip.url, parseInt(this.getTime())); 
        },
        onStop: function(clip) { 
            _tracker._trackEvent("Videos", "Stop", clip.url, parseInt(this.getTime())); 
        },
        onFinish: function(clip) { 
            _tracker._trackEvent("Videos", "Finish", clip.url); 
        }
},

It's possible to additionally show the title name but it would create a massive number of Event categories in google analytics. If your site gets a lot of traffic and has loads of videos the number of categories would be absurd.

lawinfo

Posts: 15

Registered:
Jun 26, 2008

» » Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 19, 2010

Reply to: » Flash plugin: Analytics - Customizing Tracked Values, from edge
But the clip section require that the 'ga.js' be included. I'm using the flash plug-in so I don't have to use the 'ga.js' script.

The plug-in currently works great except that GA groups the events by the URL that the video is played on, which as you mentioned, creates 100's of categories. That's why I want to dynamically set a specific value, to something like 'Videos', so all events are tracked under the same category.

Additionally, it would be nice to also set the value for the 3rd parameter to be a logical name, human readable title of the video, instead of a cryptic url and filename.


Then, could you change "private function doPlayerTrackEvent()" to use its current values (_embeddedURL, _eventLabel, _player.playlist.getClip(0).completeUrl, _player.status.time) as defaults only if none are specifically passed into it. This would allow for backward compatibility and extend the functionality.

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» » » Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 19, 2010

Reply to: » » Flash plugin: Analytics - Customizing Tracked Values, from lawinfo
Have you tried specifying labels for the config?

    plugins:{ 
        gatracker: { 
            url: "flowplayer.analytics-3.1.5.swf", 
            labels: { 
                start: "Start",     
                play: "Play",     
                pause: "Pause",     
                resume: "Resume",     
                seek: "Seek",     
                stop: "Stop",     
                finish: "Finish"    
            }, 
            debug: true, 
            trackingMode: "AS3", 
            googleId: "UA-5877901-1" // your Google Analytics id here 
        } 
    }

There's more info a bit down the page here: http://flowplayer.org/demos/plugins/flash/analytics.html

According to the docs the label's are meant for just this type of sorting. While it will still show the file name but it would categorize it by labels.

lawinfo

Posts: 15

Registered:
Jun 26, 2008

» » » » Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 19, 2010

Reply to: » » » Flash plugin: Analytics - Customizing Tracked Values, from edge
Yeah, I've tried that. Those values are used for labeling the actual event that happens (Play, Stop, etc.), and not for tagging the media on which the event occurred.

BTW: nice profile picture.

adVid

Posts: 64

Registered:
Jan 10, 2009

» » » » Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 21, 2010

Reply to: » » » Flash plugin: Analytics - Customizing Tracked Values, from edge
Edge, I'm using this plugin since a few days.
I can see visits in GA but that's all, no info about stream and/or events.
Where could I find these ??

Thank you.

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» » » » » Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 21, 2010

Reply to: » » » » Flash plugin: Analytics - Customizing Tracked Values, from adVid
They should be in the Events section of google analytics.

Sign into google analytics.
Go to Content on the left hand side, expand it.
Then look for Event Tracking.

The events should be listed there. If not check the config using firebug to make sure its sending the data ect.

adVid

Posts: 64

Registered:
Jan 10, 2009

» » » » Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 22, 2010

Reply to: » » » Flash plugin: Analytics - Customizing Tracked Values, from edge
Many thanks !

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» Flash plugin: Analytics - Customizing Tracked Values

Posted: Feb 19, 2010

Reply to: Flash plugin: Analytics - Customizing Tracked Values, from lawinfo
Ahh I see, I misunderstood what you're trying to accomplish. Your correct that would require some custom work and a compile. You could add this to the feature request forum here: http://flowplayer.org/forum/6

This would actually be helpful for folks using an automated server side encoding process that generates numbered output file names.