{"id":3124,"date":"2026-03-30T11:39:10","date_gmt":"2026-03-30T11:39:10","guid":{"rendered":"https:\/\/easyfinder.ai\/?post_type=docs&#038;p=3124"},"modified":"2026-11-05T13:26:23","modified_gmt":"2026-11-05T13:26:23","password":"","slug":"how-to-capture-easyfinder-events-in-google-tag-manager","status":"publish","type":"docs","link":"https:\/\/easyfinder.ai\/nl\/docs\/how-to-capture-easyfinder-events-in-google-tag-manager\/","title":{"rendered":"EasyFinder events vastleggen in Google Tag Manager"},"content":{"rendered":"<p>Every time a shopper searches on your site, EasyFinder sends an event with useful info: what they searched for, how many results they saw and how many filters they used. With a little setup in Google Tag Manager (GTM), you can capture all of it and forward it to the tools you use, like Google Analytics, Meta Pixel or any other tag.<\/p>\n<p>&nbsp;<\/p>\n<h3>Before You Start<\/h3>\n<p>Google Tag Manager needs to be installed on your site. If it isn&#8217;t yet, set that up first by following Google&#8217;s quick-start guide.<\/p>\n<div class=\"alert alert-warning\" role=\"alert\">EasyFinder only sends the event when Google Tag Manager is on the page. A site with only the Google Analytics tag (gtag.js) and no GTM container receives nothing.<\/div>\n<p>&nbsp;<\/p>\n<h3>What EasyFinder Sends<\/h3>\n<p>When a shopper searches, EasyFinder pushes this event to the data layer:<\/p>\n<pre spellcheck=\"false\">\/\/ Example event from EasyFinder\r\n{\r\n  event: \"view_search_results\",\r\n  search_term: \"running shoes\",\r\n  ef_total_exact_results: 24,\r\n  ef_total_relaxed_results: 4,\r\n  ef_total_active_filters: 2,\r\n  ef_search_method: \"overlay\",\r\n  ef_source: \"easyfinder\"\r\n}\r\n<\/pre>\n<p>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 <strong>Enter<\/strong>. Someone typing \u201crunning shoes\u201d sends one event, not one for every letter.<\/p>\n<p>Here&#8217;s what each field means:<\/p>\n<table>\n<thead>\n<tr>\n<th>Field<\/th>\n<th>What it tells you<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>search_term<\/code><\/td>\n<td>The word or phrase the shopper searched for.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_exact_results<\/code><\/td>\n<td>How many of the results on screen match the search exactly.<br \/>\n<em>Counted over the results shown, up to 28 at a time. It is not the total number of matching items in your catalog.<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_relaxed_results<\/code><\/td>\n<td>How many extra results are shown next to the exact matches, for example when only a few items match the search.<br \/>\n<em>Counted over the results shown, up to 28 at a time. It is not the total number of matching items in your catalog.<\/em><\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_active_filters<\/code><\/td>\n<td>How many filters the shopper had switched on at that moment.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_search_method<\/code><\/td>\n<td>Where the search happened. Currently always <code>overlay<\/code>: the EasyFinder search window.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_source<\/code><\/td>\n<td>Altijd <code>easyfinder<\/code>. Handy to tell these events apart from other search events.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>Step 1. Open Google Tag Manager<\/h3>\n<p>Log in to <strong>tagmanager.google.com<\/strong> and open the container connected to your website.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 2. Add the EasyFinder Fields as Variables<\/h3>\n<p>GTM needs to know which fields to read from the event.<\/p>\n<p>Go to <strong>Variables<\/strong> \u2192 <strong>Nieuw<\/strong> \u2192 <strong>Data Layer Variable<\/strong>. Create one variable per field, and fill in the <strong>Data Layer Variable Name<\/strong> exactly like this:<\/p>\n<ul>\n<li><code>search_term<\/code><\/li>\n<li><code>ef_total_exact_results<\/code><\/li>\n<li><code>ef_total_relaxed_results<\/code><\/li>\n<li><code>ef_total_active_filters<\/code><\/li>\n<li><code>ef_search_method<\/code><\/li>\n<li><code>ef_source<\/code><\/li>\n<\/ul>\n<p>Give each variable a clear name, such as <code>DLV search_term<\/code>, and save.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 3. Create a Trigger<\/h3>\n<p>Now tell GTM when to react.<\/p>\n<p>Go to <strong>Triggers<\/strong> \u2192 <strong>Nieuw<\/strong> \u2192 <strong>Custom Event<\/strong> and fill in:<\/p>\n<ul>\n<li><strong>Event name:<\/strong> <code>view_search_results<\/code><\/li>\n<li><strong>This trigger fires on:<\/strong> All Custom Events<\/li>\n<\/ul>\n<p>Save it as <code>CE view_search_results<\/code>.<\/p>\n<p>&nbsp;<\/p>\n<h3>Step 4. Create a Tag<\/h3>\n<p>Now build the tag that sends the event to the tool of your choice. The most common setup is a Google Analytics (GA4) tag.<\/p>\n<p>Go to <strong>Tags<\/strong> \u2192 <strong>Nieuw<\/strong> \u2192 <strong>Google Analytics: GA4 Event<\/strong> and fill in:<\/p>\n<ul>\n<li><strong>Measurement ID:<\/strong> your GA4 ID, which looks like <code>G-XXXXXXX<\/code><\/li>\n<li><strong>Event Name:<\/strong> <code>view_search_results<\/code><\/li>\n<\/ul>\n<p>Under <strong>Event Parameters<\/strong>, add a row for each field:<\/p>\n<table>\n<thead>\n<tr>\n<th>Parameter Name<\/th>\n<th>Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>search_term<\/code><\/td>\n<td><code>{{DLV search_term}}<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_exact_results<\/code><\/td>\n<td><code>{{DLV ef_total_exact_results}}<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_relaxed_results<\/code><\/td>\n<td><code>{{DLV ef_total_relaxed_results}}<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_active_filters<\/code><\/td>\n<td><code>{{DLV ef_total_active_filters}}<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>ef_search_method<\/code><\/td>\n<td><code>{{DLV ef_search_method}}<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>ef_source<\/code><\/td>\n<td><code>{{DLV ef_source}}<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Under <strong>Triggering<\/strong>, pick the <code>CE view_search_results<\/code> trigger and save the tag.<\/p>\n<div class=\"alert alert-info\" role=\"alert\">Using a different tool like Meta Pixel or a custom HTML tag? You can still use the same trigger and variables. Just pick the tag type that fits your tool.<\/div>\n<p>&nbsp;<\/p>\n<h3>Step 5. Test and Publish<\/h3>\n<p>Click <strong>Preview<\/strong> in GTM and open your site. Search for something and wait two seconds, or press <strong>Enter<\/strong>. Check that the event fires and that all values look correct.<\/p>\n<p>When everything looks good, click <strong>Submit<\/strong> and publish your container.<\/p>\n<div class=\"alert alert-warning\" role=\"alert\">If the tag doesn&#8217;t fire, check that the event name matches <code>view_search_results<\/code> exactly. It&#8217;s case-sensitive.<\/div>\n<p>That&#8217;s it. Your EasyFinder events now flow through Google Tag Manager, ready to be used in any tool you connect.<\/p>\n<div class=\"alert alert-info\" role=\"alert\">Sending these events to Google Analytics? There&#8217;s one more step on the GA4 side to make the EasyFinder fields visible in your reports. Check out our guide on capturing EasyFinder events in Google Analytics.<\/div>","protected":false},"excerpt":{"rendered":"<p>Every time a shopper searches on your site, EasyFinder sends an event with useful info: what they searched for, how many results they saw and how many filters they used. With a little setup in Google Tag Manager (GTM), you can capture all of it and forward it to the tools you use, like Google [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"doc_category":[27],"doc_tag":[],"class_list":["post-3124","docs","type-docs","status-publish","hentry","doc_category-analytics"],"year_month":"2026-11","word_count":753,"total_views":"4","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"hassan","author_url":"https:\/\/easyfinder.ai\/nl\/author\/hassan\/"},"doc_category_info":[{"term_name":"Analytics","term_url":"https:\/\/easyfinder.ai\/nl\/docs-category\/analytics\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/docs\/3124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/comments?post=3124"}],"version-history":[{"count":12,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/docs\/3124\/revisions"}],"predecessor-version":[{"id":5206,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/docs\/3124\/revisions\/5206"}],"wp:attachment":[{"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/media?parent=3124"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/doc_category?post=3124"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/doc_tag?post=3124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}