Piwik: Tracking Search Suggestions

@mflorea,

I’ve added input as a parameter to look for in URLs but I can’t seem to get Matomo to track AJAX requests even though I’m using _paq.push(['enableLinkTracking']);. I’m not convinced it’s detecting the input string as it’s of a different form to the full search URLs ?text parameter.

If I was to use the below function instead, is there a way to pass the query keywords in? What about the number of returned results?

_paq.push(['trackSiteSearch',
    // Search keyword searched for
    "Banana",
    // Search category selected in your search engine. If you do not need this, set to false
    "Organic Food",
    // Number of results on the Search results page. Zero indicates a 'No Result Search Keyword'. Set to false if you don't know
    0
]);

// We recommend not to call trackPageView() on the Site Search Result page
// _paq.push(['trackPageView']);

Thanks,
Ben