Pixel Orders Table

The Pixel Orders table enriches orders with Triple Whale Pixel attribution context, showing which ads, campaigns, and channels drove each purchase. One row per order per attributed ad or channel; orders can have multiple rows under multi-touch attribution models.

📋

Table Guide

What You Can Answer With This Table

  • Which channels or campaigns drove the most attributed revenue? — group by channel or campaign_id with order_revenue
  • Which specific orders were attributed to a campaign or ad? — use order_id with campaign_id, ad_id
  • How does attributed revenue differ by model or customer type? — group by model or is_new_customer with order_revenue

Before You Query

  • Required field: event_date
  • Attribution defaults: Triple Attribution model and Lifetime attribution window are applied by default.
  • Multi-touch row duplication: Under multi-touch attribution models (Triple Attribution, Linear Paid, Linear All, and Clicks & Views), an order can appear on multiple rows, one per touchpoint that contributed credit. The order_revenue and orders_quantity on each row are scaled to that touchpoint's share of the order, so summing them across the order's rows returns the order's full revenue and counts as 1 order. To count orders correctly, use count(distinct order_id) or sum(orders_quantity) (not count(*), which counts touchpoint-rows).
  • Single-touch models: Single-touch attribution models (Last Click, First Click) attribute the full order to one touchpoint, so each order has one row with full credit. Under these models, count(*) and the sums all behave like a normal one-row-per-order table.
  • Total Impact not supported: The Total Impact model is not supported on the Pixel Orders table. Queries using model = 'Total Impact' will return an error. Total Impact is an aggregated model that cannot be applied per order.
  • Onsite shop counts: Order counts for onsite shop channels (e.g., Meta Shop, TikTok Shop) may differ from Pixel Joined. Both are correct: Pixel Orders uses pixel-tracked counts, which include organic onsite purchases, but only at the channel level, not by campaign or ad; Pixel Joined uses platform-reported counts from the ads API for onsite channels.

Key Relationships

TableJoin KeyUse This Join To
Ordersorder_idAdd product, discount, customer, and fulfillment context to attributed orders
Customerscustomer_id_keySegment attributed orders by customer profile attributes
Sessionssession_idAdd session behavior and traffic context to attributed order sessions

When to Use a Different Table

  • Use Orders table when you need non-duplicated order totals for revenue, fulfillment, or financial reporting. The Pixel Orders table is for order-level attribution context and may have multiple rows per order under multi-touch models.
  • Use Pixel Joined table when you need aggregated attributed performance, such as spend, impressions, or ROAS by campaign. The Pixel Orders table preserves individual order records with attribution context.

View the full Triple Whale Data Ontology →


Dimensions

Dimensions are immutable properties that can be used for grouping data.

TitleIDTypeDescription
Event Hourevent_hourstring

The hour of the day the order was placed, according to a 24-hour clock. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).

Example values: 07, 16, 21

Event Dateevent_datedateThe date the order was placed. Based on the shop time zone at the moment of the event (or the user time zone, if no sales platform is connected).
Event Dayevent_date.daydateThe day on which the event occurred. Derived from event_date.
Event Weekevent_date.weekdateThe Sunday of the week during which the event occurred. Derived from event_date.
Event Monthevent_date.monthdateThe month during which the event occurred. Derived from event_date.
Event Quarterevent_date.quarterdateThe first month of the quarter during which the event occurred. Derived from event_date.
Event Yearevent_date.yeardateThe year during which the event occurred. Derived from event_date.
Ad Account IDaccount_idstring

The unique ID for the ad account associated with the ad. Assigned by the ad platform.

Example values: act_2168791943307744, 18ce55770zl, 1986494684391480

Ad IDad_idstring

The unique ad ID. Assigned by the ad platform.

Example value: 120210439891110007

Ad Namead_namestring

The name of the ad.

Example values: Kids Ad 1, Read Our Latest Blog 03/12/2023, 8 best fall looks

Ad Set IDadset_idstring

The unique ID for the ad set associated with the ad click. Assigned by the ad platform.

