Tool name:
shopify_discount_performance · Previously: get_discount_performance · Read-onlyWhen to use it
This is what answers “is this promotion working?”, “how much has the BOGO made?”, “did the free shipping threshold lift average order value?”, and “which discounts are worth running again for Black Friday?” To compare offers, call it once per discount. There is no all-at-once version.Parameters
What comes back
These are the same figures as the in-app Analytics tab, so an assistant’s numbers and the dashboard’s numbers agree.
Errors
Things people ask that land here
- “How is my BOGO performing this month?”
- “Compare the free gift offer and the volume discount for June.”
- “How much margin did the sitewide 20% give away?”
- “Which promotion should I re-run for Black Friday?”
Limits
- Totals only. No orders, no line items, no customer records.
- One discount at a time. Store-wide sales, sessions, and discounts AIOD doesn’t manage are out of scope.
- Zero orders on a new discount is normal. Attribution lags checkout by a short while, and
notesays so. Report the zero with that caveat rather than calling the discount broken.

