by axod · 17y ago · 0 comments
In any event, the only way I can think to do this with an ajax search is to pass every outgoing link click through a redirection script, so that the referrer is rewritten to something useful.
However, whilst improving things for webmasters, that would seriously negate the point of using ajax, and be a pain for end users.
Google are serving their end users. I don't think trust comes into it TBH.
What would you rather google do? not progress and use ajax search, or use a redirection and make a worse experience for end users?
Could this be a subtle move to require people use google Analytics instead of their own log file analysis?
The redirect script has been tehre for as long as I remember. It's probably tied in with Google Analytics.
Whenever the ajax search is performed an invisible iframe is loaded at: http://google.com/search?q=search+term&donothing=true.
The donothing=true tells Google's webserver to perform no actual query and return a blank page. This should happen extremely quickly. (It could be performed after the ajax results have been fully loaded as to not affect response time)
Then when a user clicks a search result, Google does a javascript redirect from the iframe (use javascript to add a new <script> tag with a window.top.location= in it) and you get a referer just like you would before... with a negligible performance hit.