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
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.
- Follow Google's support article on enabling enhanced measurement events and turn on Site search
- From the Site search enhanced measurement settings, click Show advanced settings
- Confirm that "query" is listed in the Search term query parameter list
- 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:
- Go to Admin > Data display > Custom definitions
- Click Create custom dimension
- Enter a dimension name (e.g., Search terms)
- Choose
search_term
for the Event parameter
- 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:
- Go to Reports > Realtime overview > Event count
- Click view_search_results to see the recent search volume
- 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:
- Go to Reports > Engagement > Events
- 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.