[Yanel-dev] Google analytics exit link onclick problem

Michael Wechner michael.wechner at wyona.com
Fri Apr 23 23:59:13 CEST 2010


Bruno von Rotz wrote:
> couldn't we alter the suffix?
> We could have html_e or htmle to highlight external links. The problem 
> though is that you still wouldn't know where it went.

I think we should introduce a "reserved prefix" and map an URL like for 
example

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

to

/EXIT_www.nyt.com/yanel/foo/bob.html

which is similar as described here

http://groups.google.com/group/analytics-help-tracking/browse_thread/thread/f44df0d094752c28
http://seogadget.co.uk/how-to-count-your-outbound-click-stats-with-onclick-in-google-analytics/

WDYT?

Thanks

Michi
> Bruno
>
> Michael Wechner schrieb:
>> 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