• Courses
    • Courses
    • Course bundles
  • Blog
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • Services
  • About
    • About
    • Contact
  • Login
  • Courses
    • Courses
    • Course bundles
  • Blog
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • Services
  • About
    • About
    • Contact
  • Login

April 1, 2025

How to Find Search Terms in Google Analytics 4?

Updated: April 1st, 2025

If your website has a site search feature, you probably want to know what people are looking for. That’s where Google Analytics can help. However, it’s not as simple to see that data as someone would expect.

In this blog post, I will share several options for how and where to find search terms in Google Analytics 4.

 

Table of Contents

Here’s what you will learn in this article

  • Configure site search first
  • Standard reports of GA4
    • Search term overview report
    • Customized standard report
  • Search terms in Looker Studio
  • Google Analytics 4 explorations
  • Looking for keywords from Google Search?
  • Final Words

 

Configure site search in Google Analytics 4

There are several requirements that you need to meet in order to benefit from this blog post:

  • You already must have configured site search in Google Analytics 4
  • You must wait for at least 24 hours after you configured site search tracking (because GA4 needs more time to start showing the data)

 

Video tutorial

If you prefer video content, here’s a tutorial from my Youtube channel.

 

Search terms in standard reports of GA4

If you use the site search tracking of GA4 enhanced measurement, then the name of that search event is view_search_results. You can find that event in several reports. For example, go to Reports > Engagement > Events and look for the view_search_results event.

But this does not tell you much. By looking at the report, you can tell how many people used your search feature, but you cannot tell what they were looking for. So what would you do?

Intuitively, you would probably click the view_search_results event in the report expecting to see more details. Well, that’s just partially true. I’ll explain more in the next chapter of this article.

Subscribe and Get the Ebook - working with reports in ga4

Search term overview report

When you click on a particular event in the report of the standard events, you will see its overview (some widgets, charts, etc.).

But as I am writing this article, some related default dimensions are not available in the overview of the event, so we need to do some additional customization.

Maybe GA4 will solve this by default in the future, but now we should create a custom dimension to start seeing the search terms.

Note: before you continue following this article, first check if GA4 hasn’t already solved this problem. When you open the overview of the view_search_results event, keep looking for a widget that says something about the search terms (but NOT search_term in the last 30 minutes).

This is not the widget/report you are looking for. You are looking for a report that shows the data for a longer period of time. If you found it, congratulations. You don’t need to do any additional configuration.

But if you cannot find that, then go to Admin > Custom Definitions.

custom definitions in google analytics 4

Click Create Custom Dimensions and enter the following settings:

  • Dimension name means the label of the dimension that you are going to see in the reports. It can be Site Search Term, search_term, or anything else.
  • Scope – select Event
  • Description. You can leave this field empty. This is a description for internal use.
  • Event Parameter – here, you must enter exactly search_term (it’s the parameter name that is sent with every view_search_results event)

After you do that, wait for at least 24 hours and then come back to Reports > Engagement > Events > view_search_results. One of the widgets (most likely at the end of the page) will contain the data on how many times was each search term used by your visitors.

Note: this configuration is not retroactive. That report will be showing data only from the moment you created that custom dimension.

Subscribe and Get the Ebook - Mastering GA4 event tracking

Customized standard report

You must have enough permissions in your GA4 property to pull this off.

In Google Analytics, go to Reports > Engagement > Events. Click the Pencil icon in the top-right corner. Don’t worry. We will not overwrite the changes in this report.

Click Dimensions, and remove Event Name.

Then, add a Search Term dimension and hit Apply.

Then go to Metrics, and keep “Event count”, “Users”, “Event count per active user” metrics. Apply.

Finally, let’s add a filter to include only view_search_results events. In the “Report filter” section, enter the following condition:

If necessary, you can hide unwanted charts (e.g., Bar Chart). Apply all changes. The report will look like this:

Then click Save > Save as a new report. Give it a name, e.g., Site Search Terms, and click Save. The final step is to publish this report and add it to the left sidebar.

Go back to the “Reports” of Google Analytics 4, select any report, and then click Library.

Then, find the Life Cycle collection and click Edit collection.

From the column on the right, drag the Site Search report to the Engagement section. Click Save > Save changes to the current collection.

Done! The Site Search report is now available to every user of the GA4 property. They will find it in Reports > Engagement > Site Search.

 

Seeing GA4 search terms in Looker Studio

