Mobile app version of vmapp.org
Login or Join
Barnes591

: How to use Google Analytics Site Search when the search term is not a query parameter? My site search works as follows: client types query into form and presses submit it GETs the search page

@Barnes591

Posted in: #GoogleAnalytics

My site search works as follows:


client types query into form and presses submit
it GETs the search page /search?q=keyword
that page redirecs the client to /products/keyword, which shows the search results


How can I use Site Search for Google Analytics with my setup?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes591

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

Have you tried using the recommendation for POST-based search? Basically you have the analytics code on the results page "lie" to GA and send a virtual pageview with your /search?q=keyword URL. You're obviously not issuing POST queries, but the underlying problem being addressed isn't really about the request method, just that you have a URL with no query parameter.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme