Use case

How to Analyze Customer Acquisition Cost Using AI

Compare approved acquisition spend with distinct new customers by channel using the governed metrics in Cube. Define which costs, customer event, and attribution rule count before calculating CAC.

  • Define the acquisition spend and customer event
  • Compare CAC by channel
  • Reconcile channel results to the total

What is customer acquisition cost analysis with AI?

Customer acquisition cost (CAC) is acquisition spend divided by the distinct new customers acquired for the same scope and period. A useful analysis states whether spend means paid media only or a fuller set of sales and marketing costs, what event counts as a new customer, and how channel credit is assigned.

Cube's semantic layer for AI gives an agent governed spend and customer metrics to compare by channel. This is a historical measurement workflow; CAC alone does not establish customer quality, payback, profitability, incrementality, or future results. Different attribution windows or acquisition lags can also make a period-based ratio misleading unless they are stated.

Define CAC before comparing channels

Choose the cost scope, customer grain, first qualifying paid event, currency, reporting time zone, and approved attribution rule. The fictional example uses June 2026 paid media spend and distinct customer accounts first acquired during that month.

Inputs for a fictional June 2026 media CAC review
MetricIllustrative example
Spend scopePaid media only: $30,000 for June; sales labor, agency fees, and other costs are excluded.
New customer250 distinct customer accounts with a first qualifying paid event from June 1 through June 30; count each account once.
Channel assignmentEach account is assigned once under the approved attribution rule, so channel counts reconcile to 250.
Blended media CAC$30,000 divided by 250 distinct new customers = $120; calculate from totals, not an average of channel CACs.
The Prompt

Copy. Paste. Run your CAC review.

Select a Cube deployment, then run the read-only review in your preferred agent.

Start with a Cube deployment connected to your data and a model containing the metrics you want to analyze.

01Connect over MCP

Connect over MCP

Connect your agent to your existing Cube deployment and sign in through OAuth.

MCP endpoint
https://cubecloud.dev/mcp
Sign in to Cube

Complete OAuth in your agent to connect your Cube account.

Choose a deployment

Use your default deployment or select another one available to your account.

Read the MCP setup docs
01Connect with CLI

Connect with CLI

Install the Cube CLI and sign in from a terminal-capable agent.

Install the CLI
curl -fsSL https://raw.githubusercontent.com/cube-js/cube/master/install-cli.sh | sh
Log in (replace TENANT with your account name)
cube login --url https://TENANT.cubecloud.dev
Inspect API operations
cube spec --json
Read the CLI docs

02Run this prompt in your agent

Choose your agent and copy the prompt below.

Prompt for Codex
Use the Cube MCP server connected in Codex and select the intended deployment. Run read-only analytics queries. Run a historical customer acquisition cost analysis using my connected Cube deployment.Use read-only requests. Do not expose credentials, customer identifiers, or row-level customer data. DEFINITIONSInspect the model and report the approved acquisition spend metric and included cost categories, currency, customer entity and grain, first qualifying paid event, reporting time zone, channel dimension, attribution model, and any attribution window or conversion lag. Use modeled definitions. If a required metric or rule is missing, or spend and customers cannot be consistently mapped, report the gap and do not invent a calculation. CAC = approved acquisition spend / distinct new customer entities acquired for the same defined scope and period. State whether the result is paid-media CAC or includes other sales and marketing costs. Do not call a media-only result fully loaded CAC. ANALYSIS1. Review the last three complete calendar months in the deployment's reporting time zone. State the exact start and end dates for each month.2. For each month, use the approved acquisition spend for that scope and the distinct customer entities whose first qualifying paid event falls in the corresponding acquisition window. Count each entity once at the modeled grain. Follow the approved attribution and conversion-window rules. If spend timing and acquisition timing do not match, state the model's treatment and do not silently imply that same-month spend caused same-month acquisitions.3. Compare eligible channels using the approved channel assignment. Show spend, distinct new customers, and CAC with currency. Report unassigned spend or customers separately. Flag small denominators and incomplete windows.4. Reconcile channel rows to the overall totals. Calculate blended CAC from summed eligible spend divided by the distinct eligible customer total; never average channel CAC values. If channel assignments overlap or totals cannot reconcile, explain the issue instead of summing duplicated customers.5. Keep media-only and fully loaded cost scopes distinct. Do not infer customer value, profitability, payback, causal impact, or future CAC from this historical ratio. OUTPUTReturn the metric definitions and query context, a table of spend, distinct new customers, and CAC by channel plus a reconciled total, and a concise interpretation of observed differences. State exclusions, missing inputs, attribution assumptions, and limitations. Separate observations from hypotheses and do not expose customer-level data.

How it works

1

Confirm cost scope and customer definition

Check which costs are included, the customer entity grain, first qualifying paid event, currency, time zone, and approved channel attribution. Resolve missing definitions before comparing CAC.

2

Calculate channel and blended CAC

Use the same cost scope and acquisition window for each channel. Show spend and distinct new customers next to CAC, reconcile the channel counts and costs, and calculate the blended value from total spend divided by total customers.

3

Read the result within its limits

A lower historical CAC is a useful comparison, not proof of better retention, margin, payback, or incremental impact. Check customer value and acquisition lag separately before changing budget or making a forecast.

What a CAC review can show

The image and worked example use fictional June 2026 paid-media values. Each channel CAC divides its spend by distinct new customers; blended media CAC uses the summed totals.

Worked example: fictional June 2026 paid-media CAC by channel
ChannelPaid media spendDistinct new customersPaid-media CAC
Paid search$12,000120$100
Paid social$9,00060$150
Events$6,00030$200
Partner referral$3,00040$75
Total$30,000250$120
  • The blended media CAC is $30,000 divided by 250, or $120 per new customer. This uses the combined numerator and denominator rather than averaging four channel CACs.
  • Events has the highest illustrated CAC at $200; partner referral has the lowest at $75. Paid search represents 40% of spend ($12,000 of $30,000) and 48% of new customers (120 of 250), with a $100 CAC.
  • These differences describe the fictional allocation only. They do not show why customers converted or whether one channel produced more valuable customers.

This hand-calculated example and its image use fictional values, not a customer result, benchmark, or forecast. It covers paid media only and excludes other acquisition costs, customer value, payback, and incremental impact. Real results depend on modeled metric and attribution definitions.

Frequently Asked Questions

Divide acquisition spend for a defined scope and period by the distinct new customers acquired for that same scope and period. State the included cost categories, customer grain, qualifying acquisition event, currency, and attribution rule. If the numerator includes paid media only, label the result media CAC.

Try Cube for free