: 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
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?
More posts by @Barnes591
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.