searches
The searches schema captures online store search activity with query classification fields. Use it to distinguish result availability, inferred intent, and whether queries target products, articles, or pages.
Anchor to Use casesUse cases
- Intent distribution: Group
searchesbysearch_query_intentto summarize search intent distribution. - Result availability: Filter
search_results_were_returnedto separate searches with and without results. - Query classification: Compare
is_product_search_query,is_article_search_query, andis_page_search_queryflags to split searches by content type. - Day-of-week trend: Trend
searchesbyday_of_weekto see which days drive the most on-site search.
Anchor to MetricsMetrics
Counts and calculations that let you track key business indicators. Metrics show up as the columns when queried.
Metrics you can use when querying FROM searches.
- Anchor to searchessearchessearchesINTEGERINTEGER
Number of search queries made on your online store
INTEGER
A whole number without decimal places, used for counts, quantities, and other discrete numeric values.
Anchor to DimensionsDimensions
Attributes of your data that let you look more granularly at aspects of the data. Group and filter by dimensions to shape the rows your query returns.
Dimensions you can use when querying FROM searches.
- Anchor to daydaydayDAY_TIMESTAMPDAY_TIMESTAMP
The day a search happened.
- Anchor to day_of_weekday_
of_ weekday_ of_ week DAY_OF_WEEKDAY_OF_WEEK The day of the week a search happened, with values Monday through Sunday.
- Anchor to hourhourhourHOUR_TIMESTAMPHOUR_TIMESTAMP
The hour a search happened.
- Anchor to hour_of_dayhour_
of_ dayhour_ of_ day HOUR_OF_DAYHOUR_OF_DAY The hour of day a search happened, with values 0 through 23.
- Anchor to is_article_search_queryis_
article_ search_ queryis_ article_ search_ query BOOLEANBOOLEAN Whether a visitor's search was for an article, with values
trueandfalse.- Anchor to is_page_search_queryis_
page_ search_ queryis_ page_ search_ query BOOLEANBOOLEAN Whether a visitor's search was for a store page, with values
trueandfalse.- Anchor to is_product_search_queryis_
product_ search_ queryis_ product_ search_ query BOOLEANBOOLEAN Whether a visitor's search was for a product, with values
trueandfalse.- Anchor to minuteminuteminuteMINUTE_TIMESTAMPMINUTE_TIMESTAMP
The minute a search happened.
- Anchor to monthmonthmonthMONTH_TIMESTAMPMONTH_TIMESTAMP
The month a search happened.
- Anchor to month_of_yearmonth_
of_ yearmonth_ of_ year MONTH_OF_YEARMONTH_OF_YEAR The month of the year a search happened, with values 1 through 12.
- Anchor to quarterquarterquarterQUARTER_TIMESTAMPQUARTER_TIMESTAMP
The quarter a search happened.
- Anchor to search_querysearch_
querysearch_ query STRINGSTRING The term or phrase a visitor searched for on your online store.
- Anchor to search_query_intentsearch_
query_ intentsearch_ query_ intent STRINGSTRING What the visitor appeared to be looking for when they searched your online store.
- Anchor to search_results_were_returnedsearch_
results_ were_ returnedsearch_ results_ were_ returned BOOLEANBOOLEAN - Anchor to secondsecondsecondSECOND_TIMESTAMPSECOND_TIMESTAMP
The second a search happened.
- Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to weekweekweekWEEK_TIMESTAMPWEEK_TIMESTAMP
The week a search happened.
- Anchor to week_of_yearweek_
of_ yearweek_ of_ year WEEK_OF_YEARWEEK_OF_YEAR The week of the year a search happened, with values 1 through 53.
- Anchor to yearyearyearYEAR_TIMESTAMPYEAR_TIMESTAMP
The year a search happened.
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
DAY_TIMESTAMP
A date value truncated to day precision.
DAY_OF_WEEK
A day within a week, used for weekday-based grouping and filtering.
HOUR_TIMESTAMP
A timestamp truncated to hour precision.
HOUR_OF_DAY
An hour within a day, typically represented as an integer from 0 to 23.
BOOLEAN
A true or false value representing binary states.
MINUTE_TIMESTAMP
A timestamp truncated to minute precision.
MONTH_TIMESTAMP
A date value representing the start of a month.
MONTH_OF_YEAR
A month number within a year.
QUARTER_TIMESTAMP
A date value representing the start of a fiscal quarter.
STRING
A sequence of characters representing text data.
SECOND_TIMESTAMP
A timestamp truncated to second precision.
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
WEEK_TIMESTAMP
A date value representing the start of a week.
WEEK_OF_YEAR
A week number within a year.
YEAR_TIMESTAMP
A date value representing the start of a year.
search_queries: Query-level click outcomes for which searches lead to clicks.search_conversions: Search-driven funnel volume for tracking searches downstream to checkout.sessions: Storewide session data for a denominator beyond search-driven traffic.