First, thanks to Glen, who answered.

When this started, all I knew was that I had two getURL()s in quick
succession. Two weeks ago when I first tested this process it worked in both
FireFox and IE. Tuesday, when I had to deliver a finished product, it didn't
work in IE.

My original test was almost identical to Glen's code (below). As I say, it
worked fine.

Yesterday morning, after my boss asked what was wrong now and I told him, he
googled "geturl issues in ie" and turned up this:
http://www.rabidgadfly.com/?p=28

which explained everything and included this:
getURL("javascript:location.href='http://www.google.com';javascript:doSometh
ingElse();");

which saved the day.

Rabidgadfly also refers to a 'getURLqueue'
(http://www.adobe.com/devnet/flex/articles/analytic_app_print.html) by Sean
Rooney. Since it appears to be a Flex routine, or at least relies on AS3,
and we don't have that here, I haven't even read the article (can't follow
the code). But for those who are there, it may well prove useful.

- Paul Freedman

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
Sent: Wednesday, September 05, 2007 6:39 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] tracking & travelling

Hi,

    I have setup Google Analytics with hardcoded goals and I use a 
function like below (some of the stuff in the function just strips out 
parts of the URL so we just have the name of the site visited - this 
works fine and is recorded in our GA account.

    The only thing here is that most of the URL's all open in a new 
window.  I have not done this with "_self".

    function getURLTracked(url:String, window:String) {
        getURL(url, window);
       
        var idx = url.indexOf("://");
        if(-1 != idx) {
            url = url.substring(idx + 3);
        }
        idx = url.indexOf("www.");
        if(-1 != idx) {
            url = url.substring(4);
        }
       
        idx = url.indexOf("./");
        if(-1 != idx) {
            url = url.substring(idx + 2);
        }
       
        //getURL("javascript:alert('/sas/urls/" + url +"');");
        getURL("javascript:urchinTracker('/sas/urls/" + url +"');");
    }

    Which I call with...

    getURLTracked("http://www.ripcurl.com/";, "_blank");

    HTH.

    Glen

Paul Freedman wrote:
> The landing-page of our website is comprised of, say, 15 swfs inside one
big
> swf. We need to track the hits on each of the 'sub' swfs and then navigate
> wherever they go.
>
> I am a simple soul with simple needs and desires. All I really wanted to
do
> was:
> public function trakNgo(tag,theUrl){
>      // tag=tracking data      theUrl=a url
>      getURL("javascript:trackLink('"+tag+"');");
>      getURL(theUrl);
> }
>
> But the second getURL bumped the first. The user navigated, but the client
> didn't get his tracking.
>
> All the data, tracking and navigation, is fed into the swfs via xml. The
> same xml contains content ids, paths, etc. It's all very dynamic and can't
> be hard-coded. 
>
> I've just spent four days on this. The last six hours I've been trying to
> use ExternalInterface, with no success. My boss is cranky and I'm half
mad.
> Surely, someone has faced this problem before. How do you track something
> and navigate somewhere at (almost) the same time? 
>
> Any help will be greatly appreciated.
>
> - Paul
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>   
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to