Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Tracking embedded video with Google Analytics

4 replies [Last post]

Hi There:

I'm a self-taught web developer about 10 years in the business. We create and maintain Perl-CGI driven content management systems which I designed and a Perl programmer implimented.

I am not a programmer or a Flash developer so my coding ability is limited, however I am normally pretty good and changing variables and parameters and gettings things working.

I mention the above because I have been trying unsuccessfully to impliment Google Analytics tracking for my embedded JW Player (Flash) files. I am simply lost in the developers jargon.

It is imperative that I find a solution as my major clients require to know how many times their key videos are being played and we need to know this through using Google Analytics.

Therefore my request is this: Can someone show me the actual code that I have to write or edit, and where I need to place that code on my web page in relation to the code for my embedded video script (see the video script below)?

I normally wouldn't come right out and ask for the answer to the problem but I have spent hours trying to figure this out, with no success at all.

Thank you to whomever will help me out this one!!!!

Rudy in Ottawa

below is my embedded video code....

<script type='text/javascript' src='http://www.websbyu.com/swfobject.js'></script>
<div id="mediaspace"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
<script type='text/javascript'>
var so = new SWFObject('http://www.websbyu.com/player.swf','mpl','486','282','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://www.websbyu.com/websbyu.flv');
so.addVariable('image','http://www.websbyu.com/preview.jpg');
so.addVariable('stretching','fill');
so.write('mediaspace');
so.addVariable('skin','http://www.websbyu.com/stijl.swf');</script>

The code would be:

<script type='text/javascript' src='http://www.websbyu.com/swfobject.js'></script>
<div id="mediaspace"><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Adobe Flash Player to see this video.</a></div>
<script type='text/javascript'>
var so = new SWFObject('http://www.websbyu.com/player.swf','mpl','486','282','9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','http://www.websbyu.com/websbyu.flv');
so.addVariable('image','http://www.websbyu.com/preview.jpg');
so.addVariable('stretching','fill');
so.addVariable('skin','http://www.websbyu.com/stijl.swf');
so.addVariable('plugins','gapro-1');
so.addVariable('gapro.accountid','YOUR_ACCOUNT_ID_FROM_GOOGLE');
so.write('mediaspace');
</script>

Hi Darjan:

Thank you so VERY VERY much!!!!

Have a great day,
Rudy

Sorry, that last "Thank you" should go to Ethan. (Where the heck did I come up with "Darjan"??? I must be working to hard these days! LOL!)

Rudy

NP :)