Affiliate Programs 💎 Built for Sidekick ⚡ Sidekick does this for you
shopify sidekick affiliate-programs reporting

Analyze Affiliate Program Performance

Build a ShopifyQL report of revenue and orders grouped by discount code, using each affiliate's code as a proxy for performance since Sidekick can't read your affiliate app's data.

📋 Prompt
Run in Sidekick
Build a discount-code-driven revenue report for my affiliate program using real Shopify store data (Sidekick can’t read data inside my affiliate app, but if each affiliate has a unique discount code, that code is a usable proxy):

Report Period: [DATE_RANGE]
Affiliate discount code prefix/pattern: [e.g., codes starting with “aff-“]

Build a ShopifyQL report covering:


  
    Revenue by code - Total revenue and order count grouped by each affiliate discount code, for the report period.
  
  
    Ranking - Rank codes by revenue generated and by order count, so I can see my top 10 affiliates by that proxy.
  
  
    Average order value - Average order value per code, to spot which affiliates drive higher-value traffic.
  
  
    Refund rate - Refund rate on orders using each code, flagged if notably above the store average (a signal worth manually reviewing in my affiliate app for fraud).
  
  
    Trend - Compare this period’s revenue per code against the prior period to flag growing vs declining affiliates.
  


Present as a structured report with a one-page summary and the full per-code breakdown below. Note clearly that click data, commission amounts, and non-code-based attribution live in my affiliate app and aren’t in this report.

How to Use

  1. Copy the prompt above
  2. Open Shopify Sidekick in your Shopify admin
  3. Paste the prompt and replace the bracketed placeholders with your details
  4. Review Sidekick's response and apply the suggestions