Example
FROM sales
SHOW orders, gross_sales
GROUP BY sales_channel
SINCE startOfMonth(-1m) UNTIL today
ORDER BY orders DESC
Metrics
| Metric | Type | Description |
|---|---|---|
orders | Number | Orders placed in the period. Gift-card-only orders are not counted, as in Shopify’s reports. |
gross_sales | Currency | Product sales before discounts, returns, shipping and taxes. |
discounts | Currency | Discounts applied to product sales, as a negative amount. |
sales_reversals | Currency | Returned and refunded products, and return adjustments, as a negative amount on the day of the return. |
net_sales | Currency | Gross sales minus discounts and returns, before shipping and taxes. |
shipping_charges | Currency | Shipping charged to customers, less shipping refunds, before taxes. |
taxes | Currency | Taxes on sales, shipping and fees, less refunded taxes. |
total_sales | Currency | Net sales plus shipping, fees, duties and taxes. |
average_order_value | Currency | Gross sales minus discounts, per order. |
quantity_ordered | Number | Units ordered, gift cards included. An exchange’s new items count in net items sold, not here. |
quantity_returned | Number | Product units returned or refunded. |
cost_of_goods_sold | Currency | The cost of the products sold, as Shopify recorded it at each sale, less the cost of returns. |
net_sales_with_cost_recorded | Currency | Product net sales where a cost of goods sold is recorded. |
net_sales_without_cost_recorded | Currency | Product net sales where no cost of goods sold is recorded. |
gross_profit | Currency | Net sales minus cost of goods sold, counting only products with a recorded cost (Shopify’s). Empty where no product has one. |
gross_margin | Percent | Gross profit as a share of net sales, for products with a recorded cost (Shopify’s). |
net_items_sold | Number | Units ordered and exchanged, minus units returned. |
duties | Currency | Customs duties and import taxes charged on sales. |
additional_fees | Currency | Additional fees charged on sales, such as an environmental fee. |
return_fees | Currency | Fees charged to customers for returns. |
tips | Currency | Tips customers added to their orders. |
gift_card_gross_sales | Currency | Gift cards sold, before discounts. |
gift_card_discounts | Currency | Discounts on gift cards sold, as a negative amount. |
gift_card_net_sales | Currency | Gift cards sold, after discounts. |
gross_shipping_charges | Currency | Shipping charged on orders, before shipping discounts and taxes. Shipping refunds aren’t taken off. |
shipping_charge_discounts | Currency | Discounts on shipping, as a negative amount. |
shipping_charge_taxes | Currency | Taxes on shipping, less refunded shipping taxes. |
total_shipping_charges | Currency | Shipping charges after discounts and refunds, with their taxes. |
gross_sales_reversals | Currency | Products removed from orders by returns, refunds and edits, before discounts, as a negative amount. |
discount_reversals | Currency | Discounts no longer applied once discounted products are removed from orders. |
net_sales_reversals | Currency | Products removed from orders after discounts, before taxes. Gross sales reversals plus discount reversals. |
shipping_reversals | Currency | Shipping charges removed from orders, as a negative amount. |
tax_reversals | Currency | Taxes removed from orders, as a negative amount. |
total_sales_reversals | Currency | Everything removed from orders: net sales reversals, shipping reversals and tax reversals, with return fees added back. |
reversed_quantity | Number | Units removed from orders by returns, refunds and edits, as a negative number. |
reversed_quantity_rate | Percent | Units reversed as a share of units ordered and exchanged. |
line_item_discounts | Currency | Discounts applied to specific line items, as a negative amount. |
order_level_discounts | Currency | Discounts applied to the whole order, spread over its lines, as a negative amount. |
acceptable_fraud_risk_rate | Percent | The share of orders Shopify’s fraud analysis didn’t mark as high risk. |
high_fraud_risk_rate | Percent | The share of orders Shopify’s fraud analysis marked as high risk. |
quantity_ordered_per_order | Number | The average number of units ordered per order. |
customers | Number | Customers who placed an order, each counted once. |
new_customers | Number | Customers whose order here was their first. |
returning_customers | Number | Customers who placed an order here after an earlier one. |
returning_customer_rate | Percent | Returning customers as a share of customers. |
orders_first_time | Number | Orders that were the customer’s first. |
orders_returning | Number | Orders from customers who had ordered before. |
total_sales_first_time | Currency | Total sales on customers’ first orders. |
total_sales_returning | Currency | Total sales on orders from customers who had ordered before. |
amount_spent_per_customer | Currency | The average all-time spend of the customers in the results. |
number_of_orders_per_customer | Number | The average all-time number of orders of the customers in the results. |
cohort_retention_rate | Percent | Customers who ordered, as a share of everyone who first ordered in their cohort month. Group by customer cohort month and months since first purchase for a retention grid. |
sales_per_cohort_customer | Currency | Total sales divided by everyone who first ordered in the cohort month: what each customer the cohort won is worth. Group by customer cohort month. |
rate_of_staff_assisted_sales | Percent | Net sales made with a staff member, as a share of net sales. |
gross_profit_after_fees | Currency | Gross profit minus the order’s payment fees, shared across its products by their sales. Counts products with a recorded cost, as gross profit does. |
Dimensions
| Dimension | Description |
|---|---|
hour_of_day | The hour of day the sale happened, from 0 to 23. |
day_of_week | The day of week the sale happened, Monday through Sunday. |
product_title | Product title (variants roll up). Shipping, fees and adjustments have none. |
product_variant_title | Product variant: splits a product into its variants. |
product_variant_sku | Variant SKU. |
product_vendor | Product vendor. |
product_type | Shopify product type. |
product_tag | Product tag. A product with several tags counts under each, so totals across tags overlap. |
product_collection | Collection the product is in. A product in several collections counts under each, so totals across collections overlap. |
product_status | The product’s current status: Active, Archived, Draft, Suspended or Unlisted. |
product_variant_price | The variant’s price when it was sold. |
product_variant_compare_at_price | The variant’s compare-at price when it was sold. Empty for sales before Queryful was installed. |
product_title_at_time_of_sale | The product’s title when it was sold. |
product_variant_title_at_time_of_sale | The variant’s title when it was sold. |
product_variant_sku_at_time_of_sale | The variant’s SKU when it was sold. |
product_vendor_at_time_of_sale | The product’s vendor when it was sold. |
product_type_at_time_of_sale | The product’s type when it was sold. |
sales_channel | The sales channel the order came through, such as Online Store or Point of Sale. |
order_source | Where the order was placed: web, pos, or a channel app. |
discount_code | The code entered, if any. An order with several discounts counts under each. |
order_tag | Order tag. An order with several tags counts under each, so totals across tags overlap. |
line_type | What was sold: product, shipping, gift_card, tip, duty, additional_fee, return_fee or sale_adjustment. |
sale_kind | Whether the sale came from the order itself, an edit, a return or a refund. |
order_name | Order name, such as #1001. |
sale_id | The sale’s ID: one line of an order, edit, return or refund. |
is_sales_reversal | Whether the sale reverses an earlier one: a return, refund or edit taking something off, or a return fee. |
order_or_sales_reversal | order for sales that add to orders, reversal for those taking something off. |
excludes_post_order_adjustments | Whether the sale is part of the order as placed, before any edit, return or refund. |
is_discounted_sale | Whether the sale had a discount applied. |
cost_is_recorded | Whether a cost of goods sold is recorded for the product sale. |
order_cancellation_reason | Why the order was cancelled: Customer, Declined, Fraud, Inventory, Staff or Other. Orders not cancelled have none. |
order_checkout_currency | The currency the customer paid in at checkout, such as USD or EUR. |
products_bought_together | The products on the same order, by name. Shipping and fees count with their order. |
number_of_products_bought_together | How many different products are on the same order. |
new_or_returning_customer | New when the order was the customer’s first, Returning when they had ordered before. Empty without a customer. |
months_since_first_purchase | Whole months between the customer’s first order and this one. |
weeks_since_first_purchase | Whole weeks between the week of the customer’s first order and this one’s. |
quarters_since_first_purchase | Whole quarters between the customer’s first order and this one. |
is_b2b_order | Whether the order was placed for a B2B company. |
is_pos_sale | Whether the sale was made through the Point of Sale channel. |
pos_location_name | The point of sale location the sale was made at. |
staff_member_name | The staff member on the order. |
assisting_staff_member_name | The staff member who assisted the sale at the point of sale. |
subscription_or_one_time | Whether the sale was a subscription purchase or one-time. |
customer_id | The customer’s Shopify ID. |
customer_name | The customer’s full name. |
customer_email | The customer’s email address. |
customer_email_domain | The part of the customer’s email after the @, such as gmail.com. |
customer_country | The country of the customer’s default address. |
customer_region | The state or province of the customer’s default address, such as US-CA. |
customer_city | The city of the customer’s default address, with its country and region (GB-ENG-London). |
customer_tag | Customer tag. A customer with several tags counts under each, so totals across tags overlap. |
customer_language | The customer’s language. |
customer_account_status | The customer’s account state: DECLINED, DISABLED, ENABLED or INVITED. |
customer_email_subscription_status | The customer’s email marketing state, such as SUBSCRIBED or NOT_SUBSCRIBED. |
customer_sms_subscription_status | The customer’s SMS marketing state, such as SUBSCRIBED or NOT_SUBSCRIBED. |
customer_product_subscription_status | Whether the customer has product subscriptions, such as ACTIVE or NEVER_SUBSCRIBED. |
customer_number_of_orders | The number of orders the customer has placed, all time. |
customer_amount_spent | The customer’s all-time spend, in your store’s currency. |
customer_added_date | The day the customer was added, in your store’s timezone. |
customer_first_order_date | The day the customer placed their first order, in your store’s timezone. |
customer_last_order_date | The day the customer most recently placed an order, in your store’s timezone. |
customer_cohort_month | The month of the customer’s first order. |
customer_cohort_quarter | The quarter of the customer’s first order. |
customer_cohort_week | The week of the customer’s first order. |
customer_countries | Every country in the customer’s addresses, as codes such as GB, US. |
customer_regions | Every state or province in the customer’s addresses, such as US-CA, US-NY. |
customer_cities | Every city in the customer’s addresses, with its country and region. |
first_order_sales_channel | The sales channel of the customer’s first order. |
first_order_product | A product on the customer’s first order. A first order with several products counts under each, so totals across products overlap. |
second_order_product | A product on the customer’s second order (None without one). A second order with several products counts under each. |
second_order_month | The month of the customer’s second order. |
first_order_has_subscription | Whether the customer’s first order included a subscription purchase. |
first_order_utm_source | The UTM source of the visit that led to the customer’s first order. |
first_order_utm_medium | The UTM medium of the visit that led to the customer’s first order. |
first_order_utm_campaign | The UTM campaign of the visit that led to the customer’s first order. |
first_order_landing_page_url | The first page of the visit that led to the customer’s first order. |
first_order_referrer_url | The site that sent the customer on the visit that led to their first order. |
first_order_delivery | How the customer’s first order arrived: on_time, late, no_promise, not_delivered or not_fulfilled. Ours: set it beside repeat customer rate to see whether late deliveries cost repeat custom. |
customer_churn_risk | Where a repeat customer stands against their usual gap between orders: on_track, due (past it) or overdue (past twice it). one_time for a single order. |
customer_expected_next_order_date | The customer’s last order date plus their usual gap between orders. Empty for one-time customers. |
rfm_group | Shopify’s customer group by recency, frequency and spend, such as champions, loyal or at_risk. |
predicted_spend_tier | Shopify’s predicted spend for the customer over the next year: low, medium or high. |
market | The market the order belongs to, as Shopify reports it. |
company_name | The B2B company that placed the order. |
company_location_name | The B2B company location the order was for. |
app_name | The app or channel that created the order, such as Online Store, Point of Sale or Draft Orders. |
order_number | The order’s number without its prefix, such as 1001. |
order_confirmation_number | The code the customer sees on their order confirmation. |
order_customer_language | The language the customer placed the order in, such as en-GB. |
order_accepts_marketing | Whether the customer agreed to marketing when they ordered: true or false. |
order_return_status | Where the order’s returns stand: No return, Return requested, In progress, Returned and so on. |
order_edit_request_status | Whether the customer asked to change the order, and where that stands. |
order_tax_exempt | Whether the order was exempt from tax: true or false. |
order_duties_included | Whether duties were included in the prices: true or false. |
order_requires_shipping | Whether anything on the order needs shipping: true or false. |
order_fully_paid | Whether the order is paid in full: true or false. |
order_confirmed | Whether the order is confirmed (stock reserved): true or false. |
merchant_of_record_app | The app that sold the order as merchant of record, if not the store itself. |
order_product_network | Whether the order came through Shopify’s product network: true or false. |
order_source_identifier | The id the channel that created the order gave it, such as a POS device’s reference. |
order_customer_currency | The currency the customer paid in. |
last_visit_landing_page | The page the visit the customer ordered in started on. |
last_visit_referrer_url | The page that sent the customer on the visit they ordered in. |
last_visit_utm_source | UTM source of the visit the customer ordered in. |
last_visit_utm_medium | UTM medium of the visit the customer ordered in. |
last_visit_utm_campaign | UTM campaign of the visit the customer ordered in. |
last_visit_utm_content | UTM content of the visit the customer ordered in. |
last_visit_utm_term | UTM term of the visit the customer ordered in. |
first_visit_referral_code | The referral code on the customer’s first visit. |
last_visit_referral_code | The referral code on the visit the customer ordered in. |
first_visit_source_description | Shopify’s description of where the first visit came from. |
last_visit_source_description | Shopify’s description of where the visit the customer ordered in came from. |
first_visit_marketing_event | The marketing event (campaign) behind the customer’s first visit. |
last_visit_marketing_event | The marketing event (campaign) behind the visit the customer ordered in. |
po_number | The purchase order number on the order. |
order_tax_id | The tax ID the buyer gave at checkout, such as a VAT number. |
business_entity | The legal entity that sold the order (stores selling as more than one). |
sales_sub_channel | The part of the channel the order came from, such as Instagram within Facebook & Instagram. |
is_marketplace_order | Whether the order came from a marketplace channel: true or false. |
taxes_included | Whether the order’s prices include tax: true or false. |
order_edited | Whether the order was edited after it was placed: true or false. |
order_closed | Whether the order is closed (archived): true or false. |
shipping_country | The country the order ships to. |
shipping_region | The state or province the order ships to. |
shipping_city | The city the order ships to. |
shipping_postcode | The postcode the order ships to. |
shipping_company | The company in the shipping address. |
shipping_address | The first line of the shipping address. |
billing_country | The country in the billing address. |
billing_region | The state or province in the billing address. |
billing_city | The city in the billing address. |
billing_postcode | The postcode in the billing address. |
billing_company | The company in the billing address. |
order_risk_level | The fraud risk level Shopify assigned to the order: High, Medium, Low, None or Pending. |
order_risk_recommendation | What Shopify’s fraud analysis recommends: Accept, Investigate, Cancel or None. |
order_is_shopify_protect_protected | Whether Shopify Protect covered the order against fraud: true or false. |
order_is_shopify_protect_covered | Whether the order met Shopify Protect’s fulfilment requirements, with proper shipping and tracking: true or false. |
order_is_shopify_protect_eligible | Whether the order was eligible for Shopify Protect: true or false. |
shipping_method | The shipping method the customer chose, as it reads at checkout. |
shipping_method_source | Where the shipping rate came from: shopify, or the carrier or app that calculated it. |
days_to_conversion | Days between the customer’s first visit and the order. |
sessions_before_order | The visits Shopify recorded on the way to the order. |
first_visit_source | Where the customer’s first visit came from, such as google or an email. |
first_visit_source_type | The kind of source of the first visit: search, social, email, direct and so on. |
first_visit_date | The day of the customer’s first visit before the order, in the store’s timezone. |
last_visit_source | Where the visit the customer ordered in came from, such as google or an email. |
last_visit_source_type | The kind of source of the visit the customer ordered in: search, social, email, direct and so on. |
customer_order_index | Which of the customer’s orders this is: 1 for their first, 2 for their second and so on. |
payment_terms | The order’s payment terms, such as Net 30 or Due on fulfillment. |
payment_due_date | When payment for the order falls due, in the store’s timezone. |
payment_overdue | Whether the order’s payment is past its due date and not yet paid: true or false. |
discount_names | Every discount on the order by name, automatic ones included, comma separated. |
order_referrer_source | The kind of site that referred the order: search, social, email, direct and so on. |
order_referrer_name | The site that referred the order, such as Google or Instagram. |
is_shop_referral_order | Whether the Shop app referred the order: true or false. |
traffic_type | How Shopify classes the visit the order is credited to: paid, organic, direct or unknown. |
referring_channel | The channel Shopify credits the order to, such as google, klaviyo or direct. |
referring_medium | The kind of channel Shopify credits the order to: search, email, sms, social and so on. |
marketing_channel | The marketing channel Shopify credits the order to, such as google_ads or meta_ads. |
marketing_platform | The platform behind the channel Shopify credits the order to, such as google or meta. |
agentic_sales_channel | The AI agent the order came through, if any. |
customer_segment | Each segment the customer is in. A customer in several counts under each, so totals overlap. |
selling_plan | The subscription, pre-order or try-before-you-buy plan the item was sold on. |
selling_plan_group | The group of plans the item’s plan belongs to, such as Subscribe and save. |
selling_plan_category | Subscription, Pre order, Try before you buy, or None for a one-time purchase. |
bundle_title | The bundle the item was sold in. Items sold on their own show None. |
line_item_is_bundle | Whether the item was sold as part of a bundle: true or false. |
is_bundle_component | Whether the item was sold as part of a bundle: true or false. |
discount_name | The code or title that identifies the discount. An order with several discounts counts under each. |
discount_title | The discount’s title when it was applied. An order with several discounts counts under each. |
discount_method | How the discount was applied: Automatic, Manual, Discount code or Script. An order with several discounts counts under each. |
discount_class | What it applied to: Order, Product or Shipping. An order with several discounts counts under each. |
discount_type | Fixed amount or Percentage. An order with several discounts counts under each. |
Filters
| Filter | Type | Description |
|---|---|---|
hour_of_day | Text | The hour of day the sale happened, from 0 to 23. |
product_variant_price | Number | The variant’s price when it was sold. |
product_variant_compare_at_price | Number | The variant’s compare-at price when it was sold. Empty for sales before Queryful was installed. |
sale_kind | Text | Whether the sale came from the order itself, an edit, a return or a refund. |
is_sales_reversal | Yes or no | Whether the sale reverses an earlier one: a return, refund or edit taking something off, or a return fee. |
order_or_sales_reversal | Text | order for sales that add to orders, reversal for those taking something off. |
excludes_post_order_adjustments | Yes or no | Whether the sale is part of the order as placed, before any edit, return or refund. |
is_discounted_sale | Yes or no | Whether the sale had a discount applied. |
cost_is_recorded | Yes or no | Whether a cost of goods sold is recorded for the product sale. |
order_checkout_currency | Text | The currency the customer paid in at checkout, such as USD or EUR. |
products_bought_together | Text | The products on the same order, by name. Shipping and fees count with their order. |
number_of_products_bought_together | Number | How many different products are on the same order. |
new_or_returning_customer | Text | New when the order was the customer’s first, Returning when they had ordered before. Empty without a customer. |
months_since_first_purchase | Number | Whole months between the customer’s first order and this one. |
weeks_since_first_purchase | Number | Whole weeks between the week of the customer’s first order and this one’s. |
quarters_since_first_purchase | Number | Whole quarters between the customer’s first order and this one. |
is_b2b_order | Yes or no | Whether the order was placed for a B2B company. |
is_pos_sale | Yes or no | Whether the sale was made through the Point of Sale channel. |
pos_location_name | Text | The point of sale location the sale was made at. |
staff_member_name | Text | The staff member on the order. |
assisting_staff_member_name | Text | The staff member who assisted the sale at the point of sale. |
subscription_or_one_time | Text | Whether the sale was a subscription purchase or one-time. |
customer_id | Text | The customer’s Shopify ID. |
customer_email_domain | Text | The part of the customer’s email after the @, such as gmail.com. |
customer_region | Text | The state or province of the customer’s default address, such as US-CA. |
customer_city | Text | The city of the customer’s default address, with its country and region (GB-ENG-London). |
customer_language | Text | The customer’s language. |
customer_email_subscription_status | Text | The customer’s email marketing state, such as SUBSCRIBED or NOT_SUBSCRIBED. |
customer_sms_subscription_status | Text | The customer’s SMS marketing state, such as SUBSCRIBED or NOT_SUBSCRIBED. |
customer_product_subscription_status | Text | Whether the customer has product subscriptions, such as ACTIVE or NEVER_SUBSCRIBED. |
customer_number_of_orders | Number | The number of orders the customer has placed, all time. |
customer_amount_spent | Number | The customer’s all-time spend, in your store’s currency. |
customer_added_date | Date | The day the customer was added, in your store’s timezone. |
customer_first_order_date | Date | The day the customer placed their first order, in your store’s timezone. |
customer_last_order_date | Date | The day the customer most recently placed an order, in your store’s timezone. |
customer_cohort_month | Date | The month of the customer’s first order. |
customer_cohort_quarter | Date | The quarter of the customer’s first order. |
customer_cohort_week | Date | The week of the customer’s first order. |
customer_countries | Text | Every country in the customer’s addresses, as codes such as GB, US. |
customer_regions | Text | Every state or province in the customer’s addresses, such as US-CA, US-NY. |
customer_cities | Text | Every city in the customer’s addresses, with its country and region. |
second_order_month | Text | The month of the customer’s second order. |
first_order_has_subscription | Yes or no | Whether the customer’s first order included a subscription purchase. |
first_order_utm_medium | Text | The UTM medium of the visit that led to the customer’s first order. |
first_order_utm_campaign | Text | The UTM campaign of the visit that led to the customer’s first order. |
first_order_landing_page_url | Text | The first page of the visit that led to the customer’s first order. |
first_order_referrer_url | Text | The site that sent the customer on the visit that led to their first order. |
first_order_delivery | Text | How the customer’s first order arrived: on_time, late, no_promise, not_delivered or not_fulfilled. Ours: set it beside repeat customer rate to see whether late deliveries cost repeat custom. |
customer_expected_next_order_date | Date | The customer’s last order date plus their usual gap between orders. Empty for one-time customers. |
predicted_spend_tier | Text | Shopify’s predicted spend for the customer over the next year: low, medium or high. |
market | Text | The market the order belongs to, as Shopify reports it. |
company_name | Text | The B2B company that placed the order. |
company_location_name | Text | The B2B company location the order was for. |
app_name | Text | The app or channel that created the order, such as Online Store, Point of Sale or Draft Orders. |
order_confirmation_number | Text | The code the customer sees on their order confirmation. |
order_customer_language | Text | The language the customer placed the order in, such as en-GB. |
order_accepts_marketing | Text | Whether the customer agreed to marketing when they ordered: true or false. |
order_edit_request_status | Text | Whether the customer asked to change the order, and where that stands. |
order_tax_exempt | Text | Whether the order was exempt from tax: true or false. |
order_duties_included | Text | Whether duties were included in the prices: true or false. |
order_requires_shipping | Text | Whether anything on the order needs shipping: true or false. |
order_confirmed | Text | Whether the order is confirmed (stock reserved): true or false. |
merchant_of_record_app | Text | The app that sold the order as merchant of record, if not the store itself. |
order_product_network | Text | Whether the order came through Shopify’s product network: true or false. |
order_source_identifier | Text | The id the channel that created the order gave it, such as a POS device’s reference. |
last_visit_landing_page | Text | The page the visit the customer ordered in started on. |
last_visit_referrer_url | Text | The page that sent the customer on the visit they ordered in. |
last_visit_utm_medium | Text | UTM medium of the visit the customer ordered in. |
last_visit_utm_content | Text | UTM content of the visit the customer ordered in. |
last_visit_utm_term | Text | UTM term of the visit the customer ordered in. |
first_visit_referral_code | Text | The referral code on the customer’s first visit. |
last_visit_referral_code | Text | The referral code on the visit the customer ordered in. |
first_visit_source_description | Text | Shopify’s description of where the first visit came from. |
last_visit_source_description | Text | Shopify’s description of where the visit the customer ordered in came from. |
first_visit_marketing_event | Text | The marketing event (campaign) behind the customer’s first visit. |
last_visit_marketing_event | Text | The marketing event (campaign) behind the visit the customer ordered in. |
is_marketplace_order | Text | Whether the order came from a marketplace channel: true or false. |
order_closed | Text | Whether the order is closed (archived): true or false. |
shipping_company | Text | The company in the shipping address. |
shipping_address | Text | The first line of the shipping address. |
billing_region | Text | The state or province in the billing address. |
billing_company | Text | The company in the billing address. |
order_risk_recommendation | Text | What Shopify’s fraud analysis recommends: Accept, Investigate, Cancel or None. |
shipping_method_source | Text | Where the shipping rate came from: shopify, or the carrier or app that calculated it. |
first_visit_source | Text | Where the customer’s first visit came from, such as google or an email. |
first_visit_source_type | Text | The kind of source of the first visit: search, social, email, direct and so on. |
first_visit_date | Text | The day of the customer’s first visit before the order, in the store’s timezone. |
agentic_sales_channel | Text | The AI agent the order came through, if any. |
product_id | Number | The product’s ID. |
product_variant_id | Number | The product variant’s ID. |
product_title | Text | Product title. |
product_variant_title | Text | Variant title. |
product_variant_sku | Text | Variant SKU. |
product_vendor | Text | Product vendor. |
product_type | Text | Shopify product type. |
product_tag | Text | The product’s tags, comma separated. Use contains to match one tag. |
product_collection | Text | The collections the product is in, comma separated. Use contains to match one collection. |
product_status | Text | The product’s current status: active, archived, draft, suspended or unlisted. |
product_title_at_time_of_sale | Text | The product’s title when it was sold. |
product_variant_sku_at_time_of_sale | Text | The variant’s SKU when it was sold. |
product_vendor_at_time_of_sale | Text | The product’s vendor when it was sold. |
product_type_at_time_of_sale | Text | The product’s type when it was sold. |
sales_channel | Text | The sales channel the order came through. |
order_source | Text | Where the order was placed: web, pos, or a channel app. |
discount_code | Text | The order’s discount codes, comma separated. Use contains to match one code. |
order_tag | Text | The order’s tags, comma separated. Use contains to match one tag. |
line_type | Text | product, shipping, gift_card, tip, duty, additional_fee, return_fee or sale_adjustment. |
order_name | Text | Order name, such as #1001. |
sale_id | Number | The sale’s ID. |
order_cancellation_reason | Text | customer, declined, fraud, inventory, staff or other. |
line_item_is_bundle | Yes or no | Whether the item was sold as part of a bundle. |
discount_name | Text | The order’s discounts by code or title, comma separated. Use contains to match one. |
customer_name | Text | The customer’s full name. |
customer_email | Text | The customer’s email address. |
customer_country | Text | The country of the customer’s default address. |
customer_tag | Text | The customer’s tags, comma separated. Use contains to match one tag. |
rfm_group | Text | Shopify’s RFM group, such as loyal. |
first_order_sales_channel | Text | The sales channel of the customer’s first order. |
first_order_utm_source | Text | The UTM source of the visit that led to the customer’s first order. |
customer_churn_risk | Text | on_track, due, overdue or one_time. |
customer_account_status | Text | The customer’s account state, such as ENABLED. |
traffic_type | Text | How Shopify classes the visit the order is credited to: paid, organic, direct or unknown. |
referring_channel | Text | The channel Shopify credits the order to, such as google, klaviyo or direct. |
referring_medium | Text | The kind of channel Shopify credits the order to: search, email, sms, social and so on. |
marketing_channel | Text | The marketing channel Shopify credits the order to, such as google_ads or meta_ads. |
marketing_platform | Text | The platform behind the channel Shopify credits the order to, such as google or meta. |
order_return_status | Text | Where the order’s returns stand. |
order_fully_paid | Yes or no | Whether the order is paid in full. |
order_customer_currency | Text | The currency the customer paid in. |
last_visit_utm_campaign | Text | UTM campaign of the visit the customer ordered in. |
last_visit_utm_source | Text | UTM source of the visit the customer ordered in. |
po_number | Text | The purchase order number. |
order_tax_id | Text | The tax ID the buyer gave at checkout. |
business_entity | Text | The legal entity that sold the order. |
sales_sub_channel | Text | The part of the channel the order came from. |
taxes_included | Yes or no | Whether the order’s prices include tax. |
order_edited | Yes or no | Whether the order was edited after it was placed. |
order_weight | Number | The order’s total weight in kilograms. |
order_outstanding | Number | What the customer still owes on the order. |
shipping_country | Text | The country the order ships to. |
shipping_region | Text | The state or province the order ships to. |
shipping_city | Text | The city the order ships to. |
shipping_postcode | Text | The postcode the order ships to. |
billing_country | Text | The country in the billing address. |
billing_city | Text | The city in the billing address. |
billing_postcode | Text | The postcode in the billing address. |
order_risk_level | Text | High, Medium, Low, None or Pending. |
order_is_shopify_protect_protected | Yes or no | Whether Shopify Protect covered the order. |
order_is_shopify_protect_covered | Yes or no | Whether the order met Shopify Protect’s fulfilment requirements. |
order_is_shopify_protect_eligible | Yes or no | Whether the order was eligible for Shopify Protect. |
order_referrer_source | Text | search, social, email, direct and so on. |
order_referrer_name | Text | The site that referred the order. |
is_shop_referral_order | Yes or no | Whether the Shop app referred the order. |
shipping_method | Text | The shipping method chosen at checkout. |
days_to_conversion | Number | Days between the first visit and the order. |
last_visit_source | Text | Where the visit the customer ordered in came from. |
last_visit_source_type | Text | Search, social, email, direct and so on. |
customer_order_index | Number | Which of the customer’s orders this is: 1 for their first. |
payment_terms | Text | Net 30, Due on fulfillment and so on. |
payment_due_date | Date | When payment falls due. |
payment_overdue | Yes or no | Past its due date and not yet paid. |
discount_names | Text | Discount names on the order, comma separated. Use contains to match one. |
customer_segment | Text | Customers in the segment: one row per order, so totals stay whole. |
Linked records
Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for exampleorder.name). Each record’s page lists its fields.
| Write | Record | Reached through |
|---|---|---|
order.<field> | Order | Order |
order.customer.<field> | Customer | Order › Customer |
order.customer.company.<field> | Company | Order › Customer › Company |
order.company.<field> | Company | Order › Company |
order.company_location.<field> | Company location | Order › Company location |
order.company_location.company.<field> | Company | Order › Company location › Company |
order.location.<field> | Location | Order › Location |
order.market.<field> | Market | Order › Market |
product.<field> | Product | Product |
variant.<field> | Variant | Variant |
variant.product.<field> | Product | Variant › Product |
customer.<field> | Customer | Customer |
customer.company.<field> | Company | Customer › Company |
company.<field> | Company | Company |
company_location.<field> | Company location | Company location |
company_location.company.<field> | Company | Company location › Company |
location.<field> | Location | Location |
shop.<field> | Store | Store |
Sales are built from Shopify’s sales records and dated by the day each sale happened in your store’s timezone, so totals match Shopify’s own sales reports. Test orders are left out, as Shopify leaves them out.