Example value: 120210439890740003

Ad Set Nameadset_namestring

The name of the ad set within a campaign.

Example values: Broad Audience, Bracelets, Wellness

Attribution Windowattribution_windowstring

The time frame for attributing conversions to the ad. By default lifetime.

Example values: 1_day, 7_days, 14_days, 28_days, lifetime

Note: group by attribution_window is unavailable on the Pixel Orders table.

Billing Citybilling_citystring

The city of the customer's billing address.

Example value: San Francisco

Billing Countrybilling_countrystring

The full name of the customer's billing country. See list of countries.

Example values: United States, Canada, United Kingdom

Billing Country Codebilling_country_codestring

The country code of the customer's billing address. See list of countries.

Example values: US, CA, GB

Billing Statebilling_provincestring

The state or province of the customer's billing address.

Example values: Oregon, British Columbia, Michigan

Web Browserbrowserstring

The web browser of the session where the order originated.

Example values: Chrome, Firefox, Safari

Campaign IDcampaign_idstring

The unique ID for the marketing campaign associated with the ad. Assigned by the ad platform.

Example values: 23852438666180053, 531011533, 20620285829

Campaign Namecampaign_namestring

The name of the marketing campaign associated with the ad.

Example values: Catalog Retargeting, US Generic Search, Breakfast of Champions Campaign

Campaign Typecampaign_typestring

The type of campaign.

Example values: PERFORMANCE_MAX, SEARCH, VIDEO, DEMAND_GEN

Cancelled Datecancelled_attimestamp

The time at which the order was canceled. Formatted according to the

ISO 8601 international standard

. NULL if the order was not canceled. \n \nExample value: 2022-06-15T19:26:30.000Z

Channelchannelstring

The platform through which the ad was delivered.

Example values: facebook-ads, tiktok-ads, Direct

Click Dateclick_datedate

The date the ad was clicked. Based on the shop time zone at the moment of the click.

Example value: 2024-10-26

Click Timestampclick_tstimestamp

The time at which the ad was clicked. Formatted according to the ISO 8601 international standard.

Example value: 2024-10-26 20:03:48

Order Created Datecreated_attimestamp

The time at which the order record was created. Formatted according to the ISO 8601 international standard.

Example value: 2022-06-15T19:26:30.000Z

Order Currencycurrencystring

The original currency of the order, before conversion to the shop's currency. All monetary values are automatically converted to the shop's selected currency for display.

Example values: USD, GBP, EUR

Customer Emailcustomer_emailstring

The customer's email address.

Example value: [email protected]

Customer First Namecustomer_first_namestring

The customer's first name.

Example value: John

Customer Citycustomer_from_citystring

The city of the customer's shipping address.

Example value: San Francisco

Customer Countrycustomer_from_country_codestring

The country code of the customer's default address. See list of countries.

Example values: US, CA, GB

Customer Country Namecustomer_from_country_namestring

The full name of the customer's country. See list of countries.

Example values: United States, Canada, United Kingdom

Customer Statecustomer_from_state_codestring

The state or province of the customer's shipping address.

Example value: CA

Customer IDcustomer_idstring

The unique identifier for the customer, assigned by the main sales platform.

Example value: 5209503793328

Customer ID Keycustomer_id_keystring

Join key for connecting this table to the Customers table. Contains customer_id for Shopify shops and customer_email for non-Shopify shops (e.g., Amazon, BigCommerce, WooCommerce).

Example values: 5209503793328, [email protected]

Customer Last Namecustomer_last_namestring

The last name of the customer.

Example value: Doe

Customer Tagscustomer_tagsrepeated string

Tags associated with the customer, set in the main sales platform.

Example values: Active Subscriber, PayPal_user, Login with FB

Devicedevicestring

The type of device used by the visitor for the session.

Example values: mobile, desktop, tablet, wearable

Discount Codediscount_codestring

The discount code or promotion name used in the order. Set by the seller in the main sales platform.

