"By default, Piwik can read URL parameters that will contain the search keyword.
However, you can also record the site search keyword manually using the Javascript function trackSiteSearch(...)"
http://developer.piwik.org/guides/tracking-javascript-guide#internal-search-tracking