Skip to main content

Site search tracking

Site search tracking captures how users search within your website. This data helps you understand what content users are looking for, whether they find it, and how search influences their journey through your site.

Use site search tracking to:

  • Identify popular search terms and content gaps
  • Measure search success rates based on result counts
  • Analyze how search filters affect user behavior
  • Optimize your internal search functionality

This table shows the support for site search tracking across the main client-side Snowplow tracker SDKs:

TrackerSupportedSince versionAuto-trackingNotes
Web3.0.0Requires site tracking plugin
iOS
Android
React Native
Flutter
Roku
Google Tag Managerv3

The site search event captures the search terms, any filters applied, and the number of results returned.

site_search

Event
Schema for a site search event
Schema URIiglu:com.snowplowanalytics.snowplow/site_search/jsonschema/1-0-0
Example
json
{
"terms": [
"unified",
"log"
],
"filters": {
"category": "books",
"sub-category": "non-fiction"
},
"totalResults": 14,
"pageResults": 8
}
Properties and schema
PropertyDescription
terms
array
Required. The search terms
filters
object
Optional. The search filters
totalResults
integer
Optional. The total number of results
pageResults
integer
Optional. The number of results on the page
Warehouse query
sql
select
unstruct_event_com_snowplowanalytics_snowplow_site_search_1_0_0
from
PIPELINE_NAME.events events
where
events.collector_tstamp > timestamp_sub(current_timestamp(), interval 1 hour)
and events.event = 'unstruct'
and events.event_name = 'site_search'
and events.event_vendor = 'com.snowplowanalytics.snowplow'