Example values: WELCOME10, Replacement for defective item, 807QRWMNK2

Fulfillment Statusfulfillment_statusstring

The fulfillment status of the order.

Example values: fulfilled, partial, restocked

Is First Order in Subscriptionis_first_order_in_subscriptionboolean

True if the order is the first in a subscription series.

Possible values: true, false

Is New Customeris_new_customerboolean

True if this is the customer's first order.

Possible values: true, false

Learn how Triple Whale classifies new/returning customers.

Is Subscription Orderis_subscription_orderboolean

True if the order is part of a subscription.

Possible values: true, false

Landing Pagelanding_pagestring

The URL path (without query parameters) of the page the visitor landed after clicking on an ad or link, indicating the first page viewed in a session.

Example value: /myshop/collections/green_sweater

Attribution Modelmodelstring

The attribution model used. By default Triple Attribution.

Possible values: Triple Attribution, Triple Attribution + Views, Clicks & Views, Linear All, Linear Paid, First Click, Last Click

Order IDorder_idstring

The unique order ID, assigned by the main sales platform.

Example value: 4930225799243

Order Nameorder_namestring

The name of the order as assigned by the seller on the main sales platform.

Example values: #2188464, Ex-2163819-9

Sales Platformplatformstring

The sales platform where the order was processed.

Example values: Shopify, Amazon

Productsproducts_inforecord repeatedDetails about the products associated with the order (at the level of the variant), including name, product ID, variant ID, type, SKU, etc. Returns the latest product information, not necessarily the data at the time the order was placed.
Product IDproducts_info.product_idstring

The unique ID of the product as set within the main sales platform.

Example value: 3891505496131

Product Nameproducts_info.product_namestring

The name of the product as set within the main sales platform.

Example values: Green Soft Socks 3-Pack, Paring Knife Travel Case, Gift Subscription

Product Vendorproducts_info.vendorstring

The vendor of the product as set within the main sales platform.

Example values: Acme, XYZ Corp, Brandless

Product Typeproducts_info.product_typestring

The product type as set within the main sales platform.

Example values: Jackets, Coffee Mugs, Books

Product Tagsproducts_info.product_tagsrepeated string

Tags associated with the product, set in the main sales platform.

Example values: Upsell, Order Credits, discount_eligible

Product SKUproducts_info.product_skustring

The SKU (Stock Keeping Unit) for the product as set within the main sales platform.

Example values: GP-BACK-02, A02630, POP200NAVY

Product Variant IDproducts_info.variant_idstring

The unique ID for a specific variant of a product as set within the main sales platform.

Example value: 29275946877001

Is Gift Cardproducts_info.is_gift_cardboolean

True if the product purchased is a gift card.

Possible values: true, false

Product Propertiesproducts_info.propertiesrecord repeatedCustom key–value properties attached to the product line item (e.g., personalization details, bundle metadata, app-specific fields).
Product Property Nameproducts_info.properties.namestringThe name or key of the product property.
Product Property Valueproducts_info.properties.valuestringThe value assigned to the product property.
Product Dutiesproducts_info.dutiesrecord repeatedImport duties or tariffs applied to the product.
Product Duty IDproducts_info.duties.duty_idstringThe unique identifier of the duty applied to the product.
Product Duty Tax Linesproducts_info.duties.tax_linesrecord repeatedTax lines charged on the product duty.
Product Duty Tax Line Amountproducts_info.duties.tax_lines.pricenumericThe tax amount charged on the product duty per tax line.
Product Duty Amountproducts_info.duties.pricenumericThe monetary amount of duty charged for the product.'
Product Priceproducts_info.product_name_pricenumericThe price of a single product (to the buyer).
Total Product Discountproducts_info.discount_amount_for_productnumericThe amount discounted from the product price, before taxes. By default shown in the shop's currency.
Net Product Discountproducts_info.net_discount_amount_for_productnumericThe amount discounted from the product price, after taxes. By default shown in the shop's currency.
Product Units Soldproducts_info.product_name_quantity_soldnumericThe total number of individual units sold for the product.
Product Costproducts_info.single_product_costnumericThe cost of a single product (to the seller).
Session Citysession_citystring

