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:

  1. Google Analytics <InvalidTag> CFQuery
  2. Google analytics revenue measurement
  3. Google Analytics Addition into Webpage throwing everything off
  4. Analytics in Exported Flash Player Digital Publication
  5. Analytics in Exported Flash Player Digital Publication

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD