Updated: Jul 23, 2026 • 2 min read

Automate ecommerce discount performance reporting

Sales generated with a discount are not automatically sales generated by the discount. A promotion report should connect code usage with margin, customer type, product mix, returns, and repeat behavior so the team can distinguish useful offers from expensive leakage.

Why discount code usage is only the starting point

Shopify's sales report documentation explains that the Sales by discount codes report groups sales by discount and that orders can appear more than once when combinable discounts are used.

That report answers how codes were applied. A decision-ready workflow also asks:

Data to connect

Use read-only access to:

Define how combined discounts, free shipping, gift cards, returns, and canceled orders are treated before comparing promotions.

Metrics and comparisons

For each discount or promotion, calculate:

Where possible, compare with a holdout, an unexposed segment, or a similar non-promotion period. Label observational comparisons clearly and do not present correlation as incremental lift.

Example Agent instruction

"Every Monday, report discount performance for active and recently ended promotions. Show orders, net sales, discount value, average order value, units per order, contribution margin, new customer share, return rate, and repeat purchase rate when the observation window is mature. Flag stacked codes, use outside eligibility rules, margin below threshold, and promotions with weak retention. Distinguish measured lift from descriptive comparison."

What the Agent should produce

A strong report contains:

  1. Promotion scorecard
  2. Margin and product mix impact
  3. Customer acquisition and retention quality
  4. Returns and refund impact
  5. Code leakage or stacking exceptions
  6. Recommendation to continue, revise, test, or stop

Every recommendation should state the evidence, confidence limit, and owner.

Implementation workflow

  1. Define promotion, margin, and customer status rules.
  2. Connect Shopify, lifecycle, and cost sources through Connectors.
  3. Reproduce one completed promotion manually.
  4. Validate combined discount and refund treatment.
  5. Schedule the weekly scorecard in a Document.
  6. Route pricing changes and code deactivation for human approval.
  7. Use Logs to trace missing cost or campaign data.

Review checklist

How to measure success

Track contribution margin by promotion, discount leakage, reporting hours, promotion decision time, new customer quality, and percentage of offers evaluated with a valid comparison.

Next step

Choose one recently completed promotion and reconcile its orders, discounts, refunds, and margin. Once the scorecard is trusted, schedule the report for every active offer. Book a demo to set up the workflow.