I was trying to make it an easy call to the function from anywhere in
the site. Thats why I created the function. I was hoping to just keep
from having to write both lines all over the site.

On Jan 16, 2008 2:17 PM, Jim Robson <[EMAIL PROTECTED]> wrote:
> Corban,
>
> This may just be a typo in your email, but there was a space between the
> underscore and "trackPageview". More to the point, did you try this syntax:
>
>
> ExternalInterface.call("pageTracker._trackPageview", page);
>
> See:
> Programming ActionScript 3.0 / Flash Player APIs / Using the external API /
> Using the ExternalInterface class
>
> -Jim
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Corban
> Baxter
> Sent: Wednesday, January 16, 2008 3:00 PM
> To: Flash Coders List
> Subject: [Flashcoders] Google Analytics ga.js Update
>
>
> Hey guys I was working on updating my script for the new Google
> Analytics ga.js code. Can some one tell me what I might be missing in
> my code?
>
> My actionscript:
>
>
> function tracking(page) {
>         import flash.external.ExternalInterface;
>         ExternalInterface.call("pageTracker._ trackPageview('" + page +
> "');");
> }
>
> tracking("/flash/home");
>
> Google's Javascript:
>
> <script type="text/javascript">
> 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"));
> </script>
> <script type="text/javascript">
> var pageTracker = _gat._getTracker("UA-2876431-9");
> pageTracker._initData();
> pageTracker._trackPageview();
> </script>
>
> Thanks in advance!
>
> --
> -cb
> http://blog.projectx4.com
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
>
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Corban Baxter
http://www.projectx4.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to