@tbleher opened this Issue on April 15th 2008

Some search engines have several interfaces for querying, with different search parameters. E.g. www.google.de has ?q= for normal queries and ?as_q= for advanced/special queries. Currently modules/DataFiles/SearchEngines.php does not allow specifying something like this.

Suggestion: Change the data structure so it is an array of query options.
"www.google.de" => array("Google", "q"),
could be changed to
"www.google.de" => array("Google", array("q", "as_q")),

@mattab commented on May 6th 2008 Member

Please give a URL example for several search engines, so we can justify such a change.

@tbleher commented on May 6th 2008
@mattab commented on May 29th 2008 Member

What is the behaviour for Yahoo! and Live?

Have you had a look at the code for this (see function detectRefererSearchEngine() in [source:/trunk/modules/LogStats/Visit.php@head#L653])

@robocoder commented on December 28th 2008 Contributor

m.live.com (searching from my mobile device) uses "q" (web) or "Q" (images, news, maps, etc).

www.altavista.com (advanced search) uses "aqa" (all these words), "aqp" (exact phrase), "ago" (any of these words), and "aqn" (none of these words).

There's an old list of search engine query strings (http://www.science.co.il/analog/SearchQuery.txt) that gives other examples.

As an alternative, if the lookup fails, we can try parsing the query. Having this as a fallback, piwik could theoretically handle unknown search engines. For an idea see: http://blog.netnerds.net/2007/02/mssql-parse-search-engine-querystrings-for-search-terms/

@mattab commented on May 18th 2009 Member

this was implemented recently and is available as of 0.2.35

please check out the FAQ for information with detecting search engines

This Issue was closed on August 14th 2009
Powered by GitHub Issue Mirror