In this part of the tutorial, I assume you already know how to connect GA4 with Looker Studio.

After you do that, create a new report and select any chart you want to use. When you click on the Dimension of that chart, look for the Search Term dimension in the list (you don’t need to register a custom dimension for it).

 

Search terms in Google Analytics 4 explorations

If you like to dive deeper into your data, standard GA4 reports are lacking. That’s where explorations become an important tool.

In Google Analytics 4, go to Explore > Free Form

Here, you will find three columns:

  1. Variables
  2. Tab Settings
  3. and the actual output of the report.

In the Variables column, click the Plus icon in the Dimensions section and find Search Term (this dimension is available by default; you don’t need a custom dimension for that). Select it and click Apply.

Then, drag the Search term dimension to the Rows section. Remove any other dimensions that are in the Rows section. Clear any dimensions in the Columns section.

Then, in the Values section, add the Event Count metric (drag it from the Metrics section).

In the Filters section, enter the following condition: Event Name exactly matches view_search_results.

Done! You will now see the report, and if you wish, you can add some additional metrics/dimensions/segments.

find search term in google analytics 4 explorations

Also, you can change the date range in the top-left corner of the exploration.

 

Looking for keywords from Google Search?

If you are looking for what keywords people entered in Google Search before landing on your website, this blog post is not about that. GA4 (just like its previous GA versions) cannot show that data anymore (because Google Search does not disclose it).

There are 3rd party tools available that can potentially show keyword data (to some extent), but I look at that with a big grain of salt.

However, you can connect Google Search Console to GA4 to see search terms (isolated from other data you have).

In this blog post, I focus on search terms that people enter on your website’s search (if your site has one).

 

Find search terms in Google Analytics 4: Final Words

And that’s how you can find search terms in Google Analytics 4. If the “Search term” dimension does not show any values in your property, you might need to check your setup.

Maybe your website’s search works in a way that is not (by default) supported by GA4? If so, read this guide to learn everything about the setup.

 

Julius Fedorovicius
In Google Analytics Tips
28 COMMENTS
Carmen
  • Sep 18 2022
  • Reply

This is very helpful. I will keep you in mind when I need help in GA and GTM. Thank you for sharing.

Janelle
  • Oct 28 2022
  • Reply

I am so glad one of your articles came up in a Google search for me a couple weeks ago. I only need to go to your site for all my GA4 questions. Thank you for putting this information together!

Pandu Aji
  • Nov 13 2022
  • Reply

Thank you for explanation, i looking for the search term in GA 4. Since google will disable the old GA code next year.

Eclipse
  • Nov 29 2022
  • Reply

Great! works fine. Thanks a lot, regards from Spain

Alec
  • Dec 6 2022
  • Reply

Can you please show how to select the date range for the Events in the Engagements section of GA4 report if all we can see there is EVENTS IN LAST 30 MINUTES Thank you

    Julius Fedorovicius
    • Dec 6 2022
    • Reply

    Reports > Engagement > Events. In that list, you will see all events and you can change the date range.

Katka
  • Dec 15 2022
  • Reply

I copied the steps but the search results dont make sense. Its just NMA, CCS, and stuff like that. How to fix it?

    Katka
    • Dec 27 2022
    • Reply

    in the meantime I figured out where was the problem - the search redirected me to different web page hosted on a different domain, so obviously the search results didnt show anything meaningful :-)

Maria D.
  • Mar 28 2023
  • Reply

Hello Julius, yesterday I added a custom dimension for search_term in fact today that dimension is available in exploration. After I followed your steps to add Search Term in the standard report I only see "not set" under the column for search_term. Is that okay? Thank you.

Nataliya
  • Apr 17 2023
  • Reply

Could you please tell me is it possible to configure the GA4 report for query clarifications?

    Julius Fedorovicius
    • May 12 2023
    • Reply

    What do you mean?

      John
      • May 12 2023
      • Reply

      I think what Nataliya is referring to is the metric in the Site Search report in UA % Search Refinements. I am interested in that metric as well as Search Exits.

Eelco
  • Apr 21 2023
  • Reply

Thanks for this article. I followed these steps for some clients and it worked. But for 1 client I dont see the event parameter "search_term" in the dropdown at new custom dimension. How come?

    Julius Fedorovicius
    • May 12 2023
    • Reply

    Just enter it manually, ignore the dropdown

Paul
  • Jul 3 2023
  • Reply

