Skip to main content

Site search tracking

Site search tracking are provided as part of the Site tracking plugin. This plugin also provides events for social media interactions and timings.

Site search events must be manually tracked.

Install plugin

Tracker DistributionIncluded


Download from GitHub Releases (Recommended)Github Releases (
Available on jsDelivrjsDelivr (latest)
Available on unpkgunpkg (latest)

Note: The links to the CDNs above point to the current latest version. You should pin to a specific version when integrating this plugin on your website if you are using a third party CDN in production.

["snowplowSiteTracking", "SiteTrackingPlugin"]


Use the trackSiteSearch method to track users searching your website. Here are its arguments:

termsYesSearch termsarray
filtersNoSearch filtersJSON
totalResultsNoResults foundnumber
pageResultsNoResults displayed on first pagenumber

An example:

snowplow('trackSiteSearch', {
terms: ['unified', 'log'],
filters: {'category': 'books', 'sub-category': 'non-fiction'},
totalResults: 14,
pageResults: 8

Site search events are implemented as Snowplow self-describing events. Here is the schema for a site_search event.

Was this page helpful?