This Article talks about the how google gathers information on what people searched for in NYC for 2008 and then creates a list of search queries from it. also it mentions how this information that is gathered by google is then used by other businesses along with the cookies that are captured and IP adresses.
http://www.nytimes.com/2008/12/10/nyregion/10about.html?ref=technology