Hi there,
My company bought flowplayer, and I must say it is great to use, but I am currently struggling with Google Analytics to work. I have already implemented most of the code (with googleAnalyticsPrefix : 'flowplayer').
I saw that the urchinTracker is depreciated and google suggest that you use the newer script
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
var pageTracker = _gat._getTracker("UA-xxxxx-x"); <-- My code is here
pageTracker._setLocalRemoteServerMode();
pageTracker._initData();
pageTracker._trackPageview();
How would I get the flowplayer to work with these settings? I would appreciate a prompt response from anyone, it is rather urgent.
Kind Regards,
Frosty
Dirty fix ...
If you have the player srouce/skinning kit, you can make the following change in src\actionscript\org\flowplayerFlowPlayerExternalInterface.as around line 234.
Change ...
getURL("javascript:urchingTracker('/" + config.getGoogleAnalyticsPrefix() + "/" + eventName + "/" + clip.getFilename() + "')");
to ...
getURL("javascript:pageTracker._trackPageview('/" + config.getGoogleAnalyticsPrefix() + "/" + eventName + "/" + clip.getFilename() + "')");
Save, rebuild, redeploy. This should work with the new ga.js file.
Hope it works for you.
-xppadmin