Custom Search Query

Hey,

How do I change the search query, for instance I want this

/search-swiftype/#stq=trivia&stp=1

to look like this

/search-swiftype/?searchterm=test

Google Analytics currently tracks our search query based on ?searchterm=, I don’t know if it works with a hashtag.

Thanks.