Revenue analytics
Measure what SMS changes
A delivered message, a tracked click, an attributed purchase and an incremental purchase answer different questions. Build a report that explains each step before using revenue to expand the send calendar.
Keep four measurement layers separate
- Delivery: provider status describes transport, not proof that a person read the text. Separate queued, attempted, delivered, failed and unknown statuses; retain status updates.
- Engagement: unique tracked clickers differ from total clicks. Record how automated link checks and repeat clicks are filtered, and label any remaining uncertainty.
- Attribution: an agreed rule assigns purchase credit to a touchpoint within a window. It does not establish that the purchase required the message.
- Incrementality: estimate the difference in outcomes between comparable randomly assigned eligible customers offered the SMS treatment and a control group. Report the uncertainty around that difference.
Shopify advises matching date range, attribution model and traffic type when comparing attribution reports. Its marketing performance documentation is a useful starting point for a Shopify-based reconciliation. A platform can fit this job when its exports expose the identifiers, timestamps and definitions your team needs; ask for an example export before committing.
Write the measurement contract before the campaign
Save the campaign ID, assignment time, eligible audience snapshot, treatment definition, control policy, attribution rule, purchase observation window and report cutoff. Define whether an order belongs to the send-date cohort or order-date report. Keep historical cohorts stable when segmentation rules later change.
For delivery rate, state whether the denominator is attempted messages or accepted submissions. For unique click rate, state whether it is delivered recipients or attempted recipients. For purchase rate and causal comparisons, use assigned eligible customers in each arm, including assigned customers whose messages fail. A delivered-only analysis selects on a post-assignment event and answers a different question. Show audience size and exclusions beside every rate; never compare rates with different denominators as if they were equivalent.
Eligibility should reflect the consent, suppression, geography, inventory and campaign rules in force at assignment. Log exclusion reasons without exposing unnecessary personal data. Keep channel permission separate from identity matching: joining two profiles does not create permission to send.
Make orders and identities reconcile
Use stable store and order IDs to count each order once. Deduplicate event retries using event IDs or a documented idempotency key; preserve legitimate separate purchases. Maintain an auditable customer identity map for guest checkout, changed phone numbers and merged profiles. Leave unresolved matches in an explicit unknown bucket rather than forcing them into the SMS cohort.
Store event time and ingestion time separately. Normalize timestamps to a stated reporting timezone, retain offsets, and handle daylight-saving changes. Label the attribution window, whether clicks or other events qualify, and how ties are resolved. Late-arriving orders can revise a cohort without changing the original assignment.
Keep source currency, reporting currency, exchange-rate date and conversion method. Define net sales consistently: discounts, cancellations, partial refunds and returns must be handled once. Separate taxes and shipping revenue according to the finance definition. Reconcile order counts and amounts to the store ledger using identical scope; document residual differences rather than silently adjusting totals.
Separate channel credit from channel lift
An email click, paid ad and SMS click can all precede one order. Keep the touchpoint sequence and use a single reporting allocation rule when producing a deduplicated cross-channel total. Do not add independent vendor revenue claims. A coupon can leak outside its audience, and a tracked link can be forwarded; neither is a causal control.
Randomize at a stable customer or household unit appropriate to the business so linked profiles do not land in opposing arms. Balance or stratify important baseline characteristics before assignment. For the incremental value of adding SMS, keep other channel treatment comparable across arms. For the whole program, withhold the defined bundle instead. These are different experiments.
Log contamination from overlapping flows, retargeting, forwarded offers and manual sends. Keep contaminated customers in the primary assigned-arm analysis and show a sensitivity analysis where justified. Removing them after observing outcomes can bias the result. Track guardrails such as opt-outs, complaints, support load and repeat purchasing without using them to invent a universal safe sending frequency.
Choose sample size, minimum meaningful contribution change, duration and stopping rules before launch, allowing for the purchase and refund cycle. Report an interval appropriate to the randomization unit; repeat orders from one customer are not independent customers. A small or imprecise result is inconclusive, not proof of no effect. Avoid declaring a winner from repeated daily peeks or a favorable subgroup discovered afterward.
Evaluate contribution after the complete cost
For each arm, start with net sales after discounts and refunds, then subtract cost of goods, variable fulfillment and shipping subsidy, payment fees, return handling, chargebacks and attributable support cost. Subtract messaging segments, carrier charges and other variable campaign costs. Do not subtract discounts or refunds again if already included in net sales.
Divide each arm's contribution by its assigned eligible customer count. The treatment-minus-control difference estimates incremental contribution per eligible customer under this experiment. For a rollout estimate, multiply by the proposed eligible audience and then subtract incremental fixed platform, integration, creative, analyst and operating costs that were not already allocated. State the scaling assumption; a new audience or heavier schedule may behave differently. Keep sunk costs separate from costs avoidable by stopping the program.
Report revenue per delivered message as an operational measure beside this analysis, with its denominator visible. It cannot substitute for incremental contribution. Include peak-volume billing and recurring versus one-time costs in a purchasing decision.
Handle missing and late data before changing spend
Display the last successful sync, source watermark, expected lag and unresolved event counts for each feed. Missing delivery receipts are unknown, not failed; missing purchases are not zero revenue. Compare source event counts, unique IDs, orders and net amounts with the reporting dataset over the same period. Investigate whether missingness differs by treatment arm, device, market or customer type.
When a webhook or export fails, pause decisions dependent on that feed, retain the last reconciled report and mark newer cohorts provisional. Backfill from the authoritative source, replay with deduplication, recompute affected cohorts and reconcile again. Preserve the old report version and explain revisions. Recovery of reporting must not resend a marketing message. Close a cohort only under a documented maturity policy; reopen it for material late refunds or corrections.
Hypothetical scenarios: proposed acceptance fixtures
These are proposed checks for a measurement workflow, not merchant results or promises about an app.
- Duplicate purchase: the same order arrives through a webhook and a backfill. Expected: one order, with both source records traceable; a second genuine order remains separate.
- Shared credit: a customer clicks email and SMS before buying. Expected: one store order; attribution follows the saved rule, while vendor claims remain separately labeled.
- Delivery failure: a treatment customer never receives the text. Expected: the customer remains in the treatment denominator; delivery diagnostics explain the failed attempt.
- Refund and currency: a foreign-currency order is partly refunded after the first report. Expected: the cohort is revised using the documented currency policy, with no second subtraction of the refund.
- Midnight and late ingestion: an order occurs near a timezone boundary and syncs later. Expected: event time determines its cohort under the saved policy; ingestion delay is visible.
- Contaminated control: an overlapping flow sends a control customer an SMS. Expected: the exposure is flagged, primary assignment retained and causal interpretation qualified.
- Missing feed: purchase imports stop while clicks continue. Expected: revenue stays provisional, spend expansion pauses, and a reconciled backfill restores the report without triggering sends.
- Uncertain economics: attributed sales rise but the incremental contribution interval includes a meaningful loss. Expected: no confident scale claim; investigate costs, extend a preplanned test where appropriate, or revise the offer.
Turn the report into a decision
If transport deteriorates, investigate delivery and audience quality before changing the offer. If clicks rise without reconciled purchases, inspect landing pages, identity matching and purchase lag. If attribution rises while controlled lift remains uncertain, maintain that distinction in the budget discussion. If mature incremental contribution is unfavorable, reduce or redesign the treatment rather than defending attributed revenue.
Assign an owner for source reconciliation, experiment integrity and financial signoff. Agree on business-specific guardrails and a review date. For the next campaign, connect this contract to email and SMS coordination, campaign restraint and the abandoned-cart playbook. Choose software by whether its demonstrated data and workflow controls support your contract.