| Level | What’s subtracted | What it tells you |
|---|---|---|
| CM1 | COGS (cost of goods sold) | Gross margin |
| CM2 | + Fulfillment, transaction & gateway fees, shipping | Post-logistics margin |
| CM3 | + Marketing and ad spend | Contribution margin (most commonly used) |
| CM4 | + Operating expenses, agency fees, and other | Operating profit |
Setup
Enter COGS in Shopify
Go to Shopify Admin → Products and select a product. For each variant, enter the Cost per item field. If you sell a product for 5 to produce, enter $5. Upstack pulls this in automatically — no manual sync required.
After configuring COGS, allow approximately 4 hours for historical data to backfill. CM1 values for past orders populate automatically once the backfill completes.
Configure your other costs in Upstack
Open Settings → Cost Overview to add shipping, gateway fees, order costs, a fallback product margin, and fixed and variable costs. Each cost is assigned a category that maps to a contribution-margin tier:
Fixed and variable costs land in the tier matching their category. See Cost settings for a full walkthrough of every category.
| Cost category | CM tier |
|---|---|
| COGS (product cost) | CM1 |
| Fulfillment, transaction, gateway, shipping | CM2 |
| Marketing and ad spend | CM3 |
| Operating expenses, agency fees, other | CM4 |
P&L dashboard
Two views are available:- Summary — aggregate P&L across a date range
- Daily breakdown — granular day-by-day performance
LTV cohort dashboard
LTV cohort dashboard
The LTV Cohort Dashboard shows customer lifetime value by acquisition cohort. Use it to measure how quickly cohorts pay back acquisition cost and identify your highest-value customer segments.This replaces standalone LTV tools like Lifetimely — the data is built directly from your Upstack event pipeline, so cohort metrics stay consistent with your P&L and attribution data.
Next step
Verify end-to-end delivery
Confirm the complete pipeline works — from storefront event through attribution to destination delivery.
Related
Cost settings
Set up product, order, shipping, gateway, fixed, and variable costs in detail.
Attribution and reporting
Learn how Upstack attributes conversions and calculates reporting metrics across channels.
Attribution reporting dashboard
Explore the attribution reporting dashboard and available metrics.
Custom events
Configure NC Purchase, subscription events, and order source exclusions for ad platform optimization.
Connect a destination
Set up Meta CAPI as your first server-side destination for high-quality conversion events.