The Product Analytics table provides insights into product performance, including sales, orders, and customer metrics. Analyzing this table helps understand sales drivers, purchasing trends, and marketing campaign effectiveness on product sales.
Note
event_date
is a required field for queries on this table.
Dimensions
Dimensions are immutable properties that can be used for grouping data.
Name | Type | Description | Source |
---|---|---|---|
event_date | date | The date the order was placed or the ad was run. Based on the time zone of the shop at the moment of purchase, or the time zone of the ad platform at the time the ad was run. | Shopify, Amazon |
event_date.day | date | The day on which the order was placed. Derived from event_date . | Shopify, Amazon |
event_date.week | date | The Sunday of the week during which the order was placed. Derived from event_date . | Shopify, Amazon |
event_date.month | date | The month during which the order was placed. Derived from event_date . | Shopify, Amazon |
event_date.quarter | date | The first month of the quarter during which the order was placed. Derived from event_date . | Shopify, Amazon |
event_date.year | date | The year during which the order was placed. Derived from event_date . | Shopify, Amazon |
entity | string | The entity type of the product. Example values: product , variant | Shopify, Amazon |
id | string | The unique ID of the product or variant. Example value: 42153843458192 | Shopify, Amazon |
title | string | The title of the product or variant. Example values: Basic Hero Tee , XL , Black | Shopify, Amazon |
product_id | string | The unique product ID. Example value: 7806442569870 | Shopify, Amazon |
product_title | string | The title of the product. Example values: $20 USD Gift Card , Unisex Hoodie | Shopify, Amazon |
variant_id | string | The unique variant ID. Example value: 33193425920151 | Shopify, Amazon |
variant_title | string | The title of the variant. Example values: Forest Green , M , iPhone 14 Pro | Shopify, Amazon |
sku | string | The stock keeping unit associated with the product or variant. Example values: SIL-RING-4445 , NVDPROTECTION03 | Shopify, Amazon |
vendor | string | The vendor of the product. Example values: Route , Canon , Corso | Shopify, Amazon |
product_tags | repeated string | Tags associated with the product for categorization. Example values: 3-pack , Sale , discount_eligible | Shopify, Amazon |
inventory_quantity | string | The current inventory quantity of the product or variant. Example values: 21749 , 57 , 332 | Shopify, Amazon |
Measures
Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.
Name | Type | Description | Source |
---|---|---|---|
revenue | numeric | Total revenue from sales. | Shopify, Amazon |
new_customer_revenue | numeric | Revenue from sales to new customers. | Shopify, Amazon |
orders | numeric | Total number of orders placed. | Shopify, Amazon |
new_customer_orders | numeric | Number of orders placed by new customers. | Shopify, Amazon |
total_items_sold | numeric | Total quantity of items sold across all orders. | Shopify, Amazon |
fulfillment_costs | numeric | Total costs associated with order fulfillment. | Shopify, Amazon |
new_customer_fulfillment_costs | numeric | Fulfillment costs specifically for orders placed by new customers. | Shopify, Amazon |
customers | numeric | Total number of unique customers. | Shopify, Amazon |
total_order_value | numeric | The total value of all orders. | Shopify, Amazon |
new_customer_total_order_value | numeric | Total order value specifically from new customers. | Shopify, Amazon |
number_of_ads | numeric | Total number of ads related to the products. | Facebook, Google, TikTok, Twitter, Pinterest, Snapchat, Bing, Amazon, Criteo, Mountain, Klaviyo, Yotpo Email and SMS, Taboola, Outbrain |
spend | numeric | Total ad spend on the products. | Facebook, Google, TikTok, Twitter, Pinterest, Snapchat, Bing, Amazon, Criteo, Mountain, Yotpo Email and SMS, Taboola, Outbrain |
clicks | numeric | Total number of clicks on ads related to the products. | Facebook, Google, TikTok, Twitter, Pinterest, Snapchat, Bing, Amazon, Criteo, Klaviyo, Yotpo Email and SMS, Taboola, Outbrain |
impressions | numeric | The total number of times ads related to the products were displayed. | Facebook, Google, TikTok, Twitter, Pinterest, Snapchat, Bing, Amazon, Criteo, Mountain, Taboola, Outbrain |
Derived
Derived fields are metrics that are pre-calculated using multiple measures or advanced formulas.
Name | Type | Description | Source |
---|---|---|---|
cpa | formula | Cost to acquire a single paying customer. Formula: safe_divide(sum(spend), sum(orders)) as cpa | |
new_customer_cpa | formula | Cost to acquire a single new paying customer. Formula: safe_divide(sum(spend), sum(new_customer_orders)) as new_customer_cpa | |
roas | formula | Total revenue generated relative to ad spend. Formula: safe_divide(sum(revenue), sum(spend)) as roas | |
new_customer_roas | formula | Revenue generated from new customers relative to ad spend. Formula: safe_divide(sum(new_customer_revenue), sum(spend)) as new_customer_roas | |
cpm | formula | Cost of 1,000 impressions of the ad. Formula: safe_divide(sum(spend), sum(impressions) / 1000) as cpm | |
cpc | formula | Average cost for each click on an ad. Formula: safe_divide(sum(spend), sum(clicks)) as cpc | |
ctr | formula | Ratio of visitors who click on a specific link, to the total number of visitors who viewed the ad. Formula: safe_divide(sum(clicks), sum(impressions)) as ctr | |
gross_profit | formula | Total profit excluding fulfillment costs. By default shown in the shop's currency. Formula: sum(revenue) - sum(fulfillment_costs) as gross_profit | |
new_customer_gross_profit | formula | Gross profit generated from new customers specifically. Formula: sum(new_customer_revenue) - sum(new_customer_fulfillment_costs) as new_customer_gross_profit | |
product_aov | formula | Average Order Value (AOV) for products, representing the average amount spent per order. Formula: safe_divide(sum(total_order_value), sum(orders)) as product_aov | |
new_customer_aov | formula | AOV specifically for new customers, indicating the average spend of new customers per order. Formula: safe_divide(sum(new_customer_total_order_value), sum(new_customer_orders)) as new_customer_aov | |
avg_purchase_price | formula | Average purchase price across all items sold, indicating the average price per item. Formula: safe_divide(sum(revenue), sum(total_items_sold)) as avg_purchase_price | |
contribution_margin | formula | Contribution margin calculated as revenue minus COGS and advertising spend. Formula: sum(revenue) - sum(fulfillment_costs) - sum(spend) as contribution_margin | |
contribution_margin_per_item | formula | Contribution margin per item, showing the profit contribution for each item sold. Formula: safe_divide(sum(revenue) - sum(fulfillment_costs) - sum(spend), sum(total_items_sold)) as contribution_margin_per_item |