DEVELOPED COURSE TEXT
Reconcile customers,orders,revenue and attributed credit
The event key determines what a conversion means
A digital funnel can count impressions, sessions, people, orders or retained paid customers. Those are different units. Two orders from one customer are not a duplicate simply because the customer identifier repeats. Two copies of the same order event can be duplicates even if they arrived from different channels. An analysis must define the business key and outcome window before calculating a ratio.
The assigned metrics reading uses conversion as a broad action concept. Before calling a cost ratio customer acquisition cost, state whether its denominator is clicks, registrations, orders, people or genuinely incremental customers. A low cost per click cannot be compared directly with cost per retained customer. The ratio may be arithmetically correct while its label implies a different outcome.
Attribution is a reconciliation rule, not a causal effect
First-touch and last-touch rules assign credit differently to the same journeys. A coherent exclusive rule should reconcile to its defined total, but agreement with the total does not establish that removing a channel removes the credited revenue. Separate platform claims can overlap and exceed actual revenue because each claims the same order. Cross-device identity and missing events add further uncertainty in real records.
Keep gross paid revenue, refunds and retained revenue separate. A pending unpaid order is not settled revenue within the stated window. A refunded order can remain a real historical purchase while contributing zero retained revenue. Do not erase it from every denominator merely to improve an acquisition ratio. Preserve the actual question and label each transformation.
The original Vale ledger supplies every paid order and channel path. It is small enough to reconcile by hand and later reproduce in executable code. Its purpose is a complete analytical data flow, not an estimate of current advertising-platform performance. The next chapters add sales quality, cohort value, experiments and constrained decisions without turning this descriptive ledger into a causal study.
Worked records
Record 1
Fictional paid orders: a/o 1 100, b/o 2 120, c/o 3 80, d/o 4 150 with full 150 refund, e/o 5 200, f/o 6 100, f/o 7 50. Paths: first→last a search→search, b search→email, c email→search, d email→email, e direct→direct, f search→email. Person g has search click/no order; h email→search has pending unpaid 140, excluded from paid revenue. Spend search 100, email 80. Keys o 1…o 7 are unique; all paths precede these purchases in the defined window.
Develop the reasoning
Gross paid revenue 800, refund 150, retained 650; 7 paid orders, 6 paid purchasers and 5 people with positive retained revenue. Last-touch gross: search 180, email 420, direct 200. Last-touch retained: search 180, email 270, direct 200. First-touch retained: search 370, email 80, direct 200. If search claims 450 and email 500 plus direct 200, claims total 1150, overlapping gross by 350. Reconcile the business ledger rather than sum platform dashboards. Last-touch retained revenue/spend is 1.8 search and 3.375 email; neither is causal incremental return or profit.
Progressive practice — optional
1. Foundation
Does deduplicating on customer f correctly remove one of o 6/o 7?
Compare the worked reasoning
No. They are two unique orders totaling 150. Customer-level and order-level analysis need different keys.
Change the record
A second event repeats order o 6 with the same business identifier.
Compare the changed-record reasoning
Deduplicate or reconcile that repeated order event under a documented rule; do not remove genuine o 7.
2. Application
Person d receives only 100 of the 150 refund. Recompute retained revenue and last-touch email credit.
Compare the worked reasoning
Retained total 700; email retained 320. Gross paid revenue remains 800. A refund correction changes retained outcome, not the historical paid total.
Change the record
The remaining 50 is a disputed pending adjustment.
Compare the changed-record reasoning
With 100 refunded, current known retained total is 700 and last-touch email credit 320; gross paid revenue stays 800. If the disputed remaining 50 is ultimately refunded, final retained total becomes 650 and email credit 270. Assuming these are the only unresolved adjustments, final retained revenue ranges 650–700 and email credit 270–320. Preserve the unresolved amount rather than call 700 final.
3. Transfer
A team calls all 420 email last-touch gross revenue caused by email. Repair the claim.
Compare the worked reasoning
The 420 is exclusive last-touch gross credit under the stated rule. Incrementality needs a credible counterfactual; refunds, fulfillment cost and spend also separate revenue from contribution.
Change the record
A randomized email holdout is supplied.
Compare the changed-record reasoning
Use its eligible population, assignment and common-window outcome for the causal question. Do not replace the ledger’s descriptive rule with a different unnamed estimand.
Sources and scope
- OpenStax: Metrics used to evaluate online marketing: Inspected funnel/source/CPC/CPA/dashboard teaching. Original Vale records distinguish the conversion key, revenue attribution and causal incrementality rather than treating every metric as a customer outcome.