Search code examples
google-analyticsgoogle-tag-manager

Query parameter not accepted by Google Analytics because it includes dash(-)


I googled a lot but could not find a solution yet.

Here is how my in-site search url looks like: https://www.magidostur.com/search-tours/?tour-search=mysearchterm&tax-tour-destinations=&month=

tour-search is my query parameter, and mysearchterm is my search term, obviously.

Here as you can see when i try to add my search term on advanced settings, analytics does not accept my parameter and it says "please only separate parameters with comma."

What should i do?

Thank you.

check screenshot


Solution

  • You can send the 'view_search_resutls' event manually, if you are using GTM. Just disable enhanced measurement for site search and implement the event via GTM.