{"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-05-13T09:47:35","modified_gmt":"2026-05-13T09:47:35","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 someone sees search results on your site, EasyFinder sends an event with useful info: what they searched for, how many results came back, 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>What EasyFinder Sends<\/h3>\n<p>Each time a search result page is shown, 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: 8,\r\n  ef_search_method: \"search\",\r\n  ef_total_active_filters: 2,\r\n  ef_source: \"easyfinder\"\r\n}\r\n<\/pre>\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 user searched for.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_exact_results<\/code><\/td>\n<td>Number of results that exactly match the search.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_relaxed_results<\/code><\/td>\n<td>Extra results found through smart (semantic) matching.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_search_method<\/code><\/td>\n<td>Which part of EasyFinder triggered the search (for example <code>search<\/code> or <code>widget<\/code>).<\/td>\n<\/tr>\n<tr>\n<td><code>ef_total_active_filters<\/code><\/td>\n<td>How many filters the user had active at that moment.<\/td>\n<\/tr>\n<tr>\n<td><code>ef_source<\/code><\/td>\n<td>Always <code>easyfinder<\/code>. Handy to separate these events 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.<br \/>\nIf you don&#8217;t have GTM installed yet, set that up first by following Google&#8217;s quick-start guide.<\/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.<br \/>\nGo to <strong>Variables<\/strong> \u2192 <strong>New<\/strong> \u2192 <strong>Data Layer Variable<\/strong>.<br \/>\nCreate one variable per field. For each one, 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_search_method<\/code><\/li>\n<li><code>ef_total_active_filters<\/code><\/li>\n<li><code>ef_source<\/code><\/li>\n<\/ul>\n<p>Give each variable a clear name (e.g. <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.<br \/>\nGo to <strong>Triggers<\/strong> \u2192 <strong>New<\/strong> \u2192 <strong>Custom Event<\/strong>.<br \/>\nFill 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.<br \/>\nGo to <strong>Tags<\/strong> \u2192 <strong>New<\/strong> \u2192 <strong>Google Analytics: GA4 Event<\/strong>.<br \/>\nFill in:<\/p>\n<ul>\n<li><strong>Measurement ID:<\/strong> your GA4 ID (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_search_method<\/code><\/td>\n<td><code>{{DLV - ef_search_method}}<\/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_source<\/code><\/td>\n<td><code>{{DLV - ef_source}}<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Under <strong>Triggering<\/strong>, pick the <code>CE - view_search_results<\/code> trigger. 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. Do a search and check that the event fires and all values look correct.<br \/>\nWhen 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 are now flowing through Google Tag Manager and ready to be used in any tool you connect.<\/p>\n<div class=\"alert alert-info\" role=\"alert\">If you&#8217;re sending these events to Google Analytics, there&#8217;s one more step on the GA4 side to make the <code>ef_*<\/code> fields visible in your reports. Check out our guide on capturing EasyFinder events in Google Analytics.<\/div>","protected":false},"excerpt":{"rendered":"<p>Every time someone sees search results on your site, EasyFinder sends an event with useful info: what they searched for, how many results came back, 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 [&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":[14],"doc_tag":[],"class_list":["post-3124","docs","type-docs","status-publish","hentry","doc_category-integrations"],"year_month":"2026-09","word_count":620,"total_views":0,"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":"Integrations","term_url":"https:\/\/easyfinder.ai\/nl\/docs-category\/integrations\/"}],"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":11,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/docs\/3124\/revisions"}],"predecessor-version":[{"id":3368,"href":"https:\/\/easyfinder.ai\/nl\/wp-json\/wp\/v2\/docs\/3124\/revisions\/3368"}],"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}]}}