The city of the session where the order originated.

Example values: San Francisco, Tel Aviv, Kyiv

Session Countrysession_countrystring

The country of the session where the order originated. See list of countries.

Example values: United States, Canada, United Kingdom

Session IDsession_idstring

The unique session ID assigned by Triple Pixel.

Note: Only sessions with an order are included in the Pixel Orders table. For data on all sessions, use the Sessions table.

Example value: cltlok4y634IRw62AZ_1710700966152

Shipping Cityshipping_citystring

The city of the shipping address.

Example value: San Francisco

Shipping Country Codeshipping_country_codestring

The country code of the shipping address. See list of countries.

Example values: US, CA, GB

Shipping Country Nameshipping_country_namestring

The full name of the shipping country. See list of countries.

Example values: United States, Canada, United Kingdom

Shipping Stateshipping_statestring

The province or state of the shipping address.

Example value: California

Shipping State Codeshipping_state_codestring

The province or state code of the shipping address.

Example value: CA

Shipping Zip Codeshipping_zipstring

The zip/postal code of the customer's shipping address.

Example values: 48104, 18235-2239, CH25 9BH

Shop IDshop_idstring

The unique ID of the shop (often corresponds to the shop domain). Can be used to group or filter data by shop in multi-store reports.

Example values: example-US.myshopify.com, example-EU.myshopify.com

Shop Nameshop_namestring

The name of the shop. Can be used to group or filter data by shop in multi-store reports.

Example values: example-US, example-EU

Shop Timezoneshop_timezonestring

The designated timezone of the shop according to the

tz database

.

Sourcesource_namestring

The origin of the order as designated by the seller on the main sales platform.

Example values: web, pos, tiktok

Tagstagsrepeated string

Tags associated with the order, assigned by the seller in the main sales platform.

Example values: Upsell, Order Credits, discount_eligible

Triple Pixel IDtriple_idstring

The unique ID assigned by Triple Pixel to track visitors across sessions.

Example value: cltlok4y634IRw62AZ

UTM Mediumutm_mediumstring

The UTM medium parameter captured by Triple Pixel from the ad URL

Example values: sponsored, paid, profile_link

UTM Sourceutm_sourcestring

The UTM source parameter captured by Triple Pixel from the ad URL.

Example values: web, pos, tiktok, facebook, google, newsletter

Measures

Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.

TitleIDTypeDescription
Cost of Goods (COGS)cost_of_goodsnumeric

The cost of goods for Pixel-reported purchases within the selected time frame (before refunds).

Imported from the main sales platform, or edit these in Cost Settings > Cost of Goods.

Note that COGS for Pixel data is set at attribution time and does not get updated subsequently, so may vary from COGS in the Orders table.

Currency Ratecurrency_ratenumericThe rate used to convert monetary values to the shop's currency. If no conversion was applied, the value is 1. To convert back to the original currency, divide by this rate.
Order-Level Custom Expensescustom_expensesnumeric

Additional custom expenses associated with individual orders.

Import these using the Enrich Orders Data API endpoint.

Custom Gross Profitcustom_gross_profitnumeric

Custom gross profit for individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Gross Salescustom_gross_salesnumeric

Custom gross sales for individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Net Revenuecustom_net_revenuenumeric

Custom net revenue for individual orders.

Import using the Enrich Orders Data API endpoint.

Custom Orders Quantitycustom_orders_quantitynumeric

The custom-defined quantity of orders to count for the single order_id.

Possible values: 0, 1

Import using the Enrich Orders Data API endpoint.

Custom Total Itemscustom_total_items_quantitynumeric

The custom-defined total number of items in the order.

Import using the Enrich Orders Data API endpoint.

Discountsdiscount_amountnumericThe total discount amount applied to the order, including shipping discounts.
Product Discount Amountdiscount_amount_for_productnumericThe total product discount amount applied to the order.
Shipping Discount Amountdiscount_amount_for_shippingnumericThe total shipping discount amount applied to the order.
Gross Salesgross_product_salesnumeric

