Integrate site search with Google Analytics

Updated

Integrate Webflow site search with Google Analytics to learn how visitors search your site.

Integrating Webflow site search with Google Analytics 4 is a great way to discover what visitors are looking for on your site, as well as how many people use search in the first place. Some key insights you can learn from site search analytics include:

  • Most common search terms
  • Number of users who search
  • Number of searches performed
  • Percentage of sessions with search

Before you get started

Configure Google Analytics 4 for your Webflow site before following the steps below.

Enable site search enhanced measurement in Google Analytics

In order for Google Analytics 4 to capture search results metrics, you need to enable the "site search" enhanced measurement option and ensure that Google Analytics is tracking the "query" URL parameter that Webflow uses for the search results page.

  1. Follow Google's support article on enabling enhanced measurement events and turn on Site search
  2. From the Site search enhanced measurement settings, click Show advanced settings 
  3. Confirm that "query" is listed in the Search term query parameter list
  4. Click Save

Create a custom definition for search_term in Google Analytics

To include a breakdown of search terms in your Events report, you need to add search_term as a custom definition.

In the Google Analytics dashboard:

  1. Go to Admin > Data display > Custom definitions
  2. Click Create custom dimension
  3. Enter a dimension name (e.g., Search terms)
  4. Choose search_term for the Event parameter
  5. Click Save

Note

Data is only recorded after the custom dimension is created (i.e., historic data is not retroactively available).

Review your Webflow site's search analytics in Google Analytics

You can view live results over the last 30 minutes and/or an Events report that contains historical results dating back to when you configured Google Analytics to track your site searches and search terms.

Live results (Realtime)

In the Google Analytics dashboard:

  1. Go to Reports > Realtime overview > Event count
  2. Click view_search_results to see the recent search volume
  3. Click search_term to see the recent terms visitors searched

Historic results (Events report)

Good to know

It takes 24 to 48 hours for data to populate in the Events report.

In the Google Analytics dashboard:

  1. Go to Reports > Engagement > Events
  2. Click view_search_results

In this report, you can review the total search volume, percentage of sessions with searches, and other useful search data. If you configured a custom definition for search_term, you can also review the most common search terms broken down by event count and total users.