Product Analytics Table Function (BETA)
product_analytics_tvf
The Product Analytics table provides detailed insights into product and variant performance, including sales, orders, customer behavior, and ad-driven metrics like clicks, impressions, and spend. Analyzing this table helps uncover sales drivers, understand purchasing trends, and evaluate how marketing efforts impact product-level performance.
Key Concepts When Using Product Analytics Table Function
Data Structure
- The Product Analytics table function provides insights at both the product and variant levels. Data is structured to allow users to analyze performance metrics for individual variants (e.g., specific sizes or colors) and aggregate data at the product level (e.g., all sizes and colors of a product).
- The
id
field represents either theproduct_id
orvariant_id
depending on the row, ensuring seamless identification across different levels of granularity.Metrics and Attribution
- Metrics such as
spend
,clicks
,impressions
, andvisits
are proportionally distributed (based on quantity, not price) to products and variants based on their contribution to completed orders, using theTriple Attribution
model andlifetime
attribution window by default.
Note
event_date
is a required field for queries on this table.
Parameters
Parameters can be used to customize and filter the data in the table, and are applied before aggregation.
Title | ID | Description |
---|---|---|
Include Free Products |
| Includes products considered "free" based on multi-item discounts. Possible values: Note: Some discounts are spread across multiple items in an order; if the discount fully covers the price of some of the items, those items are counted as “free". |
Include Non-Active Products |
| Includes non-active (e.g. draft or pending) products. Possible values: |
Dimensions
Dimensions are immutable properties that can be used for grouping data.
Title | ID | Type | Description |
---|---|---|---|
Event Date |
| date | The date the order was placed. Based on the time zone of the shop at the moment of purchase. |
Event Day |
| date | The day on which the event occurred. Derived from |
Event Week |
| date | The Sunday of the week during which the event occurred. Derived from |
Event Month |
| date | The month during which the event occurred. Derived from |
Event Quarter |
| date | The first month of the quarter during which the event occurred. Derived from |
Event Year |
| date | The year during which the event occurred. Derived from |
Entity |
| string | The entity type of the item. Example values: |
ID |
| string | The unique ID of the product or variant as set within the main sales platform. Example value: |
Inventory Quantity |
| string | The current inventory quantity of the product or variant. Example values: |
Product ID |
| string | The unique ID of the product as set within the main sales platform. Example value: |
Product Image URL |
| string | The URL of the product image. |
Product Tags |
| repeated string | Tags associated with the product, assigned by the seller in the main sales platform. Example values: |
Product Title |
| string | The title of the product as set within the main sales platform. Example values: |
SKU |
| string | The SKU (Stock Keeping Unit) for the product or variant as set within the main sales platform. Example values: |
Title |
| string | The title of the product or variant as set within the main sales platform. Example values: |
Variant ID |
| string | The unique ID of the variant as set within the main sales platform. Example value: |
Variant Title |
| string | The title of the variant as set within the main sales platform. Example values: |
Vendor |
| string | The vendor of the product or variant. Example values: |
Measures
Measures are numeric fields that can be aggregated and/or combined to calculate new metrics.
Title | ID | Type | Description |
---|---|---|---|
Added to Cart Events |
| numeric | Number of times the product or variant was added to a cart. Adding multiple units in a single action counts as one event. |
Added to Cart Items |
| numeric | Total quantity of the product or variant added to carts. Each unit counts individually, even when multiple units are added in a single action. |
Clicks |
| numeric | Total number of ad clicks attributed to the product or variant, based on its share of units sold per ad. Clicks for Product = (Units Sold for Product / Units Sold for Ad) × Clicks for Ad, summed across all relevant ads and campaigns. |
Customers |
| numeric | Total number of unique customers who purchased the product or variant. |
Fulfillment Costs |
| numeric | Total costs associated with fulfilling orders that include the product or variant. |
Impressions |
| numeric | Total number of ad impressions attributed to the product or variant, based on its share of units sold per ad. Impressions for Product = (Units Sold for Product / Units Sold for Ad) × Impressions for Ad, summed across all relevant ads and campaigns. |
New Customer Fulfillment Costs |
| numeric | Total costs associated with fulfilling orders that include the product or variant placed by new customers. |
New Customer Orders |
| numeric | The total number of orders by new customers that contain the product or variant. 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. |
New Customer Revenue |
| numeric | The total revenue derived from orders by new customers that contain the product or variant. 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. |
New Customer Total Items Sold |
| numeric | Total quantity of the product or variant ordered 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. |
New Customer Total Order Value |
| numeric | The total revenue of orders by new customers that contain the product or variant, before adjustments such as discounts, shipping, fees, taxes, and refunds. 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. |
Ads |
| numeric | Total number of ads contributing to orders containing the product or variant. |
Orders |
| numeric | The total number of orders that contain the product or variant. |
Repeat Customers |
| numeric | Total number of unique customers who purchased the product or variant more than once. |
Returns |
| numeric | The total number of product or variant units returned. |
Order Revenue |
| numeric | The total revenue derived from orders by that contain the product or variant. |
Ad Spend |
| numeric | Total ad spend attributed to the product or variant based on its proportional share of units sold in each ad. This does not include custom ad spend or adjustments for returns. Ad Spend for Product = (Units Sold for Product / Units Sold for Ad) × Ad Spend for Ad, summed across all relevant ads and campaigns. |
Units Sold |
| numeric | The total number of individual units sold for the product or variant. |
Total Order Value |
| numeric | The total revenue of orders that contain the product or variant, before adjustments such as discounts, shipping, fees, taxes, and refunds. |
Visits |
| numeric | Total number of sessions attributed to the product or variant, based on its share of units sold per ad. Visits for Product = (Units Sold for Product / Units Sold for Ad) × Sessions for Ad, summed across all relevant ads and campaigns. |
Derived
Derived fields are metrics that are pre-calculated using multiple measures or advanced formulas.
Title | ID | Type | Description |
---|---|---|---|
Average Purchase Price |
| formula | The average price per item sold. Average Purchase Price = Order Revenue / Total Items Sold |
Contribution Margin |
| formula | The total profit contribution after subtracting fulfillment costs and ad spend from total revenue. Contribution Margin = Order Revenue - Fulfillment Costs - Ad Spend |
Contribution Margin Per Item |
| formula | The profit contribution for each item sold. Contribution Margin Per Item = (Order Revenue - Fulfillment Costs - Ad Spend) / Total Items Sold |
Cost Per Acquisition (CPA) |
| formula | The cost to acquire a single paying customer. CPA = Total Ad Spend / Total Orders |
Cost Per Click (CPC) |
| formula | The average cost for each click on an ad. CPC = Total Ad Spend / Total Clicks |
Cost Per Thousand Impressions (CPM) |
| formula | The cost to reach 1,000 ad impressions. CPM = Total Ad Spend / (Total Impressions / 1,000) |
Click-Through Rate (CTR) |
| formula | The percentage of ad impressions that resulted in clicks. CTR = Total Clicks / Total Impressions |
Gross Profit |
| formula | The total profit excluding fulfillment costs. Gross Profit = Revenue - Fulfillment Costs |
New Customer AOV |
| formula | The average order value for new customers, indicating the average spend per order by new customers. New Customer AOV = New Customer Total Order Value / New Customer Orders |
New Customer CPA |
| formula | The cost to acquire a single new paying customer. New Customer CPA = Total Ad Spend / New Customer Orders |
New Customer Gross Profit |
| formula | The gross profit generated from new customers. New Customer Gross Profit = New Customer Revenue - New Customer Fulfillment Costs |
New Customer ROAS |
| formula | Revenue generated from new customers relative to ad spend. New Customer ROAS = New Customer Revenue / Ad Spend |
Pixel Conversion Rate |
| formula | The percentage of visitors who made a purchase. Pixel Conversion Rate = Total Orders / Total Visitors |
Product AOV |
| formula | The average order value for products, representing the average amount spent per order. Product AOV = Total Order Value / Total Orders |
Return Rate |
| formula | The percentage of purchased items that customers return. Return Rate = Returns / Total Items Sold |
Return on Ad Spend (ROAS) |
| formula | The total revenue generated relative to ad spend. ROAS = Order Revenue / Ad Spend |
Repeat Purchase Rate |
| formula | The percent of purchases made by returning customers. RPR = Repeat Customers / Total Orders |
Updated 3 days ago