Search engines are defined in the file core/DataFiles/SearchEngines.php

Each search engine is defined by a new line with the following format:

"" => array( "Search engine name", "keyword parameter", [optional path containing the keyword], [optional charset used by the search engine])

For example, for Yahoo!

""      => array("Yahoo!", "p", "search?p={k}"),

The macro {k} will be automatically replaced by the keyword to link to the search engine page for the keywords found in your Piwik reports. The main search engine URL has to be at the top of the list for the given search Engine.
Note that some search engines can have several variable names to define the keyword, you can specify an array of names. For example, for the search engine, the keyword can be found in “wd”, “word”, or “kw”, and the keywords are encoded in the charset “gb2312″. The line for looks like:

""         => array("Baidu", array("wd","word","kw"), "s?wd={k}", "gb2312"),

(Piwik uses an icon for each search engine icon, placed in the directory plugins/Referers/images/)

To add a new search engine in your Piwik server, you can use the ReferrerManager plugin which lets you manage Search Engines and Social networks.

If you wish to submit a new search engine to Piwik (and have it included in the next release), please click here to open a Pull request.

Any questions?

Many answers and more information about Piwik You can find here:

We are social

Follow us: