Pixel Orders Table

pixel_orders_table

The Pixel Orders table merges detailed transaction data, including the timing of ad clicks, devices used by customers, and key order metrics like sales and orders, with ad performance insights from Triple Whale Pixel. Querying this table allows for an in-depth analysis of ad campaign effectiveness, customer conversion paths, and sales trends, highlighting the direct impact of advertising on purchase behavior.

🚧

Key Concepts When Using Pixel Orders Table

Aggregation and Attribution

  • The Pixel Orders table aggregates data at the order level, and is intended for order-level analysis using Triple Pixel attribution data.
  • The Triple Attribution model and Lifetime attribution window applied by default.
  • When the Triple Attribution model is applied, there may be duplicates for some fields (e.g. order_quantity and order_revenue). For analyses where you wish to avoid counting duplicates, use the Last Click model or query the Orders table instead.
  • The Total Impact model is an aggregated attribution model, and therefore is not available on the Pixel Orders table since it cannot be applied on a per-order basis.

Order Data in Pixel Joined vs. Pixel Orders tables

  • Order data in the Pixel Joined table comes from the ad platform (e.g. Facebook, TikTok), and is collected and aggregated according to the ad it's associated with. Orders made via onsite channel shops (e.g. Meta Shop and TikTok Shop) are included in the orders data in the Pixel Joined table.
  • In contrast, order data in the Pixel Orders table comes from the main shop platform (e.g. Shopify, BigCommerce, WooCommerce) along with the Triple Pixel. Orders made via onsite channel shops (e.g. Meta Shop and TikTok Shop) are not included in the Pixel Orders table.
  • This difference results in potential discrepancies between the two tables. The Pixel Joined table may show higher order counts for ads on platforms with onsite shops (e.g. Meta, TikTok) due to additional channel-reported orders that aren’t tracked in the Pixel Orders table.

📘

Note

event_date is a required field for queries on this table.

Dimensions

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

TitleIDTypeDescription
Event Dateevent_datedateThe date the order was placed. Based on the time zone of the shop at the moment of purchase.
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.
Event Hourevent_hourstringThe hour of the day the order was placed, according to a 24-hour clock. Based on the time zone of the shop at the moment the order was placed.

Example values: 07, 16, 21
Ad IDad_idstringThe unique ad ID. Assigned by the ad platform.

Example value: 120210439891110007
Ad Namead_namestringThe name of the ad.

Example values: Kids Ad 1, Read Our Latest Blog 03/12/2023, 8 best fall looks
Ad Set IDadset_idstringThe unique ID for the ad set associated with the ad click. Assigned by the ad platform.

Example value: 120210439890740003
Ad Set Nameadset_namestringThe name of the ad set within a campaign.

Example values: Broad Audience, Bracelets, Wellness
Attribution Windowattribution_windowstringThe 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.
Web BrowserbrowserstringThe web browser of the session where the order originated.

Example values: Chrome, Firefox, Safari
Campaign IDcampaign_idstringThe unique ID for the marketing campaign associated with the ad. Assigned by the ad platform.

Example values: 23852438666180053, 531011533, 20620285829
Campaign Namecampaign_namestringThe name of the marketing campaign associated with the ad.

Example values: Catalog Retargeting, US Generic Search, Breakfast of Champions Campaign
Cancelled Datecancelled_attimestampThe 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
ChannelchannelstringThe platform through which the ad was delivered.

Example values: facebook-ads, tiktok-ads, Direct
Click Timestampclick_tstimestampThe 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_attimestampThe time at which the order record was created. Formatted according to the ISO 8601 international standard.

Example value: 2022-06-15T19:26:30.000Z
Customer Emailcustomer_emailstringThe customer's email address.

Example value: [email protected]
Customer First Namecustomer_first_namestringThe customer's first name.

Example value: John
Customer Citycustomer_from_citystringThe city of the customer's shipping address.

Example value: San Francisco
Customer Countrycustomer_from_country_codestringThe country code of the customer's shipping address, according to ISO 3166-1 alpha-2. See list of country codes.

Example value: US
Customer Statecustomer_from_state_codestringThe state or province of the customer's shipping address.

Example value: CA
Customer IDcustomer_idstringThe unique identifier for the customer, assigned by the main sales platform.

Example value: 5209503793328
Customer Last Namecustomer_last_namestringThe last name of the customer.

Example value: Doe
Customer Tagscustomer_tagsrepeated stringTags associated with the customer, set in the main sales platform.

Example values: Active Subscriber, PayPal_user, Login with FB
DevicedevicestringThe type of device used by the visitor for the session.

Example values: mobile, desktop, tablet, wearable
Discount Codediscount_codestringThe 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
Discount Typediscount_typestringThe type of discount received by the customer in the order.

Example values: fixed_amount, percentage
Fulfillment Statusfulfillment_statusstringThe fulfillment status of the order.

Example values: fulfilled, partial, restocked
Integration Shipping Statusintegration_shipping_statusstringThe shipping status of the order, according to the integrated shipping provider.

Example values: LabeledCreated, Completed
Is First Order in Subscriptionis_first_order_in_subscriptionbooleanTrue if the order is the first in a subscription series.

Possible values: true, false
Is New Customeris_new_customerbooleanTrue if this is the customer's first order.

Possible values: true, false

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.
Is Subscription Orderis_subscription_orderbooleanTrue if the order is part of a subscription.

Possible values: true, false
Landing Pagelanding_pagestringThe 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 ModelmodelstringThe attribution model used. By default Triple Attribution.

Example values: Triple Attribution, Last Click, First Click, Linear All, Triple Attribution + Views, Linear Paid