Gross sales revenue (before shipping, taxes, discounts, or refunds).

Gross Sales = Product Price x Units Sold

Handling Feeshandling_feesnumeric

Handling fees (e.g. boxing, packaging, or “pick & pack” services) paid by the seller for orders in the selected time frame.

Edit these in Cost Settings > Cost of Goods.

Order Revenueorder_revenuenumeric

Revenue earned after shipping, taxes, and discounts (before refunds).

Order Revenue = Gross Sales + Shipping + Taxes − Discounts

Pixel Purchasesorders_quantitynumeric

The total number of Pixel-reported purchases (orders) within the selected timeframe.

Note: This value is calculated based on the attribution model, and may be a fractional number.

Payment Gateway Costspayment_gateway_costsnumeric

Payment processing fees (not including currency conversion fees) paid by the seller.

Edit these in Cost Settings > Gateway Costs.

Units Soldproduct_quantity_sold_in_ordernumericThe total number of individual product units sold in the order.
Refundsrefund_moneynumeric

Total amount returned to customers for refunded sales, refunded taxes, and refunded shipping. Calculated based on the order date.

Note that Triple Whale does not track refunds from third-party return management apps (e.g., Loop), so totals may vary from the sales platform.

Refunds = Refunded Sales + Refunded Shipping + Refunded Tax

Shipping Costsshipping_costsnumeric

Shipping costs paid by the seller for orders within the select timeframe.

Edit these in Cost Settings > Shipping.

Shipping Priceshipping_pricenumericThe total shipping price of the order, including shipping taxes and shipping discounts.
TaxestaxesnumericAmount customers paid in taxes (excluding refunded taxes).

Derived

Derived fields are metrics that are pre-calculated using multiple measures or advanced formulas.

TitleIDTypeDescription
Pixel Average Order Valueaovformula

The Pixel-reported average order value.

Pixel AOV = Pixel Conversion Value / Number of Pixel Purchases

Lifetime Valueltvformula

The average order revenue per customer, for orders placed within the selected timeframe.

LTV = Order Revenue / Unique Customers

Pixel New Customer Purchasesnew_customer_ordersformula

The total number of orders placed by new customers within the selected time frame.

Learn how Triple Whale classifies new/returning customers.

Pixel New Customer Revenuenew_customer_revenueformula

The total revenue derived from orders by new customers.

Learn how Triple Whale classifies new/returning customers.

Pixel New Customers Percentnew_customers_percentformula

The percentage of Pixel-reported purchases made by new customers.

Pixel New Customers % = Number of New Customer Pixel Purchases / Total Pixel Purchases

Learn how Triple Whale classifies new/returning customers.

Non-Zero Pixel Purchasesorders_with_amountformula

The total number of Pixel-reported purchases with a revenue greater than zero.

Non-Zero Pixel Purchases = Count of Pixel Purchases where Order Revenue > $0

Pixel Returning Customer Purchasesreturning_customer_ordersformula

Number of Pixel-reported orders placed by Returning Customers.

Learn how Triple Whale classifies new/returning customers.

Pixel Returning Customer Revenuereturning_customer_revenueformula

Pixel-reported conversion value (order revenue) derived from Returning Customers.

Learn how Triple Whale classifies new/returning customers.

Pixel Returning Customers Percentreturning_customers_percentformula

The percentage of Pixel-reported purchases made by Returning Customers.

Pixel New Customers % = Number of Returning Customer Pixel Purchases / Total Pixel Purchases

Learn how Triple Whale classifies new/returning customers.

Pixel True Average Order Valuetrue_aovformula

The average non-zero order value (before shipping or taxes), as reported by the sales platform.

True AOV = (Order Revenue - Shipping Price - Taxes) / Number of Orders > $0

Unique Customersunique_customersformulaNumber of unique customers who placed orders within the selected timeframe.