Glen,

Somebody on my team had the same problem with AS3, Google Analytics,
and IE7. He used the global sendToURL function instead. According to
him, neither navigateToURL nor ExternalInterface worked for him.

On 2/29/08, Glen Pike <[EMAIL PROTECTED]> wrote:
> Hi,
>
>     I am using AS3, so this is not an option, but thanks.
>
>
>     Glen
>
>
>  Karim Beyrouti wrote:
>  > I know this is not what you are asking for, but I use a getURL command to
>  > call the tracking script: getURL("javascript:pageTracker._trackPageview('" 
> +
>  > str + "');");
>  >
>  > I have built two classes for google analytics 1 for the urchin tracking, 
> and
>  > another for the gaTracker, Here are the links to the classes:
>  >
>  > http://underground-bunker.com/transfer/gaTracker.as
>  > http://underground-bunker.com/transfer/urchinTracker.as
>  >
>  > maybe they will be usefull to someone.
>  >
>  >
>  > - karim
>  >
>  > -----Original Message-----
>  > From: [EMAIL PROTECTED]
>  > [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
>  > Sent: 29 February 2008 13:57
>  > To: Flash Coders List
>  > Subject: Re: [Flashcoders] External Interface + Google Analytics + IE7
>  >
>  > Hi,
>  >
>  >     Does anyone have any ideas about this?
>  >
>  >     Glen
>  >
>  > Glen Pike wrote:
>  >
>  >> Hi,
>  >>
>  >>    I have encountered a problem with an ExternalInterface.call causing
>  >> IE7 to throw a JS error.
>  >>
>  >>    I get an error message saying:
>  >>    Line: 1
>  >>    Char 14:
>  >>    Error: Expected ';'
>  >>    Code: 0;
>  >>    URL: http://www.dijitl.co.uk/beta/
>  >>      So, my guessing is that somewhere the ExternalInterface call is
>  >> not adding a semi-colon, but that IE 7 maybe getting it's knickers in
>  >> a twist.  Either way, it's annoying and my tracking is not working.
>  >> Can anyone shed light on this - I am using
>  >> so.addParam("allowScriptAccess", "always"); with SWFObject too.
>  >>      Ta
>  >>
>  >>    Glen
>  >>
>  >>    AS code is like this:
>  >>              var page:String = evt.type.substr(5);
>  >>                      if (ExternalInterface.available) {
>  >>                ExternalInterface.call ("trackTesting", page);
>  >>            }
>  >>
>  >>    Have also tried calling the pageTracker object directly -
>  >> ExternalInterface.call("pageTracker._trackPageview", page); - but no joy.
>  >>
>  >>    JS Code is like this:
>  >>
>  >>        <script type="text/javascript">
>  >>        // <![CDATA[
>  >>        var pageTracker = _gat._getTracker("UA-DELETED");
>  >>        pageTracker._initData();
>  >>        pageTracker._trackPageview();
>  >>              function trackTesting(page) {
>  >>            alert("before " + page);
>  >>            pageTracker._trackPageview(page);
>  >>            alert("after");
>  >>        }
>  >>              // ]]>
>  >>    </script>
>  >>
>  >
>  >
>
>  --
>
>  Glen Pike
>  01736 759321
>  www.glenpike.co.uk <http://www.glenpike.co.uk>
>  _______________________________________________
>  Flashcoders mailing list
>  Flashcoders@chattyfig.figleaf.com
>  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to