Profit Tracking calculates true profit by subtracting cost of goods sold (COGS) from revenue, giving you accurate ROI and profitability metrics per order, campaign, and customer.Documentation Index
Fetch the complete documentation index at: https://docs.datalyr.com/llms.txt
Use this file to discover all available pages before exploring further.
What It Does
Calculates Real Profit:- Profit = Revenue - COGS
- Profit margin percentage
- Profit by campaign, source, product
- Profit ROAS (profit / ad spend)
- Reads product costs from Shopify
- Syncs with every order
- Updates metrics every 15 minutes
- Works with historical orders
How It Works
Product Costs
Set product costs in Shopify Admin:Profit Metrics
Dashboard Shows:- Shopify Profit (total for period)
- Profit Margin (profit / revenue × 100)
- Average Order Profit
- Profit by campaign
- Profit by product
- Revenue per order
- COGS per order
- Profit per order
- Profit margin per order
Use Cases
Campaign ProfitabilityProfit-Based Ad Optimization
Send Profit to Ad Platforms
Configure Conversion Rules to send profit instead of revenue: Standard (Revenue):Profit ROAS Targets
Google Ads Example:Setup Requirements
Shopify Only:- Profit tracking requires Shopify integration
- Other platforms (Stripe) don’t include COGS
- Must set product costs in Shopify
- Products without costs show $0 COGS
- Overestimates profit if costs missing
- Always set costs before tracking
- Backfills last 90 days on initial sync
- New orders sync every 15 minutes
- Cost changes don’t affect past orders
Best Practices
Set Costs Immediately:- Add cost when creating product
- Update costs when supplier prices change
- Include all costs (manufacturing, packaging, shipping to warehouse)
- Check profit margin weekly
- Track profit ROAS by channel
- Alert if margin drops below target
- Set CAC based on profit LTV, not revenue
- Optimize campaigns for profit ROAS
- Focus on high-margin products
- Product manufacturing cost
- Packaging and materials
- Shipping to warehouse
- Import duties and taxes
Next Steps
Shopify Integration
Set up Shopify integration
Reports
View profit by attribution
Dashboard
Monitor profit metrics
Conversion Rules
Send profit to ad platforms