[Yanel-dev] Google analytics exit link onclick problem

Michael Wechner michael.wechner at wyona.com
Fri Apr 23 14:56:07 CEST 2010


Hi

I have refactored the Google analytics code slightly and have noticed 
that it currently does not allow re onlick() to differentiate
between external and internal links starting with http or https, e.g. 
let's assume we have have a page

http://localhost:8080/yanel/foo/bar.html

which contains the following links

http://localhost:8080/yanel/foo/bob.html
http://www.nyt.com/yanel/foo/bob.html

then both links will be sent to Google analytics as

/yanel/foo/bob.html

because the method/function Yanel_requestURIFromFQURL within

src/webapp/htdocs/Google-Analytics/GA.xslt

is cuttinng off the protocol and the hostname, because AFAIK Google does not
allow protocol and hostname to be sent.

Any idea how to improve this, because it would actually be nice to 
analyze exit links?

(in particular re goals/funnels: 
http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55515)

Thanks

Michi




More information about the Yanel-development mailing list