
Overview
While Polar automatically tracks revenue from orders and subscriptions, Cost Insights allows you to track the costs associated with delivering your product or service. By combining revenue and cost data, you can gain deep insights into profitability on a per-customer basis.How It Works
Cost Insights works in three simple steps:- Ingest events with cost data: Add a
_costproperty to events metadata when ingesting them through Polar’s Event Ingestion API - Automatic aggregation: Polar automatically aggregates costs alongside your revenue data
- Query and analyze: Use the Metrics API, or the Polar Dashboard to retrieve costs, profits, and customer LTV
Quick Example
Common Use Cases
- AI/LLM Applications: Track the cost of API calls to OpenAI, Anthropic, or other LLM providers
- Infrastructure Costs: Monitor compute, storage, or bandwidth costs per customer
- Third-Party Services: Track costs from email providers, SMS gateways, or other external services
- Customer Profitability: Calculate profit margins and LTV for each customer


