sales
The sales schema captures the primary sales data for revenue and sale line-item analysis. Each row records one event, and a single order can produce multiple rows if refunds or adjustments follow. It's the broadest sales source, connecting sale amounts and adjustments to orders, customers, products, variants, discounts, refunds, staff, billing, and POS context.
Anchor to Use casesUse cases
- Revenue trend: Show
gross_sales,discounts,returns, andnet_salestogether by month to see how top-line revenue moves. - Product performance: Group
net_salesbyproduct_id,product_variant_id, orcustomer_idto rank what drives revenue. - Cost coverage: Compare
net_sales_with_cost_recordedandnet_sales_without_cost_recordedto find revenue coverage for cost-based reporting. - Sale components: Break out
shipping_charges,duties,additional_fees,return_fees, andtaxes_excluding_gift_cardsto see what's bundled into a sale beyond product revenue.
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 sales.
- Anchor to acceptable_fraud_risk_rateacceptable_
fraud_ risk_ rateacceptable_ fraud_ risk_ rate PERCENTPERCENT Percentage of orders marked as low or medium risk by Shopify's fraud analysis
- Anchor to additional_feesadditional_
feesadditional_ fees MONEYMONEY Additional fees associated with the given sale
- Anchor to amount_spent_per_customeramount_
spent_ per_ customeramount_ spent_ per_ customer MONEYMONEY The average all-time spend for customers in your results, in your store's currency.
- Anchor to average_order_valueaverage_
order_ valueaverage_ order_ value MONEYMONEY The average amount per order before post-order adjustments, in your store's currency.
Average order value = (gross sales - discounts) / orders- Anchor to bundles_orderedbundles_
orderedbundles_ ordered INTEGERINTEGER - Anchor to cost_of_goods_soldcost_
of_ goods_ soldcost_ of_ goods_ sold MONEYMONEY - Anchor to customerscustomerscustomersINTEGERINTEGER
Counts each customer one time within the selected sales, even if the customer placed more than one order.
- Anchor to discount_reversalsdiscount_
reversalsdiscount_ reversals MONEYMONEY Discount values no longer applied when discounted products are removed from orders
- Anchor to discountsdiscountsdiscountsMONEYMONEY
The amount taken off sales revenue through discounts, in your store's currency. Use
discountsto track discounting over time or by groupings like.- Anchor to dutiesdutiesdutiesMONEYMONEY
Customs duties or import tariffs associated with sales, in your store's currency. Use
dutiesto report duty amounts over time or by destination fields like.- Anchor to gift_card_discountsgift_
card_ discountsgift_ card_ discounts MONEYMONEY - Anchor to gift_card_gross_salesgift_
card_ gross_ salesgift_ card_ gross_ sales MONEYMONEY - Anchor to gift_card_net_salesgift_
card_ net_ salesgift_ card_ net_ sales MONEYMONEY - Anchor to gift_card_taxesgift_
card_ taxesgift_ card_ taxes MONEYMONEY Taxes for sales of gift cards
- Anchor to gross_margingross_
margingross_ margin PERCENTPERCENT The share of sales kept as gross profit after cost of goods sold is factored in. Gross margin is based on sales where cost of goods sold is recorded.
Gross margin = gross profit / net sales- Anchor to gross_profitgross_
profitgross_ profit MONEYMONEY Sales revenue after cost of goods sold is taken out, before other operating expenses, in your store's currency.
Gross profit = net sales - cost of goods sold- Anchor to gross_salesgross_
salesgross_ sales MONEYMONEY - Anchor to gross_sales_reversalsgross_
sales_ reversalsgross_ sales_ reversals MONEYMONEY Value of items removed from orders before discounts and taxes
- Anchor to high_fraud_risk_ratehigh_
fraud_ risk_ ratehigh_ fraud_ risk_ rate PERCENTPERCENT - Anchor to line_item_discountsline_
item_ discountsline_ item_ discounts MONEYMONEY - Anchor to net_items_soldnet_
items_ soldnet_ items_ sold INTEGERINTEGER - Anchor to net_salesnet_
salesnet_ sales MONEYMONEY Sales revenue after discounts and sales reversals, excluding taxes, shipping, duties, and fees, in your store's currency.
Net sales = gross sales - discounts - sales reversals- Anchor to net_sales_reversalsnet_
sales_ reversalsnet_ sales_ reversals MONEYMONEY Value of items removed from orders after discounts, before taxes
Net sales reversals = gross sales reversals + discount reversals- Anchor to net_sales_with_cost_recordednet_
sales_ with_ cost_ recordednet_ sales_ with_ cost_ recorded MONEYMONEY - Anchor to net_sales_without_cost_recordednet_
sales_ without_ cost_ recordednet_ sales_ without_ cost_ recorded MONEYMONEY - Anchor to new_customersnew_
customersnew_ customers INTEGERINTEGER - Anchor to number_of_orders_per_customernumber_
of_ orders_ per_ customernumber_ of_ orders_ per_ customer INTEGERINTEGER - Anchor to order_level_discountsorder_
level_ discountsorder_ level_ discounts MONEYMONEY - Anchor to order_sale_agreementsorder_
sale_ agreementsorder_ sale_ agreements INTEGERINTEGER The number of order agreements that produced sale activity.
- Anchor to ordersordersordersINTEGERINTEGER
Counts each order one time within the selected sales, even when the order contains multiple items.
- Anchor to orders_first_timeorders_
first_ timeorders_ first_ time INTEGERINTEGER - Anchor to orders_returningorders_
returningorders_ returning INTEGERINTEGER - Anchor to quantity_orderedquantity_
orderedquantity_ ordered INTEGERINTEGER - Anchor to quantity_ordered_per_orderquantity_
ordered_ per_ orderquantity_ ordered_ per_ order INTEGERINTEGER - Anchor to rate_of_staff_assisted_salesrate_
of_ staff_ assisted_ salesrate_ of_ staff_ assisted_ sales PERCENTPERCENT - Anchor to return_feesreturn_
feesreturn_ fees MONEYMONEY - Anchor to returning_customer_ratereturning_
customer_ ratereturning_ customer_ rate PERCENTPERCENT The share of customers in your results who had bought from you before.
Returning customer rate = returning customers / customers- Anchor to returning_customersreturning_
customersreturning_ customers INTEGERINTEGER - Anchor to reversed_quantityreversed_
quantityreversed_ quantity INTEGERINTEGER Number of items removed from orders
- Anchor to reversed_quantity_ratereversed_
quantity_ ratereversed_ quantity_ rate PERCENTPERCENT Percentage of items removed from orders out of total items sold
- Anchor to sales_reversalssales_
reversalssales_ reversals MONEYMONEY Value removed from orders through refunds, returns, cancellations, or edits
- Anchor to shipping_charge_discountsshipping_
charge_ discountsshipping_ charge_ discounts MONEYMONEY - Anchor to shipping_charge_taxesshipping_
charge_ taxesshipping_ charge_ taxes MONEYMONEY - Anchor to shipping_chargesshipping_
chargesshipping_ charges MONEYMONEY - Anchor to shipping_reversalsshipping_
reversalsshipping_ reversals MONEYMONEY Shipping charges removed from orders
- Anchor to tax_reversalstax_
reversalstax_ reversals MONEYMONEY Tax amounts removed from orders
- Anchor to taxestaxestaxesMONEYMONEY
Taxes charged on sales, in your store's currency. Use
taxesto report total tax amounts over time or by destination fields.- Anchor to taxes_excluding_gift_cardstaxes_
excluding_ gift_ cardstaxes_ excluding_ gift_ cards MONEYMONEY - Anchor to tipstipstipsMONEYMONEY
Customer gratuities added to sales, in your store's currency. Use
tipsto track tip amounts over time or by retail location.- Anchor to total_salestotal_
salestotal_ sales MONEYMONEY The full amount customers spent, including taxes, shipping, duties, and fees, in your store's currency.
Total sales = net sales + additional fees + duties + shipping charges + taxes- Anchor to total_sales_first_timetotal_
sales_ first_ timetotal_ sales_ first_ time MONEYMONEY - Anchor to total_sales_returningtotal_
sales_ returningtotal_ sales_ returning MONEYMONEY - Anchor to total_sales_reversalstotal_
sales_ reversalstotal_ sales_ reversals MONEYMONEY Total value removed from orders, including products, shipping, taxes, and fees
Total sales reversals = net sales reversals + shipping reversals + sale reversal fees + tax reversals- Anchor to total_shipping_chargestotal_
shipping_ chargestotal_ shipping_ charges MONEYMONEY - Anchor to discounts_returneddiscounts_
returneddiscounts_ returned MONEYMONEYdeprecateddeprecated Discount values no longer applied when discounted products are removed from orders
- Anchor to gross_returnsgross_
returnsgross_ returns MONEYMONEYdeprecateddeprecated Value of items removed from orders before discounts and taxes
- Anchor to net_returnsnet_
returnsnet_ returns MONEYMONEYdeprecateddeprecated Value of items removed from orders after discounts, before taxes
Net returns = gross returns + discounts returned- Anchor to quantity_returnedquantity_
returnedquantity_ returned INTEGERINTEGERdeprecateddeprecated Number of items removed from orders
- Anchor to returned_quantity_ratereturned_
quantity_ ratereturned_ quantity_ rate PERCENTPERCENTdeprecateddeprecated Percentage of items removed from orders out of total items sold
- Anchor to returnsreturnsreturnsMONEYMONEYdeprecateddeprecated
Value removed from orders through refunds, returns, cancellations, or edits
- Anchor to shipping_returnedshipping_
returnedshipping_ returned MONEYMONEYdeprecateddeprecated Shipping charges removed from orders
- Anchor to taxes_returnedtaxes_
returnedtaxes_ returned MONEYMONEYdeprecateddeprecated Tax amounts removed from orders
- Anchor to total_returnstotal_
returnstotal_ returns MONEYMONEYdeprecateddeprecated Total value removed from orders, including products, shipping, taxes, and fees
Total returns = net returns + shipping returned + return fees + taxes returned
PERCENT
A percentage value represented as a decimal, where 0.25 represents 25%.
MONEY
A monetary amount representing currency values such as prices, revenue, costs, and discounts.
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.
You can also group by or filter on custom metafields for customers, orders, products, and variants. Reference a metafield as <owner>.metafields.<namespace>.<key>, where <owner> is customer, order, product, or product_variant. To query a metafield, its definition must have the analyticsQueryable capability enabled. Learn more about metafields.
You can also group by or filter on custom metafields for customers, orders, products, and variants. Reference a metafield as <owner>.metafields.<namespace>.<key>, where <owner> is customer, order, product, or product_variant. To query a metafield, its definition must have the analyticsQueryable capability enabled. Learn more about metafields.
Dimensions you can use when querying FROM sales.
- Anchor to agentic_sales_channelagentic_
sales_ channelagentic_ sales_ channel STRINGSTRING The AI agent or assistant that directly helped facilitate the sale. Values are Google AI Mode and Gemini, Microsoft Copilot, and Shop.
- Anchor to assisting_staff_idassisting_
staff_ idassisting_ staff_ id IDENTITYIDENTITY - Anchor to billing_address_idbilling_
address_ idbilling_ address_ id IDENTITYIDENTITY - Anchor to channel_idchannel_
idchannel_ id IDENTITYIDENTITY - Anchor to cost_is_recordedcost_
is_ recordedcost_ is_ recorded BOOLEANBOOLEAN - Anchor to customer_idcustomer_
idcustomer_ id IDENTITYIDENTITY - Anchor to daydaydayDAY_TIMESTAMPDAY_TIMESTAMP
The day a sale happened.
- Anchor to day_of_weekday_
of_ weekday_ of_ week DAY_OF_WEEKDAY_OF_WEEK The day of week a sale happened, with values Monday through Sunday.
- Anchor to discount_line_iddiscount_
line_ iddiscount_ line_ id STRINGSTRING - Anchor to excludes_post_order_adjustmentsexcludes_
post_ order_ adjustmentsexcludes_ post_ order_ adjustments BOOLEANBOOLEAN - Anchor to hourhourhourHOUR_TIMESTAMPHOUR_TIMESTAMP
The hour a sale happened.
- Anchor to hour_of_dayhour_
of_ dayhour_ of_ day HOUR_OF_DAYHOUR_OF_DAY The hour of day a sale happened, with values 0 through 23.
- Anchor to is_discounted_saleis_
discounted_ saleis_ discounted_ sale BOOLEANBOOLEAN - Anchor to is_pos_saleis_
pos_ saleis_ pos_ sale BOOLEANBOOLEAN - Anchor to is_sale_adjustmentis_
sale_ adjustmentis_ sale_ adjustment BOOLEANBOOLEAN - Anchor to is_sales_reversalis_
sales_ reversalis_ sales_ reversal BOOLEANBOOLEAN Label specifying whether the transaction reverses a previous sale
- Anchor to line_item_idline_
item_ idline_ item_ id IDENTITYIDENTITY - Anchor to line_typeline_
typeline_ type STRINGSTRING - Anchor to minuteminuteminuteMINUTE_TIMESTAMPMINUTE_TIMESTAMP
The minute a sale happened.
- Anchor to monthmonthmonthMONTH_TIMESTAMPMONTH_TIMESTAMP
The month a sale happened.
- Anchor to month_of_yearmonth_
of_ yearmonth_ of_ year MONTH_OF_YEARMONTH_OF_YEAR The month of the year a sale happened, with values 1 through 12.
- Anchor to months_since_first_purchasemonths_
since_ first_ purchasemonths_ since_ first_ purchase INTEGERINTEGER - Anchor to new_or_returning_customernew_
or_ returning_ customernew_ or_ returning_ customer STRINGSTRING - Anchor to order_idorder_
idorder_ id IDENTITYIDENTITY - Anchor to order_or_sales_reversalorder_
or_ sales_ reversalorder_ or_ sales_ reversal STRINGSTRING Label specifying whether the transaction adds or removes value from sales
- Anchor to pos_location_idpos_
location_ idpos_ location_ id IDENTITYIDENTITY - Anchor to product_idproduct_
idproduct_ id IDENTITYIDENTITY - Anchor to product_variant_idproduct_
variant_ idproduct_ variant_ id IDENTITYIDENTITY - Anchor to quarterquarterquarterQUARTER_TIMESTAMPQUARTER_TIMESTAMP
The quarter a sale happened.
- Anchor to quarters_since_first_purchasequarters_
since_ first_ purchasequarters_ since_ first_ purchase INTEGERINTEGER - Anchor to refund_idrefund_
idrefund_ id IDENTITYIDENTITY - Anchor to sale_idsale_
idsale_ id IDENTITYIDENTITY - Anchor to sale_sales_channel_idsale_
sales_ channel_ idsale_ sales_ channel_ id IDENTITYIDENTITY - Anchor to sales_channelsales_
channelsales_ channel STRINGSTRING Name of the sales channel where the customer made a purchase
- Anchor to sales_line_item_group_idsales_
line_ item_ group_ idsales_ line_ item_ group_ id IDENTITYIDENTITY - Anchor to secondsecondsecondSECOND_TIMESTAMPSECOND_TIMESTAMP
The second a sale happened.
- Anchor to shipping_address_idshipping_
address_ idshipping_ address_ id IDENTITYIDENTITY - Anchor to shop_idshop_
idshop_ id IDENTITYIDENTITY - Anchor to staff_idstaff_
idstaff_ id IDENTITYIDENTITY - Anchor to subscription_or_one_timesubscription_
or_ one_ timesubscription_ or_ one_ time STRINGSTRING - Anchor to weekweekweekWEEK_TIMESTAMPWEEK_TIMESTAMP
The week a sale happened.
- Anchor to week_of_yearweek_
of_ yearweek_ of_ year WEEK_OF_YEARWEEK_OF_YEAR The week of the year a sale happened, with values 1 through 53.
- Anchor to weeks_since_first_purchaseweeks_
since_ first_ purchaseweeks_ since_ first_ purchase INTEGERINTEGER - Anchor to yearyearyearYEAR_TIMESTAMPYEAR_TIMESTAMP
The year a sale happened.
- Anchor to years_since_first_purchaseyears_
since_ first_ purchaseyears_ since_ first_ purchase INTEGERINTEGER - Anchor to assisting_staff_member_nameassisting_
staff_ member_ nameassisting_ staff_ member_ name STRINGSTRING Name of the staff member assisting with the retail sale
- Anchor to shop_nameshop_
nameshop_ name STRINGSTRING Name of your store
- Anchor to billing_citybilling_
citybilling_ city STRINGSTRING City of the billing address
- Anchor to billing_companybilling_
companybilling_ company STRINGSTRING B2B customer associated with the billing address
- Anchor to billing_countrybilling_
countrybilling_ country STRINGSTRING Country of the billing address (e.g., United States, Canada)
- Anchor to billing_postal_codebilling_
postal_ codebilling_ postal_ code STRINGSTRING Postal code of the billing address
- Anchor to billing_regionbilling_
regionbilling_ region STRINGSTRING State or province of the billing address (e.g., California, Ontario)
- Anchor to abandoned_checkout_dateabandoned_
checkout_ dateabandoned_ checkout_ date DAY_TIMESTAMPDAY_TIMESTAMP Date the customer most recently abandoned a cart
- Anchor to customer_account_statuscustomer_
account_ statuscustomer_ account_ status STRINGSTRING The customer's account state, with values Declined, Disabled, Enabled, and Invited.
- Anchor to customer_added_datecustomer_
added_ datecustomer_ added_ date DAY_TIMESTAMPDAY_TIMESTAMP The day the customer record was added, reported in your store's time zone.
- Anchor to customer_created_by_app_idcustomer_
created_ by_ app_ idcustomer_ created_ by_ app_ id IDENTITYIDENTITY The Shopify identifier for the app that created the customer.
- Anchor to customer_emailcustomer_
emailcustomer_ email STRINGSTRING Email address of the customer
- Anchor to customer_email_domaincustomer_
email_ domaincustomer_ email_ domain STRINGSTRING The part of the customer's email address after the @ symbol, such as gmail.com or your company's domain.
- Anchor to customer_languagecustomer_
languagecustomer_ language STRINGSTRING Language associated with the customer
- Anchor to customer_namecustomer_
namecustomer_ name STRINGSTRING Full name of the customer
- Anchor to customer_email_subscription_statuscustomer_
email_ subscription_ statuscustomer_ email_ subscription_ status STRINGSTRING The customer's email marketing subscription state, with values such as Invalid, Not subscribed, Pending, and Subscribed.
- Anchor to customer_citiescustomer_
citiescustomer_ cities ARRAY<STRING>ARRAY<STRING> All cities in the customer's history of addresses
- Anchor to customer_countriescustomer_
countriescustomer_ countries ARRAY<STRING>ARRAY<STRING> All countries from the customer's address history. Values are country codes such as US, CA, GB, and AU.
- Anchor to customer_regionscustomer_
regionscustomer_ regions ARRAY<STRING>ARRAY<STRING> All states or provinces from the customer's address history. Values are region codes such as US-CA, US-NY, CA-ON, and GB-ENG.
- Anchor to customer_amount_spentcustomer_
amount_ spentcustomer_ amount_ spent MONEYMONEY The customer's all-time spend is shown in your store's currency.
- Anchor to customer_last_order_datecustomer_
last_ order_ datecustomer_ last_ order_ date DAY_TIMESTAMPDAY_TIMESTAMP The day the customer most recently placed an order, reported in your store's time zone.
- Anchor to customer_number_of_orderscustomer_
number_ of_ orderscustomer_ number_ of_ orders INTEGERINTEGER Number of orders the customer has placed across all time
- Anchor to first_order_sales_channelfirst_
order_ sales_ channelfirst_ order_ sales_ channel STRINGSTRING The sales channel where the customer's first order was placed, shown as a channel name such as Online Store or POS.
- Anchor to customer_cohort_monthcustomer_
cohort_ monthcustomer_ cohort_ month MONTH_TIMESTAMPMONTH_TIMESTAMP The month of the customer's first order, reported in your store's time zone.
- Anchor to customer_cohort_quartercustomer_
cohort_ quartercustomer_ cohort_ quarter QUARTER_TIMESTAMPQUARTER_TIMESTAMP The quarter of the customer's first order, reported in your store's time zone.
- Anchor to customer_cohort_weekcustomer_
cohort_ weekcustomer_ cohort_ week WEEK_TIMESTAMPWEEK_TIMESTAMP The week of the customer's first order, reported in your store's time zone.
- Anchor to customer_first_order_datecustomer_
first_ order_ datecustomer_ first_ order_ date DAY_TIMESTAMPDAY_TIMESTAMP The day the customer placed their first order, reported in your store's time zone.
- Anchor to first_order_referring_channelfirst_
order_ referring_ channelfirst_ order_ referring_ channel STRINGSTRING Referring channel associated with the customer's first order
- Anchor to first_order_traffic_typefirst_
order_ traffic_ typefirst_ order_ traffic_ type STRINGSTRING Type of traffic associated with the customer's first order
- Anchor to first_order_has_subscriptionfirst_
order_ has_ subscriptionfirst_ order_ has_ subscription BOOLEANBOOLEAN Whether the customer's first order included a subscription purchase, with values
trueandfalse.- Anchor to first_order_productsfirst_
order_ productsfirst_ order_ products ARRAY<STRING>ARRAY<STRING> Products bought together in the customer's first order
- Anchor to predicted_spend_tierpredicted_
spend_ tierpredicted_ spend_ tier STRINGSTRING The customer's predicted spend tier for the next year, with values Low, Medium, and High.
- Anchor to customer_sms_subscription_statuscustomer_
sms_ subscription_ statuscustomer_ sms_ subscription_ status STRINGSTRING The customer's SMS marketing subscription state, with values such as Not subscribed, Pending, Redacted, and Subscribed.
- Anchor to customer_tagcustomer_
tagcustomer_ tag STRINGSTRING Tag associated with the customer
- ARRAY<STRING>ARRAY<STRING>
Set of tags associated with the customer
- Anchor to rfm_grouprfm_
grouprfm_ group STRINGSTRING A customer relationship label based on recency, frequency, and monetary spend. Values include Champions, Loyal, Needs attention, and At risk.
- Anchor to discount_classdiscount_
classdiscount_ class STRINGSTRING What the discount applies to, with values Order, Shipping, and Product.
- Anchor to discount_codediscount_
codediscount_ code STRINGSTRING Promotional code entered by customer or applied automatically to receive the discount
- Anchor to discount_iddiscount_
iddiscount_ id IDENTITYIDENTITY - Anchor to discount_methoddiscount_
methoddiscount_ method STRINGSTRING How the discount was triggered, with values Automatic, Manual, Discount code, and Script.
- Anchor to discount_namediscount_
namediscount_ name STRINGSTRING The code or title used to identify the discount.
- Anchor to discount_shipping_pricediscount_
shipping_ pricediscount_ shipping_ price MONEYMONEY The shipping cost before the shipping discount was applied, in your store's currency.
- Anchor to discount_shipping_titlediscount_
shipping_ titlediscount_ shipping_ title STRINGSTRING Display name of the shipping discount when it was applied
- Anchor to discount_titlediscount_
titlediscount_ title STRINGSTRING Title of the discount when it was applied
- Anchor to discount_typediscount_
typediscount_ type STRINGSTRING Whether the discount reduces the price by a fixed amount or a percentage, with values Fixed amount and Percentage.
- Anchor to discount_valuediscount_
valuediscount_ value MONEYMONEY The amount discounted, in your store's currency.
- Anchor to price_rule_discount_titleprice_
rule_ discount_ titleprice_ rule_ discount_ title STRINGSTRING Title of the discount attached to a price rule when it was applied
- Anchor to price_rule_discount_typeprice_
rule_ discount_ typeprice_ rule_ discount_ type STRINGSTRING The price rule's discount type, with values Fixed amount, Percentage, and App. App is used for discounts created by third-party Shopify apps.
- Anchor to price_rule_discount_valueprice_
rule_ discount_ valueprice_ rule_ discount_ value MONEYMONEY The discount amount based on a price rule, in your store's currency.
- Anchor to price_rule_typeprice_
rule_ typeprice_ rule_ type STRINGSTRING The price rule's discount type and activation method. Values include Fixed amount (code), Percentage (automatic), Shipping (code), and Buy X Get Y (automatic).
- Anchor to product_title_at_time_of_saleproduct_
title_ at_ time_ of_ saleproduct_ title_ at_ time_ of_ sale STRINGSTRING The product name as it appeared when the item was sold.
- Anchor to product_type_at_time_of_saleproduct_
type_ at_ time_ of_ saleproduct_ type_ at_ time_ of_ sale STRINGSTRING The product type or category assigned when the item was sold.
- Anchor to product_variant_compare_at_priceproduct_
variant_ compare_ at_ priceproduct_ variant_ compare_ at_ price MONEYMONEY The compare-at price of the product variant when the item was sold, in your store's currency.
- Anchor to product_variant_priceproduct_
variant_ priceproduct_ variant_ price MONEYMONEY The price of the product variant when the item was sold, in your store's currency.
- Anchor to product_variant_sku_at_time_of_saleproduct_
variant_ sku_ at_ time_ of_ saleproduct_ variant_ sku_ at_ time_ of_ sale STRINGSTRING The SKU of the product variant when the item was sold.
- Anchor to product_variant_title_at_time_of_saleproduct_
variant_ title_ at_ time_ of_ saleproduct_ variant_ title_ at_ time_ of_ sale STRINGSTRING The variant name as it appeared when the item was sold.
- Anchor to product_vendor_at_time_of_saleproduct_
vendor_ at_ time_ of_ saleproduct_ vendor_ at_ time_ of_ sale STRINGSTRING The vendor assigned to the product when the item was sold.
- Anchor to collective_suppliercollective_
suppliercollective_ supplier STRINGSTRING Supplier of the product sourced through Shopify Collective
- Anchor to is_b2b_orderis_
b2b_ orderis_ b2b_ order BOOLEANBOOLEAN Whether the order is a B2B order, with values
trueandfalse.- Anchor to is_canceled_orderis_
canceled_ orderis_ canceled_ order BOOLEANBOOLEAN Whether the order is canceled, with values
trueandfalse.- Anchor to order_checkout_currencyorder_
checkout_ currencyorder_ checkout_ currency STRINGSTRING The currency the buyer saw at checkout when placing the order. Values are currency codes such as USD, CAD, EUR, and GBP.
- Anchor to order_fulfillment_statusorder_
fulfillment_ statusorder_ fulfillment_ status STRINGSTRING The order's fulfillment state, with values Fulfilled, Partial, Restocked, and Unfulfilled.
- Anchor to order_includes_dutiesorder_
includes_ dutiesorder_ includes_ duties BOOLEANBOOLEAN Whether the order includes duties, with values
trueandfalse.- Anchor to order_nameorder_
nameorder_ name STRINGSTRING The name or number of the order as the customer sees it.
- Anchor to order_payment_statusorder_
payment_ statusorder_ payment_ status STRINGSTRING The order's payment state, such as Authorized, Paid, Partially refunded, or Pending.
- Anchor to order_sales_channelorder_
sales_ channelorder_ sales_ channel STRINGSTRING The sales channel where the order was placed, shown as a channel name such as Online Store or POS.
- Anchor to order_sales_channel_idorder_
sales_ channel_ idorder_ sales_ channel_ id IDENTITYIDENTITY - Anchor to is_shop_referral_orderis_
shop_ referral_ orderis_ shop_ referral_ order BOOLEANBOOLEAN Whether the order was referred from the Shop app or shop.app, with values
trueandfalse.- Anchor to order_landing_page_pathorder_
landing_ page_ pathorder_ landing_ page_ path STRINGSTRING Path of the first page of the user session that resulted in the order
- Anchor to order_landing_page_urlorder_
landing_ page_ urlorder_ landing_ page_ url STRINGSTRING First page of the user session that resulted in the order
- Anchor to order_marketing_event_idorder_
marketing_ event_ idorder_ marketing_ event_ id IDENTITYIDENTITY Shopify identifier for the marketing event associated with the order
- Anchor to order_referrer_domainorder_
referrer_ domainorder_ referrer_ domain STRINGSTRING Domain of the site that led to the order
- Anchor to order_referrer_nameorder_
referrer_ nameorder_ referrer_ name STRINGSTRING The readable name of the site that led to the order.
- Anchor to order_referrer_pathorder_
referrer_ pathorder_ referrer_ path STRINGSTRING Path of the site that led to the order
- Anchor to order_referrer_siteorder_
referrer_ siteorder_ referrer_ site STRINGSTRING Site that led to the order
- Anchor to order_referrer_sourceorder_
referrer_ sourceorder_ referrer_ source STRINGSTRING The referrer type that led to the order, such as organic or email.
- Anchor to order_referrer_urlorder_
referrer_ urlorder_ referrer_ url STRINGSTRING External page that referred a customer and led to the order
- Anchor to order_utm_campaignorder_
utm_ campaignorder_ utm_ campaign STRINGSTRING UTM name of the campaign associated with the order
- Anchor to order_utm_contentorder_
utm_ contentorder_ utm_ content STRINGSTRING The UTM content value associated with the order, often used to distinguish ads, links, or content variations.
- Anchor to order_utm_mediumorder_
utm_ mediumorder_ utm_ medium STRINGSTRING The UTM medium associated with the order, such as email, social, or paid search.
- Anchor to order_utm_sourceorder_
utm_ sourceorder_ utm_ source STRINGSTRING The UTM source associated with the order, such as Google, Facebook, or a newsletter.
- Anchor to order_utm_termorder_
utm_ termorder_ utm_ term STRINGSTRING The UTM term associated with the order, often used for paid search keywords or other tracked terms.
- Anchor to number_of_products_bought_togethernumber_
of_ products_ bought_ togethernumber_ of_ products_ bought_ together INTEGERINTEGER Total unique products in the same order
- Anchor to number_of_variants_bought_togethernumber_
of_ variants_ bought_ togethernumber_ of_ variants_ bought_ together INTEGERINTEGER The number of unique product variants in the same order, with each SKU counted a single time.
- Anchor to products_bought_togetherproducts_
bought_ togetherproducts_ bought_ together ARRAY<STRING>ARRAY<STRING> The product names that appear in the same order.
- Anchor to products_bought_together_idsproducts_
bought_ together_ idsproducts_ bought_ together_ ids ARRAY<INTEGER>ARRAY<INTEGER> The Shopify product identifiers for products in the same order.
- Anchor to variants_bought_togethervariants_
bought_ togethervariants_ bought_ together ARRAY<STRING>ARRAY<STRING> The product variant labels that appear in the same order, such as size, color, or style combinations.
- Anchor to company_idcompany_
idcompany_ id IDENTITYIDENTITY - Anchor to company_namecompany_
namecompany_ name STRINGSTRING Name of the company that placed the order
- Anchor to company_location_idcompany_
location_ idcompany_ location_ id IDENTITYIDENTITY - Anchor to company_location_namecompany_
location_ namecompany_ location_ name STRINGSTRING The company location or branch that placed the order
- Anchor to referring_channelreferring_
channelreferring_ channel STRINGSTRING Marketing channel that referred the customer to place the order
- Anchor to referring_mediumreferring_
mediumreferring_ medium STRINGSTRING The marketing medium that referred the customer to place the order, such as email, social, or search.
- Anchor to referring_platformreferring_
platformreferring_ platform STRINGSTRING The marketing platform that referred the customer to place the order, such as Google, Facebook, or Instagram.
- Anchor to traffic_typetraffic_
typetraffic_ type STRINGSTRING The type of traffic that led to the order, such as organic, paid, or direct.
- Anchor to order_marketing_event_targetorder_
marketing_ event_ targetorder_ marketing_ event_ target STRINGSTRING The platform or channel where the marketing activity was deployed, such as Email, Facebook, Google, or Instagram.
- Anchor to order_marketing_event_typeorder_
marketing_ event_ typeorder_ marketing_ event_ type STRINGSTRING The type of marketing activity that led to the order, such as Ad, Affiliate, Newsletter, or Retargeting. PLA means Product Listing Ads, and SEO means Search Engine Optimization.
- Anchor to marketmarketmarketSTRINGSTRING
Market you've defined in Shopify, like a geographical market or customer group
- Anchor to marketsmarketsmarketsARRAY<STRING>ARRAY<STRING>
Markets or customer segments associated with the order
- Anchor to order_cancellation_reasonorder_
cancellation_ reasonorder_ cancellation_ reason STRINGSTRING The reason specified for the order cancellation, such as Customer, Other, Fraud, or Inventory.
- Anchor to order_risk_levelorder_
risk_ levelorder_ risk_ level STRINGSTRING The fraud risk level Shopify assigned to the order, with values Low, Medium, High, None, and Pending.
- Anchor to order_is_shopify_protect_coveredorder_
is_ shopify_ protect_ coveredorder_ is_ shopify_ protect_ covered BOOLEANBOOLEAN Whether the order has met Shopify Protect fulfillment requirements, including proper shipping and tracking, with values
trueandfalse.- Anchor to order_is_shopify_protect_eligibleorder_
is_ shopify_ protect_ eligibleorder_ is_ shopify_ protect_ eligible BOOLEANBOOLEAN Whether the order qualifies for Shopify Protect, with values
trueandfalse.- Anchor to order_is_shopify_protect_protectedorder_
is_ shopify_ protect_ protectedorder_ is_ shopify_ protect_ protected BOOLEANBOOLEAN Whether the order has full Shopify Protect coverage against fraud, with values
trueandfalse.- Anchor to order_tagorder_
tagorder_ tag STRINGSTRING Tag associated with the order
- ARRAY<STRING>ARRAY<STRING>
Set of tags associated with the order
- Anchor to rollout_idrollout_
idrollout_ id IDENTITYIDENTITY Unique identifier for the rollout or feature flag exposed to the order
- Anchor to rollout_idsrollout_
idsrollout_ ids ARRAY<INTEGER>ARRAY<INTEGER> All rollout or feature flag identifiers exposed to the order.
- Anchor to rollout_treatment_idrollout_
treatment_ idrollout_ treatment_ id IDENTITYIDENTITY Unique identifier for the specific treatment exposed to the order
- Anchor to rollout_treatment_idsrollout_
treatment_ idsrollout_ treatment_ ids ARRAY<INTEGER>ARRAY<INTEGER> Array of all treatment identifiers exposed to the order
- Anchor to agentic_referring_channelagentic_
referring_ channelagentic_ referring_ channel STRINGSTRING The AI agent or assistant that referred the session to your online store, with values ChatGPT, Google AI Mode and Gemini, Microsoft Copilot, and Shop.
- Anchor to channel_handlechannel_
handlechannel_ handle STRINGSTRING Name of the marketing channel or platform that drove the marketing engagement
- Anchor to marketing_activity_idmarketing_
activity_ idmarketing_ activity_ id IDENTITYIDENTITY - Anchor to marketing_activity_statusmarketing_
activity_ statusmarketing_ activity_ status STRINGSTRING Current status of the marketing activity (such as Active or Paused)
- Anchor to marketing_activity_titlemarketing_
activity_ titlemarketing_ activity_ title STRINGSTRING Name of the marketing activity
- Anchor to marketing_activity_url_parameter_keymarketing_
activity_ url_ parameter_ keymarketing_ activity_ url_ parameter_ key STRINGSTRING URL parameter key for the marketing activity
- Anchor to marketing_activity_url_parameter_valuemarketing_
activity_ url_ parameter_ valuemarketing_ activity_ url_ parameter_ value STRINGSTRING URL parameter value for the marketing activity
- Anchor to marketing_automation_idmarketing_
automation_ idmarketing_ automation_ id IDENTITYIDENTITY Unique ID that Shopify uses to identify the marketing automation
- Anchor to marketing_delivery_channelmarketing_
delivery_ channelmarketing_ delivery_ channel STRINGSTRING Channel through which the marketing activity is delivered
- Anchor to marketing_event_idmarketing_
event_ idmarketing_ event_ id IDENTITYIDENTITY Unique identifier for the associated marketing event
- Anchor to marketing_platformmarketing_
platformmarketing_ platform STRINGSTRING The marketing platform that created the marketing activity, shown as a platform name.
- Anchor to page_hostpage_
hostpage_ host STRINGSTRING The host name of the session landing page.
- Anchor to page_pathpage_
pathpage_ path STRINGSTRING The path of the session landing page.
- Anchor to page_urlpage_
urlpage_ url STRINGSTRING The URL of the first page viewed in the session.
- Anchor to referrer_urlreferrer_
urlreferrer_ url STRINGSTRING External page that led to an online store session
- Anchor to utm_campaignutm_
campaignutm_ campaign STRINGSTRING UTM name of the campaign associated with the session
- Anchor to utm_contentutm_
contentutm_ content STRINGSTRING The UTM content value associated with the session, often used to distinguish ads, links, or content variations.
- Anchor to utm_mediumutm_
mediumutm_ medium STRINGSTRING The UTM medium associated with the session, such as email, social, or paid search.
- Anchor to utm_sourceutm_
sourceutm_ source STRINGSTRING The UTM source associated with the session, such as Google, Facebook, or a newsletter.
- Anchor to utm_termutm_
termutm_ term STRINGSTRING The UTM term associated with the session, often used for paid search keywords or other tracked terms.
- Anchor to pos_location_namepos_
location_ namepos_ location_ name STRINGSTRING Name of your physical retail location
- Anchor to product_statusproduct_
statusproduct_ status STRINGSTRING The product's current publishing state, with values Active, Archived, Draft, Suspended, and Unlisted.
- Anchor to product_titleproduct_
titleproduct_ title STRINGSTRING Display name of the product that your customers see
- Anchor to product_typeproduct_
typeproduct_ type STRINGSTRING Type (category) that you've assigned to the product
- Anchor to product_vendorproduct_
vendorproduct_ vendor STRINGSTRING Vendor of the product
- Anchor to product_collectionproduct_
collectionproduct_ collection STRINGSTRING Collection associated with the product
- Anchor to product_collectionsproduct_
collectionsproduct_ collections ARRAY<STRING>ARRAY<STRING> Set of collections associated with the product
- Anchor to app_product_creationapp_
product_ creationapp_ product_ creation STRINGSTRING The app that created the product, shown as an app name.
- Anchor to product_tagproduct_
tagproduct_ tag STRINGSTRING Tag associated with the product
- ARRAY<STRING>ARRAY<STRING>
Set of tags associated with the product
- Anchor to product_variant_abc_gradeproduct_
variant_ abc_ gradeproduct_ variant_ abc_ grade STRINGSTRING The ABC grade assigned to the product variant based on its share of revenue. A-grade variants account for about 80% of revenue, B-grade for 15%, and C-grade for 5%.
- Anchor to product_variant_skuproduct_
variant_ skuproduct_ variant_ sku STRINGSTRING SKU of the product variant
- Anchor to product_variant_titleproduct_
variant_ titleproduct_ variant_ title STRINGSTRING Display name of the product variant
- Anchor to is_unverified_returnis_
unverified_ returnis_ unverified_ return BOOLEANBOOLEAN Whether the return is unverified, with values
trueandfalse.- Anchor to return_reasonreturn_
reasonreturn_ reason STRINGSTRING The reason the item was returned, such as Changed my mind, Damaged or defective, Too big, or Received the wrong item.
- Anchor to bundle_product_idbundle_
product_ idbundle_ product_ id IDENTITYIDENTITY - Anchor to bundle_titlebundle_
titlebundle_ title STRINGSTRING The bundle name as it appeared when the bundle was created.
- Anchor to line_item_is_bundleline_
item_ is_ bundleline_ item_ is_ bundle BOOLEANBOOLEAN Whether the line item is a bundle, with values
trueandfalse.- Anchor to shipping_cityshipping_
cityshipping_ city STRINGSTRING City of the shipping address
- Anchor to shipping_companyshipping_
companyshipping_ company STRINGSTRING Company of the shipping address
- Anchor to shipping_countryshipping_
countryshipping_ country STRINGSTRING Country of the shipping address (e.g., United States, Canada)
- Anchor to shipping_postal_codeshipping_
postal_ codeshipping_ postal_ code STRINGSTRING Postal code of the shipping address
- Anchor to shipping_regionshipping_
regionshipping_ region STRINGSTRING State or province of the shipping address (e.g., California, Ontario)
- Anchor to staff_member_namestaff_
member_ namestaff_ member_ name STRINGSTRING Name of the staff member associated with the order
- BOOLEANBOOLEANdeprecateddeprecated
Label specifying whether the transaction reverses a previous sale
- Anchor to order_or_returnorder_
or_ returnorder_ or_ return STRINGSTRINGdeprecateddeprecated Label specifying whether the transaction adds or removes value from sales
STRING
A sequence of characters representing text data.
IDENTITY
A unique identifier for a Shopify resource such as a customer, product, or order.
BOOLEAN
A true or false value representing binary states.
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.
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.
SECOND_TIMESTAMP
A timestamp truncated to second precision.
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.
ARRAY
A list of values. The element type appears inside angle brackets, such as ARRAY<STRING>.
Anchor to MATCHES expressionsMATCHES expressions
Use these expressions inside a MATCHES filter to keep sales rows that have at least one related record matching the parameters. Each parameter filters on a dimension or metric of the related records.
- Anchor to customer.orders_placedcustomer.
orders_ placedcustomer. orders_ placed SalesCustomerOrdersPlacedConditionsSalesCustomerOrdersPlacedConditions Orders the customer placed, filterable by order date, source app, location, order count, and spend.
- Anchor to customer.products_purchasedcustomer.
products_ purchasedcustomer. products_ purchased SalesCustomerProductsPurchasedConditionsSalesCustomerProductsPurchasedConditions Products the customer bought, filterable by product ID, purchase date, quantity per order, and total quantity.
- Anchor to customer.shopify_email.bouncedcustomer.
shopify_ email. bouncedcustomer. shopify_ email. bounced SalesCustomerShopifyEmailBouncedConditionsSalesCustomerShopifyEmailBouncedConditions Emails that bounced for the customer, filterable by marketing activity, bounce date, and bounce count.
- Anchor to customer.shopify_email.clickedcustomer.
shopify_ email. clickedcustomer. shopify_ email. clicked SalesCustomerShopifyEmailClickedConditionsSalesCustomerShopifyEmailClickedConditions Emails the customer clicked, filterable by marketing activity, click date, and click count.
- Anchor to customer.shopify_email.deliveredcustomer.
shopify_ email. deliveredcustomer. shopify_ email. delivered SalesCustomerShopifyEmailDeliveredConditionsSalesCustomerShopifyEmailDeliveredConditions Emails delivered to the customer, filterable by marketing activity, delivery date, and delivery count.
- Anchor to customer.shopify_email.marked_as_spamcustomer.
shopify_ email. marked_ as_ spamcustomer. shopify_ email. marked_ as_ spam SalesCustomerShopifyEmailMarkedAsSpamConditionsSalesCustomerShopifyEmailMarkedAsSpamConditions Emails the customer marked as spam, filterable by marketing activity, spam-report date, and spam-report count.
- Anchor to customer.shopify_email.openedcustomer.
shopify_ email. openedcustomer. shopify_ email. opened SalesCustomerShopifyEmailOpenedConditionsSalesCustomerShopifyEmailOpenedConditions Emails the customer opened, filterable by marketing activity, open date, and open count.
- Anchor to customer.shopify_email.unsubscribedcustomer.
shopify_ email. unsubscribedcustomer. shopify_ email. unsubscribed SalesCustomerShopifyEmailUnsubscribedConditionsSalesCustomerShopifyEmailUnsubscribedConditions Email unsubscribe events for the customer, filterable by marketing activity, unsubscribe date, and unsubscribe count.
- Anchor to customer.store_credit_accountscustomer.
store_ credit_ accountscustomer. store_ credit_ accounts SalesCustomerStoreCreditAccountsConditionsSalesCustomerStoreCreditAccountsConditions Store credit accounts for the customer, filterable by balance, currency, expiry date, and most recent credit date.
- Anchor to customer.storefront_event.collection_viewedcustomer.
storefront_ event. collection_ viewedcustomer. storefront_ event. collection_ viewed SalesCustomerStorefrontEventCollectionViewedConditionsSalesCustomerStorefrontEventCollectionViewedConditions Collection pages the customer viewed, filterable by collection ID, view date, and view count.
- Anchor to customer.storefront_event.product_viewedcustomer.
storefront_ event. product_ viewedcustomer. storefront_ event. product_ viewed SalesCustomerStorefrontEventProductViewedConditionsSalesCustomerStorefrontEventProductViewedConditions Product pages the customer viewed, filterable by product ID, view date, and view count.
- Anchor to customer.within_distancecustomer.
within_ distancecustomer. within_ distance SalesCustomerWithinDistanceConditionsSalesCustomerWithinDistanceConditions Customers with an address within a distance of a location, filterable by coordinates and radius.
SalesCustomerOrdersPlacedConditions
Fields you can use inside `customer.orders_placed MATCHES (...)` when querying `FROM sales`.
- amount
Filter. Amount spent per order.
MONEY - app_id
Filter. App ID associated with the order.
IDENTITY - date
Filter. Date the order was placed.
TIMESTAMP - location_id
Filter. Location ID associated with the order.
IDENTITY - count
Metric. Number of orders placed.
INTEGER - sum_amount
Metric. Amount spent in the date range.
MONEY
TIMESTAMP
A full-precision timestamp including date and time.
SalesCustomerProductsPurchasedConditions
Fields you can use inside `customer.products_purchased MATCHES (...)` when querying `FROM sales`.
- date
Filter. Date the product(s) were purchased.
TIMESTAMP - id
Filter. Product IDs.
IDENTITY - quantity
Filter. Number purchased per order.
INTEGER - sum_quantity
Metric. Number purchased within the date range.
INTEGER
SalesCustomerShopifyEmailBouncedConditions
Fields you can use inside `customer.shopify_email.bounced MATCHES (...)` when querying `FROM sales`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was bounced.
TIMESTAMP - count
Metric. Exact number of times an email was bounced.
INTEGER
SalesCustomerShopifyEmailClickedConditions
Fields you can use inside `customer.shopify_email.clicked MATCHES (...)` when querying `FROM sales`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was clicked.
TIMESTAMP - count
Metric. Exact number of times an email was clicked.
INTEGER
SalesCustomerShopifyEmailDeliveredConditions
Fields you can use inside `customer.shopify_email.delivered MATCHES (...)` when querying `FROM sales`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was delivered.
TIMESTAMP - count
Metric. Exact number of times an email was delivered.
INTEGER
SalesCustomerShopifyEmailMarkedAsSpamConditions
Fields you can use inside `customer.shopify_email.marked_as_spam MATCHES (...)` when querying `FROM sales`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was marked as spam.
TIMESTAMP - count
Metric. Exact number of times an email was marked as spam.
INTEGER
SalesCustomerShopifyEmailOpenedConditions
Fields you can use inside `customer.shopify_email.opened MATCHES (...)` when querying `FROM sales`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was opened.
TIMESTAMP - count
Metric. Exact number of times an email was opened.
INTEGER
SalesCustomerShopifyEmailUnsubscribedConditions
Fields you can use inside `customer.shopify_email.unsubscribed MATCHES (...)` when querying `FROM sales`.
- activity_id
Filter. Marketing activity ID of the email campaign.
IDENTITY - date
Filter. Date on which the email was unsubscribed.
TIMESTAMP - count
Metric. Exact number of times an email was unsubscribed.
INTEGER
SalesCustomerStoreCreditAccountsConditions
Fields you can use inside `customer.store_credit_accounts MATCHES (...)` when querying `FROM sales`.
- balance
Filter. Amount available to spend.
FLOAT - currency
Filter. Currency associated with the account.
STRING - last_credit_date
Filter. Date when credits were last added.
TIMESTAMP - next_expiry_date
Filter. Date when credits expire.
TIMESTAMP
FLOAT
A floating-point number used for measurements, rates, and other continuous numeric values.
SalesCustomerStorefrontEventCollectionViewedConditions
Fields you can use inside `customer.storefront_event.collection_viewed MATCHES (...)` when querying `FROM sales`.
- date
Filter. Date collection was viewed.
TIMESTAMP - id
Filter. Collection ID.
IDENTITY - count
Metric. Times collection was viewed.
INTEGER
SalesCustomerStorefrontEventProductViewedConditions
Fields you can use inside `customer.storefront_event.product_viewed MATCHES (...)` when querying `FROM sales`.
- date
Filter. Date product was viewed.
TIMESTAMP - id
Filter. Product ID.
IDENTITY - count
Metric. Times product was viewed.
INTEGER
SalesCustomerWithinDistanceConditions
Fields you can use inside `customer.within_distance MATCHES (...)` when querying `FROM sales`.
- coordinates
Filter. Latitude and longitude of location. Required.
GEO_COORDINATE - distance_km
Filter. Maximum distance from location, in kilometers. Required: provide one of the `distance_km/mi` group.
FLOAT - distance_mi
Filter. Maximum distance from location, in miles. Required: provide one of the `distance_km/mi` group.
FLOAT
GEO_COORDINATE
A geographic coordinate value.
profitability: Pairs revenue with landed cost for margin and profit per order, not just top-line sales.payments: Drops to the transaction level for payout reconciliation, payment method comparison, and fee analysis.campaign_sales: Attributes sales back to marketing campaigns to measure acquisition spend against revenue.