shopify-admin-discount-ab-analysis

Compares Shopify discount codes by redemption counts and revenue for date ranges via GraphQL queries.

174|18|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-discount-ab-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-admin-discount-ab-analysis
Source: https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/conversion-optimization/shopify-admin-discount-ab-analysis
Command: npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-discount-ab-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the guesswork in promotion performance by comparing how different discount codes convert and generate revenue over the same time window.

Core Features & Use Cases

  • Discount code performance comparison: Measures redemption uses (via discount metadata) alongside orders redeemed within the specified date range.
  • Revenue and AOV impact analysis: Aggregates total revenue per code and computes average order value, enabling a fair A/B-style comparison.
  • Read-only Shopify Admin querying: Uses GraphQL queries to pull discount and order data without executing mutations.

Quick Start

Use the skill to compare two or more discount codes for a defined date range by running it with store domain, at least two discount codes, and start/end dates.

Frequently Asked Questions about shopify-admin-discount-ab-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I compare Shopify discount code performance for promotion A/B testing?

You can compare Shopify discount codes by querying the Admin GraphQL API for redemption uses and resulting revenue across multiple codes during a specified date range. This aggregates counts and revenue metrics per code for promotion A/B testing without dedicated analytics software.

Can I calculate average order value by discount code using Shopify Admin GraphQL?

Yes, you can calculate average order value by discount code using Shopify Admin GraphQL. By executing discountNodes and orders queries, it aggregates total revenue per code and computes AOV, enabling a fair A/B-style comparison across your campaigns.

What Shopify Admin API permissions do I need to analyze discount code revenue?

To analyze discount code revenue, you need authenticated Shopify Admin access with read_discounts and read_orders API scopes. These permissions allow executing GraphQL queries to pull discount metadata alongside order data without executing mutations.

Does this Shopify discount analysis approach work without dedicated analytics software?

Yes, this discount analysis approach works without dedicated analytics software by directly querying the Shopify Admin GraphQL API. It pulls discount and order data to attribute performance metrics to specific codes for campaign evaluation.

What is the best way to evaluate Shopify promotion performance by discount code?

The best way to evaluate Shopify promotion performance is comparing redemption uses and resulting revenue across multiple discount codes over the same time window. This attributes performance to discount codes by aggregating counts and revenue metrics per code.