Measuring internal search in GA4: the search event
Contents
Internal search is measured with the search event and its search_term parameter, which records what the person typed. It shows what visitors look for, which words get no answer and how those searches relate to the products they choose afterwards.
This article is part of the GA4 ecommerce guide. It is written for the people who decide what is measured; the technical detail appears under "For the technical team". CookingMetrics offers audits and support and does not sell tools. The Google pages consulted on November 16, 2026 show no update date.
In summary
- The
searchevent appears in the GA4 events reference under "all properties", not among the ecommerce events. - Its only parameter in the table is
search_term, which is required. - Internal search shows what is missing from the site: products that are requested and do not exist, different names for the same thing.
- We did not find a
view_search_resultsevent in the pages consulted; we do not claim it exists. - Results can be measured like any other list, with
view_item_list. - Search terms may contain personal data: you need to decide what is sent.
What problem it solves
People who use internal search already know what they want and say it in their own words. Those words reveal catalog gaps, names the site does not recognize and poorly labeled categories. Without measurement, that information is lost.
What data the event carries
According to the official GA4 reference, search carries one parameter, search_term, which is required and contains the term searched; the example on the page is "t-shirts". Google's ecommerce guide does not cover this event.
Questions that can be answered
- Which terms are searched most, and which are rising or falling?
- Which terms are typed differently but look for the same thing (singular and plural, typos, synonyms)?
- How many searches end with no product chosen afterwards? To find out, you need to join
searchwith the list and product page events from the guide.
A search with no results is not an event that Google defines in the pages consulted; if you want to measure it, it requires a custom event or parameter, which must be agreed with the team and which we put forward as a measurement hypothesis, not as a standard.
Measuring the results
Once the results are displayed, they can be treated as a list: view_item_list with a list name that indicates it comes from internal search, and select_item when a product is chosen. The list name is a judgment call on our part; what matters is that it is always the same. See Measuring product lists.
For the technical team: example of the event.
window.dataLayer.push({
event: "search",
search_term: "taza esmaltada"
});
- Send the event once per search performed, not on every load of the results page.
- Normalize the term before analyzing it (lowercase, extra spaces) in the analysis; what is sent must keep what was typed.
- Terms may include personal data by mistake (names, emails). Decide with the legal team what is sent and filter out what does not belong before sending it.
- If you want to measure searches with no results, use a custom event or parameter and register it as a custom dimension in GA4.
Limits and risks
- There is no
view_search_resultsin the pages consulted. - Privacy: search terms may include personal data.
- A search is not a purchase intent. It measures what was typed, not why.
- Official pages without a date. It is worth rereading them before implementing.
- Consent: what can be measured depends on the visitor's consent.
What to do next
Review the fifty most searched terms on your site over the last month and mark which ones have no product or page that answers them. To follow the journey, read Measuring the product page. If you would like us to review your measurement, learn about our Google Analytics audit service.
Frequently asked questions
Which event measures internal search?
The search event, with the search_term parameter, according to the GA4 events reference.
Is there an event for searches with no results?
We did not find one in the pages consulted. You can define a custom event and register it as a custom dimension.
Can I measure which product is chosen after a search?
Yes, by treating the results as a list with view_item_list and select_item, with a list name that indicates their origin.
Is it a problem to send the searched term to GA4?
It can be if the person types personal data. Decide with the legal team what is sent and filter out what does not belong.