I have to trace page views of each video playing in my
player. I have added following code in my HTML page:
including ga.js
var pageTracker = _gat._getTracker(“UA-1824191-7″);
pageTracker._initData();
pageTracker._trackPageview();
and
code placed in flash is as follows:
pageTracker.trackPageview(“/bharti/cloneplayer/testview.html”);
but when I publish the fla it is showing pageTracker method
not found.
Where is the error in my code in fla file…. plz. hep me
out.
Thanx.|||
You need to use something like ExternalInterface to call the
code on the
page. Like so:
function callUrchin(pageName:String):Void
{
ExternalInterface.call(“urchin_track”, pageName);
}
and then there’d be an urchin_track JS function:
<script src=”
http://www.google-analytics.com/urchin.js”
type=”text/javascript”></script>
<script type=”text/javascript”>
function urchin_track(pname)
{
urchinTracker(pname);
}
</script>
–
Dave -
www.offroadfire.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
Related posts:
- Google Analytics <InvalidTag> CFQuery
- Google analytics revenue measurement
- Google Analytics Addition into Webpage throwing everything off
- Analytics in Exported Flash Player Digital Publication
- Analytics in Exported Flash Player Digital Publication
Related posts brought to you by Yet Another Related Posts Plugin.