Every time a shopper searches on your site, EasyFinder sends an event called view_search_results. Once Google Tag Manager forwards it to Google Analytics (GA4), you can see what your shoppers search for. The extra EasyFinder fields, like the number of results or active filters, only show up in your reports once you register them. This guide walks you through that setup.
Before You Start #
The EasyFinder event reaches Google Analytics through Google Tag Manager, so set that up first. Check out our guide on capturing EasyFinder events in Google Tag Manager: it ends with a GA4 tag that sends the event, with all its fields, to your property.
What EasyFinder Sends #
The view_search_results event includes the following fields:
| Field | What it tells you |
|---|---|
search_term | The word or phrase the shopper searched for. |
ef_total_exact_results | How many of the results on screen match the search exactly. Counted over the results shown, up to 28 at a time. It is not the total number of matching items in your catalog. |
ef_total_relaxed_results | How many extra results are shown next to the exact matches, for example when only a few items match the search. Counted over the results shown, up to 28 at a time. It is not the total number of matching items in your catalog. |
ef_total_active_filters | How many filters the shopper had switched on at that moment. |
ef_search_method | Where the search happened. Currently always overlay: the EasyFinder search window. |
ef_source | Altijd easyfinder. Handy to tell these events apart from other search events. |
The event is sent once the shopper stops typing and the results have been on screen for about two seconds, or right away when they press Enter. One search is one event, not one for every letter typed.
Step 1. Open Google Analytics #
Log in to analytics.google.com and select the property connected to your website.
Step 2. Register the Counts as Custom Metrics #
The three counts are numbers, so register them as metrics. That way GA4 can add them up and average them, for example to show the average number of results per search.
Go to Admin → Custom definitions → Custom metrics → Create custom metric. Create one for each count:
| Metric name | Scope | Event parameter | Unit of measurement |
|---|---|---|---|
| EF Exact Results | Event | ef_total_exact_results | Standard |
| EF Relaxed Results | Event | ef_total_relaxed_results | Standard |
| EF Active Filters | Event | ef_total_active_filters | Standard |
Step 3. Register the Other Fields as Custom Dimensions #
Go to Admin → Custom definitions → Custom dimensions → Create custom dimension. Create one for each of these fields:
| Dimension name | Scope | Event parameter |
|---|---|---|
| EF Search Method | Event | ef_search_method |
| EF Source | Event | ef_source |
search_term. GA4 already includes it as the Search term dimension for this event.
Step 4. Check It’s Working #
Go to Admin → DebugView in GA4 and search for something on your site. Wait two seconds or press Enter. The view_search_results event should appear within a few seconds, with all EasyFinder values filled in.
That’s it. From now on, every EasyFinder search on your site flows into Google Analytics with all the context you need to build useful reports.