Skip to main content

profitability

The profitability schema captures the pieces that make up profit on an order, measured before any returns are settled. Use it to break down the revenue, costs, shipping, duties, tax, and adjustments behind each order's economics.


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 profitability.

Anchor to average_cost_of_goods_sold
average_cost_of_goods_sold

The average product cost tied to each order, in your store's currency.

Anchor to average_customer_duties_and_import_taxes
average_customer_duties_and_import_taxes

Average duties and import taxes customers pay per order

Anchor to average_customer_price_adjustments
average_customer_price_adjustments

Average price adjustments that affect what customers pay

Anchor to average_customer_shipping_charges
average_customer_shipping_charges

Average shipping costs customers pay per order

Anchor to average_duty_and_import_tax_adjustment_costs
average_duty_and_import_tax_adjustment_costs

Average amount you pay per order on duty and import tax adjustments

Anchor to average_profit_at_delivery_before_returns
average_profit_at_delivery_before_returns

For orders with product sales, this per-order profit estimate is measured at delivery and excludes marketing costs, packaging costs, and returns, in your store's currency.

Average profit at delivery (before returns) = average_revenue_before_returns - average_store_costs_before_returns

Anchor to average_revenue_before_returns
average_revenue_before_returns

The average revenue per order before returns, including product sales after discounts, customer shipping charges, and duties, and excluding sales tax, in your store's currency.

Anchor to average_sale_after_discounts
average_sale_after_discounts

Amount customers have paid on products before returns, averaged across orders

Average sale after discounts = gross sales - returns

Anchor to average_sales_taxes
average_sales_taxes

Average taxes you collect per order

Anchor to average_shipping_label_adjustment_costs
average_shipping_label_adjustment_costs

Average amount you pay per order on shipping label adjustments

Anchor to average_store_costs_before_returns
average_store_costs_before_returns

Shows your store's per-order fulfillment cost for orders with product sales, before return activity is reflected, in your store's currency.

Average store costs (before returns) = average_cost_of_goods_sold + average_store_shipping_costs + average_store_duties_and_import_taxes + average_payment_processing_fees + average_international_fees

Anchor to average_store_duties_and_import_taxes
average_store_duties_and_import_taxes

Average duties and import taxes you pay per order

Average store duties and import taxes = average_customer_duties_and_import_taxes + average_duty_and_import_tax_adjustment_costs

Anchor to average_store_shipping_costs
average_store_shipping_costs

The average shipping cost your store pays per order, including shipping label costs and shipping label adjustments, in your store's currency.


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 profitability.

The day the order's sale happened.

Anchor to day_of_week
day_of_week

The day of week the order's sale happened, with values Monday through Sunday.

The hour the order's sale happened.

Anchor to hour_of_day
hour_of_day

The hour of day the order's sale happened, with values 0 through 23.

Anchor to landed_cost_adjustment_type
landed_cost_adjustment_type

Type of landed cost adjustment, either duty or tax

Anchor to minute
minute

The minute the order's sale happened.

Anchor to month
month

The month the order's sale happened.

Anchor to month_of_year
month_of_year

The month of year the order's sale happened, with values 1 through 12.

Anchor to order_id
order_id

Use order_id with order_name to show the order name or number.

Anchor to quarter
quarter

The quarter the order's sale happened.

Anchor to second
second

The second the order's sale happened.

Anchor to shop_id
shop_id

The unique Shopify identifier for your store. Use shop_id with shop_name to show readable store labels.

The week the order's sale happened.

Anchor to week_of_year
week_of_year

The week of year the order's sale happened, with values 1 through 53.

The year the order's sale happened.

Anchor to is_b2b_order
is_b2b_order

Whether the order is a B2B order, with values true and false.

Anchor to is_canceled_order
is_canceled_order

Whether the order is canceled, with values true and false.

Anchor to order_checkout_currency
order_checkout_currency

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_status
order_fulfillment_status

The order's fulfillment state, with values Fulfilled, Partial, Restocked, and Unfulfilled.

Anchor to order_includes_duties
order_includes_duties

Whether the order includes duties, with values true and false.

Anchor to order_name
order_name

The name or number of the order as the customer sees it.

Anchor to order_payment_status
order_payment_status

The order's payment state, such as Authorized, Paid, Partially refunded, or Pending.

Anchor to order_sales_channel
order_sales_channel

The sales channel where the order was placed, shown as a channel name such as Online Store or POS.

Anchor to order_sales_channel_id
order_sales_channel_id

The unique Shopify identifier for the order's sales channel. Use order_sales_channel_id with order_sales_channel to show readable channel labels.

Anchor to shop_name
shop_name

Name of your store

Anchor to is_shop_referral_order
is_shop_referral_order

Whether the order was referred from the Shop app or shop.app, with values true and false.

Anchor to order_landing_page_path
order_landing_page_path

Path of the first page of the user session that resulted in the order

Anchor to order_landing_page_url
order_landing_page_url

First page of the user session that resulted in the order

Anchor to order_marketing_event_id
order_marketing_event_id

Shopify identifier for the marketing event associated with the order

Anchor to order_referrer_domain
order_referrer_domain

Domain of the site that led to the order

Anchor to order_referrer_name
order_referrer_name

The readable name of the site that led to the order.

Anchor to order_referrer_path
order_referrer_path

Path of the site that led to the order

Anchor to order_referrer_site
order_referrer_site

Site that led to the order

Anchor to order_referrer_source
order_referrer_source

The referrer type that led to the order, such as organic or email.

