Using Google Analytics, you can track what keywords people search for in your marketplace. This can be useful to learn more about your users' behavior and see if there is a demand for something that your marketplace doesn't offer.
Be aware that Google Analytics requires cookies and, in general, is seen as a service that is not privacy friendly. Some countries have clearly signaled that Google Analytics is problematic and you could consider using an alternative service such as Plausible or Matomo, which can be added with Custom script.
Before you proceed, ensure that you have created a Google Universal Analytics account and set it up for your marketplace.
Keep in mind that, in the Admin panel, there are also search fields (for example, to search for users, transactions, ...). They use the same query parameter: q
. To filter out your queries done within the Admin panel, you should use the Google Analytics filters or create a segment in Google Analytics that excludes pages within the URL.
How to track search terms using Google Analytics 4
Log in to Google Analytics at https://www.google.com/analytics/web/.
Open the account that you created for your marketplace.
From the bottom left, select "Admin".
Click on "Data Streams" and open the data stream you want to configure.
Make sure that "Enhanced Measurements" is enabled then click on the gear icon to access the additional settings.
Make sure that "Site Search" is enabled.
Click on "Show advanced settings" under "Site Search".
In the "Search Term Query Parameter" field, add "
q
" (just the letter). If you use the Location Search feature, you can also track them by adding a second query parameter "lq
" (you should add a ",
" between the two parameters, like "q,lq
").Save your settings.
It might take up to 24 hours before Google Analytics shows any results. You can find the search results in the "Reports > Engagement > Events > view_search_results" report.
How to track search terms using Google Universal Analytics
Log in to Google Analytics at https://www.google.com/analytics/web/.
Open the account that you created for your marketplace.
From the bottom left, select "Admin".
In the "View" column (the third one, on the right), select the view where your want to track searches (you may have only one view).
Select "View Settings" in that column.
In the "Site Search Settings" part, switch "Site search Tracking" to "On".
In the "Query parameter" field, add "
q
" (just the letter). If you use the Location Search feature, you can also track them by adding a second query parameter "lq
" (you should add a ",
" between the two parameters, like "q,lq
").Check the "Strip query parameters out of URL" checkbox.
If you are using categories in your marketplace, you can also enable "Site search categories" and add
category
in the "Category parameter" field. You can also strip the query parameter.Save your settings.
It might take up to 24 hours before Google Analytics shows any results. You can find the search results in the "Behavior > Site Search > Overview" report. You can learn more details about that setup on Google Help pages.