We are trying to track usage of a library search application with Piwik. In the search interface users are able to combine multiple criteria in one search.
E.g. title = history AND author = Miller AND year = 1980 => 2234 hits
At the moment the only way I found to send this to Piwik is by issuing 3 Searches like
[quote=matt]
Not sure what you are really asking for, can you elaborate?[/quote]
Hi Matt,
my goal is to track a complex query like
"title = history AND author = Miller AND year = 1980 => 2234 hits"
in Piwik as a single search request. The current problem for me is that
allows only one single query in one category, but I need to record a query of three or more criteria. There is also the possibility to refine the query later using facets on the hitlist page, so a user could easily set many more criteria than that.
One can in the results of a reportlet use regex symbols to filter(perform AND OR) groups of results. I am still unsure if that is where you are performing the queries or via a api request.
[quote=lesjokolat]
One can in the results of a reportlet use regex symbols to filter(perform AND OR) groups of results. I am still unsure if that is where you are performing the queries or via a api request.[/quote]
Thanks for your hint, I will have a look at the reportlets. Perhaps it is possible to submit the whole complex query as a single request and analyze it in Piwik instead of trying to do that in JavaScript.
Did you found an answer or a way to track multiple criteria searches ?
I think i have the same issue.
I have a backoffice which provide search over multiple criteria to users. In fact they can search travels providing min or max departure date, the country, the city and some other criteria.
I’m searching a way to track the number of times the search function is used and the number of criteria used per search, plus a percent of usage per criteria.
So i have the same problem as akbsb, i don’t want to track one search per criteria because it will corrupt my total number of search.
Is there any way to do that efficiently ? Or is it really NOT a piwik feature ?
For now we unfortunately have no solution for that in Piwik. Currently we store our application’s internal query representation containing the fields as query string in the database. The plan is to analyze this by a custom plugin - but this does not exist at the moment and we are not developing one currently.