shopify-admin-referral-source-attribution

Installation
SKILL.md

Purpose

Aggregates orders by their first-touch traffic source — extracted from each order's landingPageUrl, referrerUrl, and any UTM parameters embedded in the landing URL. Produces an attribution table showing orders, revenue, and AOV per source so merchants can see which channels are actually converting. Read-only — no mutations. Use when native Shopify analytics dashboards aren't granular enough or when you need to export raw attribution data for an external model.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_orders
  • API scopes: read_orders

Parameters

Parameter Type Required Default Description
store string yes Store domain (e.g., mystore.myshopify.com)
format string no human Output format: human or json
days_back integer no 30 Lookback window in days
min_orders integer no 1 Minimum orders per source to include in the human-readable summary
group_by string no category Grouping level: category (direct/organic/paid/social/email/referral), domain (raw referrer host), or utm_source (UTM param value)
include_utm bool no true When true, parse utm_source, utm_medium, utm_campaign from landingPageUrl query string

Safety

Installs
2
GitHub Stars
182
First Seen
Jun 2, 2026
shopify-admin-referral-source-attribution — 40rty-ai/shopify-admin-skills