Note that Total Impact is not available on the Pixel Orders table.
Order IDorder_idstringThe unique order ID, assigned by the main sales platform.

Example value: 4930225799243
Order Nameorder_namestringThe name of the order as assigned by the seller on the main sales platform.

Example values: #2188464, Ex-2163819-9
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.
Product IDproducts_info.product_idstringThe unique ID of the product as set within the main sales platform.

Example value: 3891505496131
Product Nameproducts_info.product_namestringThe 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 Typeproducts_info.product_typestringThe product type as set within the main sales platform.

Example values: Jackets, Coffee Mugs, Books
Product SKUproducts_info.product_skustringThe 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_idstringThe 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_cardbooleanTrue if the product purchased is a gift card.

Possible values: true, false
Product Priceproducts_info.product_name_pricenumericThe price of a single product (to the buyer).
Product Discountproducts_info.discount_amount_for_productnumericThe discount amount for the product.
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_citystringThe city of the session where the order originated.

Example values: San Francisco, Tel Aviv, Kyiv
Session Countrysession_countrystringThe country of the session where the order originated.

Example values: United Kingdom, New Zealand, United Arab Emirates
Session IDsession_idstringThe 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 Providershipping_provider_idstringThe integrated shipping provider that manages and processes the order's shipment.

Example values: shipbob, shipstation
Shop Timezoneshop_timezonestringThe designated timezone of the shop according to the tz database.
Sourcesource_namestringThe origin of the order as designated by the seller on the main sales platform.

Example values: web, pos, tiktok
Tagstagsrepeated stringTags associated with the order, assigned by the seller in the main sales platform.

Example values: Upsell, Order Credits, discount_eligible
Transactionstransactionsrecord repeatedDetails about transactions associated with the order, including payment information and status.
Transaction Created Datetransactions.created_attimestampThe time at which the transaction record was created. Formatted according to the ISO 8601 international standard .

Example value: 2024-12-25 11:30:09
Transaction Processed Datetransactions.processed_attimestampThe time at which the transaction was processed. Formatted according to the ISO 8601 international standard .

Example value: 2024-12-25 11:30:09
Transaction Payment Gatewaytransactions.payment_gateway_namestringThe payment gateway used for the transaction.

Example values: shopify_payments, paypal, gift_card
Transaction Currencytransactions.currencystringThe currency in which the transaction was processed.

Example values: USD, EUR
Transaction Statustransactions.statusstringThe status of the transaction.

Example values: SUCCESS, FAILURE, AWAITING_RESPONSE, PENDING, ERROR
Transaction Amounttransactions.amountnumericThe amount of the transaction.
Transaction Feestransactions.feesnumericThe fees associated with the transaction.
Triple Pixel IDtriple_idstringThe unique ID assigned by Triple Pixel to track visitors across sessions.

Example value: cltlok4y634IRw62AZ
UTM Mediumutm_mediumstringThe UTM medium parameter captured by Triple Pixel from the ad URL

Example values: sponsored, paid, profile_link

Measures

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

TitleIDTypeDescription
Cost of Goods (COGS)cost_of_goodsnumericThe 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.
Order-Level Custom Expensescustom_expensesnumericAdditional custom expenses associated with individual orders.

Import these using the Enrich Orders Data API endpoint.
Discountsdiscount_amountnumericThe total discount amount applied to the order, including shipping discounts.
Estimated Shipping Costsestimated_shipping_costsnumericEstimated shipping costs paid by the seller for orders within the select timeframe.

Edit these in: Cost Settings > Shipping
Gross Salesgross_product_salesnumericThe total revenue, before adjustments such as discounts, shipping, fees, taxes, and refunds.

Gross Sales = Product Price x Units Sold
Handling Feeshandling_feesnumericHandling 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_revenuenumericThe total revenue after adjustments such as discounts, shipping, fees, and taxes (but before refunds).

Order Revenue = Gross Sales - Discounts + Shipping + Tax
Pixel Purchasesorders_quantitynumericThe 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_costsnumericPayment 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_moneynumericRefund value processed during the selected time period, based on the order date (not including refunded cost of goods, taxes, and shipping).

Note that Triple Whale does not track refunds from third-party return management apps (e.g., Loop), so totals may vary from the main sales platform.
Shipping Costsshipping_costsnumericShipping 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 ValueaovformulaThe Pixel-reported average order value.

Pixel AOV = Pixel Conversion Value / Number of Pixel Purchases
Pixel New Customer Purchasesnew_customer_ordersformulaThe total number of orders placed by new customers within the selected time frame.

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.
Pixel New Customer Revenuenew_customer_revenueformulaThe total revenue derived from orders by new customers.

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.
Pixel New Customers Percentnew_customers_percentformulaThe percentage of Pixel-reported purchases made by new customers.

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.

Pixel New Customers % = Number of New Customer Pixel Purchases / Total Pixel Purchases
Non-Zero Pixel Purchasesorders_with_amountformulaThe 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_ordersformulaNumber of Pixel-reported orders placed by Returning Customers.

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.
Pixel Returning Customer Revenuereturning_customer_revenueformulaPixel-reported conversion value (order revenue) derived from Returning Customers.

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.
Pixel Returning Customers Percentreturning_customers_percentformulaThe percentage of Pixel-reported purchases made by Returning Customers.

Note that Triple Whale classifies all customers as either new or returning, while the main sales platform may leave some unclassified, potentially leading to discrepancies.

Pixel New Customers % = Number of Returning Customer Pixel Purchases / Total Pixel Purchases
Pixel True Average Order Valuetrue_aovformulaThe average non-zero order value, excluding shipping and taxes, as reported by the main 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.