1. Home
  2. FAQ – Frequently Asked Questions
  3. GA4 & GTM Setup
  4. Advanced Setup: Internal Search Query Parameters

Advanced Setup: Internal Search Query Parameters

For the most of websites you do not have to change anything.

The default setup covers typical internal search query parameters.

The default value is
q|s|search|query|keyword
(Note “|" means "OR").

If your website uses internal search and the search query is visible in the URL,

you can set up the query parameter in GTM “RegExp Search Query Parameters” variable.

You will find the Variable in the “WAS – Setup” folder.

E.g.: if you searched for “umbrella” and see the URL www.yourwebsite.com/search?what=umbrella

you should set “what” as the value of this variable.

Note: In regular expressions the character “|” works as “OR“.