Hi Julius, thanks so much for the article!
It works for the line diagram and the bar graph perfectly, but in the table it is just showing "not set".
I went through your article multiple times but can not find a solution for it on how to show the search terms in the table - do you have any idea?

Thanks a lot in advance, Paul.

    Adam P
    • Oct 27 2023
    • Reply

    Hi Paul, I had the same problem. On the Search Tmrms screen (with line graph, bar chart and table) I:
    - clicked the edit pencil
    - found the bottom Summary card called Event Count by Event Name
    - clicked edit and deleted 'event name' in Dimensions
    - I added a Dimension for 'search_term' (actually my only option). The Card Preview shows me all the search term data in the table.

    - I saved it, but the main report page table still hasn't updated properly....yet. Waiting a few days to come back to it

Ian Haynes
  • Jul 8 2023
  • Reply

Great article and super useful. One question I have - is there a way to view revenue generated after someone has used a particular search term? I'd hoped if i added Ecommerce revenue as a metric i would see this data but doesn't seem to work.

Gabi
  • Jul 10 2023
  • Reply

Hi Julius - I have used the exploration route but the first line of the search term doesn't show data ( it is blank) - I was wondering if you have seen the same on your reports and if you would know why that's the case? Thanks very much.

Agnes Gracia
  • Jul 10 2023
  • Reply

Could I ask, how does GA4 measure conversions and business goals? Thank you

Artour
  • Jul 17 2023
  • Reply

With years, Google just became a piece of annoying useless garbage.

Joe
  • Jul 28 2023
  • Reply

thanks. I always enjoy your blogs. UPDATE on Looker studio. Search term dimension is available upon checking as of 7/28/2023. No need for a custom dimension.

Chen
  • Oct 19 2023
  • Reply

Hi Julius,

I have an issue for this "Search Term", I got the right "search term" in the GA4 report by Engagement -> Events -> view_search_results; I also try to create a report for this in Explorations, but after I imported the custom dimension "Search Term", what I got here is quite different from the standard report, here what I got for "search term" is a group of words rather than that "singe word" of search term in standard report. It's quite strange, do you have an idea?

Thank you in advance!

Loren
  • Nov 8 2023
  • Reply

Hi, thank you so much for sharing your knowledge. I am able to see the top 25 search terms for the past 12 months, but can't seem to see more than the top 25. Do you have any suggestions for how to see a full list of the last 12 months of search terms? Thank you!

    Julius Fedorovicius
    • Nov 8 2023
    • Reply

    Maybe you're affected by thresholding?

Damian
  • Dec 7 2023
  • Reply

I don't even have "Configure > Custom Definitions." GA4 is so much worse than GA

    Julius Fedorovicius
    • Dec 8 2023
    • Reply

    GA4 changes often. Go to Admin > custom definitions

A. Bhavana
  • Dec 26 2023
  • Reply

hi im unable to get the results in my GA-4 reports for search term traffic
The search_term value is coming correctly in debug view of GA-4 and in GTM im getting this as the datalayer :
{
event: "view_search_results",
gtm: {uniqueEventId: 0, start: 1703568301957, priorityId: 5},
developer_id: {dZGIzZG: true},
eventModel: {search_term: "sales-crm"}
}

In the reports im adding the search term as dimension and no search terms are coming up in my GA-4 reports(The vaues are coming as empty), need some guidance please?

Daniel
  • Dec 31 2024
  • Reply

This is such a useful guide for anyone looking to optimise their site search tracking in GA4
I recently came across another article that builds on this concept by offering an improved method for analysing site searches beyond just search terms and event counts. It focuses on combining additional dimensions and metrics, such as click-through rates and add-to-basket rates, to provide actionable insights into search term performance.

If you’re interested, you can check it out here: https://www.atriaanalytics.co.uk/post/unlocking-the-full-potential-of-ga4-site-search-analysis. It might complement the strategies you've shared here.

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *


 

Hi, I'm Julius Fedorovicius and I'm here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey. Read more
Analytics Mania
  • Google Tag Manager Courses
  • Google Tag Manager Recipes
  • Google Tag Manager Resources
  • Google Tag Manager Community
  • Login to courses
Follow Analytics Mania
  • Subscribe to newsletter
Recent Posts
  • Conversion rate in Google Analytics 4
  • Google Tag Manager Data Layer Explained
  • Cross-domain tracking in Google Analytics 4
Analytics Mania - Google Tag Manager and Google Analytics Blog | Privacy Policy
Manage Cookie Settings