Google Analytics swf missing?

4 replies [Last post]
Joined: 10/13/2010
Points: 65

I'm using the following code in my player to track via Google Analytics (well that's what I want to do anyway)

googleAnalytics.plugin=true&googleAnalytics.urchinCode=UA-yourgoogleanalyticscode&googleAnalytics.debugMode=false&googleAnalytics.path=http://cdnexchange.kaltura.com/sites/exchange.kaltura.com/files/applications/releases/Kalturian/16/googleAnalytics.swf&googleAnalytics.relativeTo=PlayerHolder&googleAnalytics.position=lastChild

I've replaced the google analytics code with mine, however, when I load the player, via firebug I can see that the swf can't be found.

So I popped http://cdnexchange.kaltura.com/sites/exchange.kaltura.com/files/applicat... into a browser and sure enough, it isn't there?

Can anyone help?

Joined: 07/19/2009
Points: 333

Did you follow the instruction from this link?
http://knowledge.kaltura.com/google-analytics-kaltura-player

Joined: 12/06/2012
Points: 13

Hi Ofer,
I too am having trouble with the GoogleAnalytics plugin. I've reviewed the page that you mention (http://knowledge.kaltura.com/google-analytics-kaltura-player) and have also been to this page: http://html5video.org/kaltura-player/docs/Analytics/GoogleAnalytics

The trouble I'm having is perhaps a conceptual one. My concept of player plugins is from the perspective of Brightcove, where within the player admin you add the URL of the SWF you would like to add as a plugin. I'm missing how this works in Kaltura. I would expect one of the following from the Kaltura GA plugin...
(1) an SWF to download, host and reference in the plugins tab of the player,
(2) a Javascript file to download and somehow associate to the player that you want to track.

Are either of those the approaches you take? If so, where can I find the proper file for #1 or #2?

Thanks!

Joined: 01/05/2009
Points: 1697

@Mleo - The same concept apply in Kaltura as well, only here you have even more flexibility.

The following document describes things how you might be used to from Brightcove -
http://knowledge.kaltura.com/faq/how-use-kaltura-player-studios-addition...
The following document describes how to write plugins, and the first section describes how to use them in Kaltura -
http://knowledge.kaltura.com/faq/how-create-kdp-plugins

Take a note to the implementation section: http://knowledge.kaltura.com/google-analytics-kaltura-player#implementat...
This shows you how to implement the plugin directly on the uiConf XML (which is the XML language that defines player design/layout/behavior in Kaltura).
Taking that plugin XML line, you can easily translate it to uiVars as follow.
Original XML:

<Plugin id="googleAnalytics" visualDebug="false” path="googleAnalyticsPlugin.swf" width="0%" height="0%" loadingPolicy="wait" urchinCode="UA-XXXXXXX-1"/>

Converted to uiVars (replace the bolded parts with yours):
googleAnalytics.plugin=true&googleAnalytics.visualDebug&googleAnalytics.path=googleAnalyticsPlugin.swf&googleAnalytics.width=0%&googleAnalytics.height=0%&googleAnalytics.loadingPolicy=wait&googleAnalytics.urchinCode=UA-XXXXXXX-1
You copt the uiVars, and paste them into the "Paste your plug-in line" field, and press Go (KMC>Studio>Edit a player>Features>Additional Parameters & Plugins).

The compiled SWF -
As mentioned in the "Technical Details" section (http://knowledge.kaltura.com/google-analytics-kaltura-player#technical-d...) - you can download the SWF from Kaltura.com address, or if you have your own Kaltura server, you should find the compiled swf under yourserver/content/uiconf/google_analytics/kdp3.5.43/plugins/googleAnalyticsPlugin2.swf

Note that you can replace kdp3.5.43 with the version of KDP you are using.
For example, the latest as of today version of the plugin will be under kdp3.7.
The link to the CE-Binaries repository: https://github.com/kaltura/ce-binaries/tree/master/kdp3/v3.7/plugins
The link to the KDP Plugin Source: https://github.com/kaltura/kdp/tree/master/plugins/googleAnalyticsPlugin

Joined: 12/06/2012
Points: 13

Thanks, Zohar. This is fantastic.