Anchor to order_referrer_url
order_referrer_url

External page that referred a customer and led to the order

Anchor to order_utm_campaign
order_utm_campaign

UTM name of the campaign associated with the order

Anchor to order_utm_content
order_utm_content

The UTM content value associated with the order, often used to distinguish ads, links, or content variations.

Anchor to order_utm_medium
order_utm_medium

The UTM medium associated with the order, such as email, social, or paid search.

Anchor to order_utm_source
order_utm_source

The UTM source associated with the order, such as Google, Facebook, or a newsletter.

Anchor to order_utm_term
order_utm_term

The UTM term associated with the order, often used for paid search keywords or other tracked terms.

Anchor to number_of_products_bought_together
number_of_products_bought_together

Total unique products in the same order

Anchor to number_of_variants_bought_together
number_of_variants_bought_together

The number of unique product variants in the same order, with each SKU counted a single time.

Anchor to products_bought_together
products_bought_together
<>

The product names that appear in the same order.

Anchor to products_bought_together_ids
products_bought_together_ids
<>

The Shopify product identifiers for products in the same order.

Anchor to variants_bought_together
variants_bought_together
<>

The product variant labels that appear in the same order, such as size, color, or style combinations.

Anchor to company_id
company_id

The unique Shopify identifier for the company. Use company_id with company_name to show readable company labels.

Anchor to company_name
company_name

Name of the company that placed the order

Anchor to company_location_id
company_location_id

The unique Shopify identifier for the company location. Use company_location_id with company_location_name to show readable company location labels.

Anchor to company_location_name
company_location_name

The company location or branch that placed the order

Anchor to referring_channel
referring_channel

Marketing channel that referred the customer to place the order

Anchor to referring_medium
referring_medium

The marketing medium that referred the customer to place the order, such as email, social, or search.

Anchor to referring_platform
referring_platform

The marketing platform that referred the customer to place the order, such as Google, Facebook, or Instagram.

Anchor to traffic_type
traffic_type

The type of traffic that led to the order, such as organic, paid, or direct.

Anchor to order_marketing_event_target
order_marketing_event_target

The platform or channel where the marketing activity was deployed, such as Email, Facebook, Google, or Instagram.

Anchor to order_marketing_event_type
order_marketing_event_type

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 market
market

Market you've defined in Shopify, like a geographical market or customer group

Anchor to markets
markets
<>

Markets or customer segments associated with the order

Anchor to order_cancellation_reason
order_cancellation_reason

The reason specified for the order cancellation, such as Customer, Other, Fraud, or Inventory.

Anchor to order_risk_level
order_risk_level

The fraud risk level Shopify assigned to the order, with values Low, Medium, High, None, and Pending.

Anchor to order_is_shopify_protect_covered
order_is_shopify_protect_covered

Whether the order has met Shopify Protect fulfillment requirements, including proper shipping and tracking, with values true and false.

Anchor to order_is_shopify_protect_eligible
order_is_shopify_protect_eligible

Whether the order qualifies for Shopify Protect, with values true and false.

Anchor to order_is_shopify_protect_protected
order_is_shopify_protect_protected

Whether the order has full Shopify Protect coverage against fraud, with values true and false.

Anchor to order_tag
order_tag

Tag associated with the order

Anchor to order_tags
order_tags
<>

Set of tags associated with the order

Anchor to agentic_referring_channel
agentic_referring_channel

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_handle
channel_handle

Name of the marketing channel or platform that drove the marketing engagement

Anchor to marketing_activity_id
marketing_activity_id

The unique Shopify identifier for the marketing activity. Use marketing_activity_id with marketing_activity_title to show readable activity labels.

Anchor to marketing_activity_status
marketing_activity_status

Current status of the marketing activity (such as Active or Paused)

Anchor to marketing_activity_title
marketing_activity_title

Name of the marketing activity

Anchor to marketing_activity_url_parameter_key
marketing_activity_url_parameter_key

URL parameter key for the marketing activity

Anchor to marketing_activity_url_parameter_value
marketing_activity_url_parameter_value

URL parameter value for the marketing activity

Anchor to marketing_automation_id
marketing_automation_id

Unique ID that Shopify uses to identify the marketing automation

Anchor to marketing_delivery_channel
marketing_delivery_channel

Channel through which the marketing activity is delivered

Anchor to marketing_event_id
marketing_event_id

Unique identifier for the associated marketing event

Anchor to marketing_platform
marketing_platform

The marketing platform that created the marketing activity, shown as a platform name.

Anchor to page_host
page_host

The host name of the session landing page.

Anchor to page_path
page_path

The path of the session landing page.

Anchor to page_url
page_url

The URL of the first page viewed in the session.

Anchor to referrer_url
referrer_url

External page that led to an online store session

Anchor to utm_campaign
utm_campaign

UTM name of the campaign associated with the session

Anchor to utm_content
utm_content

The UTM content value associated with the session, often used to distinguish ads, links, or content variations.

Anchor to utm_medium
utm_medium

The UTM medium associated with the session, such as email, social, or paid search.

Anchor to utm_source
utm_source

The UTM source associated with the session, such as Google, Facebook, or a newsletter.

Anchor to utm_term
utm_term

The UTM term associated with the session, often used for paid search keywords or other tracked terms.


  • sales: Top-line revenue without the landed-cost side of the equation.
  • discounts: Applied discount value when you need to see what's eroding margin on the price side.
  • payments: Transaction-level data including processing fees that don't appear in landed cost.

Was this page helpful?