Passing query string by get

I think it would be great to pass query string by get instead by post, so it can be tracked by Google Analytics.

search/search?simpleQuery=xxx

More info: Set up Site Search - Analytics Help

1 Like

Hi @alonsoj,

I may be reading this wrong, but I think this only applies when using the Google Site Search feature; our software uses its own internal search engine instead.

Regards,
Alec Smecher
Public Knowledge Project Team

The internal search should be a GET request instead of a POST. This fits the convention of idempotent/non-idempotent requests and also allows the search querystring to be harvested by Google Analytics.

It tracks internal search.

More info here: http://searchenginewatch.com/sew/how-to/2346116/how-to-use-google-analytics-site-search-reports and here http://www.kaushik.net/avinash/kick-butt-with-internal-site-search-analytics/

You can view what visitors are looking for and from which page.

Hi @alonsoj,

What application are you asking about, and what version?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi:

It’s for OJS 2.4.6

Hi @alonsoj,

I’ve made this change: Make search queries use GET parameters · Issue #540 · pkp/pkp-lib · GitHub

You can apply the patch linked there (or make the changes manually; they’re quick).

Regards,
Alec Smecher
Public Knowledge Project Team