Shopify Marketing & E-commerce
Expert-level guidance for Shopify — optimizing store conversion, marketing integrations, analytics, product feeds, and the full e-commerce marketing stack.
Install
git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/shopify ~/.claude/skills/
Core Capabilities
Store Performance Auditing
- Conversion funnel analysis (visit → add to cart → checkout → purchase)
- Site speed and Core Web Vitals assessment
- Mobile experience review (60-70%+ of DTC traffic is mobile)
- Checkout optimization (Shopify Checkout extensibility, one-page checkout)
- Product page optimization (layout, copy, social proof, urgency)
Marketing Integrations
- Email/SMS: Klaviyo (recommended), Omnisend, Postscript, Attentive
- Ads: Meta Pixel + CAPI, Google Ads + Enhanced Conversions, TikTok Pixel, Pinterest Tag
- Attribution: Triple Whale, Northbeam, Polar Analytics, Lifetimely
- Reviews: Judge.me, Yotpo, Stamped, Loox (photo reviews)
- Loyalty: Smile.io, LoyaltyLion, Yotpo Loyalty
- Subscriptions: Recharge, Loop, Bold, Skio
- SEO: JSON-LD structured data, sitemap optimization, page speed
Analytics & Reporting
- Shopify Analytics (built-in) — sessions, conversion rate, AOV, returning customer rate
- GA4 integration via Google & YouTube channel or GTM
- Server-side tracking setup (Shopify Pixel API + CAPI)
- Customer cohort analysis (LTV, retention, purchase frequency)
- Product analytics (sell-through rate, margin analysis)
Product Feed Management
- Google Merchant Center feed optimization
- Facebook/Instagram Catalog (via Meta Commerce Manager)
- Feed attribute optimization: title, description, product type, custom labels
- Variant handling and inventory sync
- Disapproval diagnosis and feed error resolution
Conversion Rate Optimization (CRO)
- A/B testing (using Shopify's built-in or tools like Shoplift, Visually)
- Collection page optimization (filters, sorting, layout)
- Cart and checkout optimization (cart drawer vs page, upsells, trust badges)
- Post-purchase upsell flows (Zipify OCU, ReConvert, AfterSell)
- Pop-up and lead capture strategy (Privy, Justuno, Wisepops)
Key Benchmarks
| Metric |
Good |
Great |
Warning |
| Overall Conversion Rate |
2-3% |
4%+ |
<1.5% |
| Add-to-Cart Rate |
8-10% |
12%+ |
<5% |
| Cart-to-Checkout Rate |
50-60% |
70%+ |
<40% |
| Checkout Completion Rate |
45-55% |
60%+ |
<35% |
| AOV |
Industry dependent |
Growing trend |
Declining |
| Returning Customer Rate |
25-30% |
40%+ |
<20% |
| Mobile Conversion Rate |
1.5-2.5% |
3%+ |
<1% |
| Email Revenue % |
25-35% |
40%+ |
<15% |
| LTV:CAC Ratio |
3:1 |
4:1+ |
<2:1 |
| Page Load (LCP) |
<2.5s |
<1.5s |
>4s |
Essential Shopify Marketing Stack
Tier 1 — Must-Have
- Klaviyo — Email + SMS marketing, flows, segmentation
- Meta Pixel + CAPI — Facebook/Instagram ad tracking
- Google & YouTube channel — Google Ads, Shopping, free listings
- Judge.me or Yotpo — Product reviews and social proof
- GA4 — Web analytics (via GTM or Shopify Pixel API)
Tier 2 — Growth Stage
- Triple Whale or Polar Analytics — Attribution and analytics
- Smile.io — Loyalty and rewards program
- ReConvert or AfterSell — Post-purchase upsells
- Recharge — Subscriptions (if applicable)
- Privy or Wisepops — Pop-ups and lead capture
Tier 3 — Scale Stage
- Northbeam — Advanced multi-touch attribution
- Gorgias or Zendesk — Customer support (impacts repeat rate)
- TikTok Pixel — TikTok ad tracking
- Loop Returns — Returns management
- Rebuy — Personalized product recommendations
Workflow: Full Shopify Audit
When asked to audit a Shopify store's marketing:
- Tracking & Analytics — Pixel/CAPI setup, GA4 integration, UTM consistency, attribution tool
- Conversion Funnel — Session → ATC → Checkout → Purchase rates, identify largest drop-off
- Site Speed — Core Web Vitals, theme performance, app bloat, image optimization
- Product Pages — Layout, imagery, copy, reviews, trust signals, urgency elements
- Collection Pages — Navigation, filters, sorting, merchandising rules
- Cart & Checkout — Cart experience, checkout completion rate, payment options, trust badges
- Email/SMS — Platform integration, flow coverage, campaign frequency, revenue attribution
- Paid Media Integration — Pixel health, CAPI event match quality, product feed quality
- SEO — Title tags, meta descriptions, structured data, site architecture, blog content
- Customer Retention — Loyalty program, subscription offering, post-purchase experience
- App Stack — Review installed apps for redundancy, performance impact, cost
- Recommendations — Prioritized by expected revenue impact and implementation effort
Shopify-Specific Tracking Setup
Meta Pixel + CAPI
- Use Shopify's Customer Events (Pixel API) — not the old theme-based pixel
- Enable CAPI through Facebook & Instagram channel app
- Verify Event Match Quality score in Meta Events Manager (target 8+)
- Track: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase
Google Ads + Enhanced Conversions
- Install Google & YouTube channel for Shopping + Performance Max
- Set up Enhanced Conversions in Google Ads
- Verify conversion tracking in Google Tag Assistant
- Feed optimization: product titles, descriptions, GTINs, custom labels
GA4
- Recommended: Google Tag Manager via Shopify Pixel API (Custom Pixel)
- Alternative: Google & YouTube channel (simpler but less control)
- Key events: page_view, view_item, add_to_cart, begin_checkout, purchase
- Enhanced measurement: site search, scroll depth, outbound clicks
How to Use This Skill
Ask me questions like:
- "Audit my Shopify store's conversion funnel"
- "What apps should I add to my Shopify marketing stack?"
- "Help me set up Meta CAPI on Shopify"
- "My add-to-cart rate is low — what should I optimize?"
- "Design a post-purchase upsell strategy"
- "How do I optimize my Google Shopping product feed?"
- "Review my Shopify checkout for conversion improvements"
- "Plan a loyalty program for my DTC brand"
For detailed Shopify API reference, Liquid theme customization, and advanced configurations, see REFERENCE.md.
Analysis Examples
For complete analysis patterns, sample outputs, and use cases, see EXAMPLES.md.
Scripts
The skill includes utility scripts for API interaction and automated analysis:
Fetch Store Data
# Get store info (API health check)
python scripts/shopify_client.py --resource shop
# List recent orders
python scripts/shopify_client.py --resource orders --days 30
# Export products as CSV
python scripts/shopify_client.py --resource products --status active --format csv --output products.csv
# Quick order count
python scripts/shopify_client.py --resource order-count --status any
Run Analysis
# Full store audit (all analyses combined)
python scripts/analyze.py --analysis-type full-audit
# Conversion funnel (last 30 days)
python scripts/analyze.py --analysis-type conversion-funnel --days 30
# Product performance
python scripts/analyze.py --analysis-type product-performance --days 30
# Customer cohorts (last 90 days)
python scripts/analyze.py --analysis-type customer-cohorts --days 90
# Revenue analysis with output file
python scripts/analyze.py --analysis-type revenue-analysis --days 30 --output revenue.json
The scripts handle API authentication, rate limiting, pagination, and basic analysis. I'll interpret the results and provide actionable recommendations.
Troubleshooting
Authentication Error: Verify that:
SHOPIFY_STORE_URL is your .myshopify.com URL (not your custom domain)
SHOPIFY_ACCESS_TOKEN starts with shpat_ and is from a Custom App
- The app has the required API scopes (read_orders, read_products, read_customers)
Rate Limiting: The scripts handle Shopify's 2 requests/second limit automatically. If you see 429 errors, the retry logic will wait and continue. For large stores, consider using --limit to reduce data volume.
No Orders Returned: Check that:
- The date range (
--days) covers a period with orders
- The
--status filter matches your orders (use any to see all)
- The Admin API access token hasn't expired
Import Errors: Install required packages:
pip install -r requirements.txt
Security & Privacy
- Never hardcode API credentials in code — use
.env files
- Store access tokens outside version control
- Add
.env and credential files to .gitignore
- The scripts are read-only — they do not create, modify, or delete any Shopify data
- Use Admin API scopes with minimum required access (read-only)
- Customer PII (emails, names) is processed locally and never stored persistently
- Rotate access tokens periodically
1---2name: shopify3description: Shopify e-commerce platform marketing expertise. Audit store performance, optimize conversion funnels, configure tracking, and integrate marketing tools. Use when the user asks about Shopify, e-commerce optimization, Shopify analytics, store conversion, product feeds, or Shopify app integrations.4license: MIT5origin: custom6author: Rebecca Rae Barton7author_url: https://github.com/thatrebeccarae8metadata:9 source: https://skillmd.com/skills/thatrebeccarae/shopify10 version: 1.0.011 category: analytics12 domain: shopify13 updated: 2026-02-2314 tested: 2026-03-1715 tested_with: "Claude Code v2.1"16---1718# Shopify Marketing & E-commerce1920Expert-level guidance for Shopify — optimizing store conversion, marketing integrations, analytics, product feeds, and the full e-commerce marketing stack.2122## Install2324```bash25git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/shopify ~/.claude/skills/26```2728## Core Capabilities2930### Store Performance Auditing31- Conversion funnel analysis (visit → add to cart → checkout → purchase)32- Site speed and Core Web Vitals assessment33- Mobile experience review (60-70%+ of DTC traffic is mobile)34- Checkout optimization (Shopify Checkout extensibility, one-page checkout)35- Product page optimization (layout, copy, social proof, urgency)3637### Marketing Integrations38- **Email/SMS**: Klaviyo (recommended), Omnisend, Postscript, Attentive39- **Ads**: Meta Pixel + CAPI, Google Ads + Enhanced Conversions, TikTok Pixel, Pinterest Tag40- **Attribution**: Triple Whale, Northbeam, Polar Analytics, Lifetimely41- **Reviews**: Judge.me, Yotpo, Stamped, Loox (photo reviews)42- **Loyalty**: Smile.io, LoyaltyLion, Yotpo Loyalty43- **Subscriptions**: Recharge, Loop, Bold, Skio44- **SEO**: JSON-LD structured data, sitemap optimization, page speed4546### Analytics & Reporting47- Shopify Analytics (built-in) — sessions, conversion rate, AOV, returning customer rate48- GA4 integration via Google & YouTube channel or GTM49- Server-side tracking setup (Shopify Pixel API + CAPI)50- Customer cohort analysis (LTV, retention, purchase frequency)51- Product analytics (sell-through rate, margin analysis)5253### Product Feed Management54- Google Merchant Center feed optimization55- Facebook/Instagram Catalog (via Meta Commerce Manager)56- Feed attribute optimization: title, description, product type, custom labels57- Variant handling and inventory sync58- Disapproval diagnosis and feed error resolution5960### Conversion Rate Optimization (CRO)61- A/B testing (using Shopify's built-in or tools like Shoplift, Visually)62- Collection page optimization (filters, sorting, layout)63- Cart and checkout optimization (cart drawer vs page, upsells, trust badges)64- Post-purchase upsell flows (Zipify OCU, ReConvert, AfterSell)65- Pop-up and lead capture strategy (Privy, Justuno, Wisepops)6667## Key Benchmarks6869| Metric | Good | Great | Warning |70|--------|------|-------|---------|71| Overall Conversion Rate | 2-3% | 4%+ | <1.5% |72| Add-to-Cart Rate | 8-10% | 12%+ | <5% |73| Cart-to-Checkout Rate | 50-60% | 70%+ | <40% |74| Checkout Completion Rate | 45-55% | 60%+ | <35% |75| AOV | Industry dependent | Growing trend | Declining |76| Returning Customer Rate | 25-30% | 40%+ | <20% |77| Mobile Conversion Rate | 1.5-2.5% | 3%+ | <1% |78| Email Revenue % | 25-35% | 40%+ | <15% |79| LTV:CAC Ratio | 3:1 | 4:1+ | <2:1 |80| Page Load (LCP) | <2.5s | <1.5s | >4s |8182## Essential Shopify Marketing Stack8384### Tier 1 — Must-Have851. **Klaviyo** — Email + SMS marketing, flows, segmentation862. **Meta Pixel + CAPI** — Facebook/Instagram ad tracking873. **Google & YouTube channel** — Google Ads, Shopping, free listings884. **Judge.me or Yotpo** — Product reviews and social proof895. **GA4** — Web analytics (via GTM or Shopify Pixel API)9091### Tier 2 — Growth Stage926. **Triple Whale or Polar Analytics** — Attribution and analytics937. **Smile.io** — Loyalty and rewards program948. **ReConvert or AfterSell** — Post-purchase upsells959. **Recharge** — Subscriptions (if applicable)9610. **Privy or Wisepops** — Pop-ups and lead capture9798### Tier 3 — Scale Stage9911. **Northbeam** — Advanced multi-touch attribution10012. **Gorgias or Zendesk** — Customer support (impacts repeat rate)10113. **TikTok Pixel** — TikTok ad tracking10214. **Loop Returns** — Returns management10315. **Rebuy** — Personalized product recommendations104105## Workflow: Full Shopify Audit106107When asked to audit a Shopify store's marketing:1081091. **Tracking & Analytics** — Pixel/CAPI setup, GA4 integration, UTM consistency, attribution tool1102. **Conversion Funnel** — Session → ATC → Checkout → Purchase rates, identify largest drop-off1113. **Site Speed** — Core Web Vitals, theme performance, app bloat, image optimization1124. **Product Pages** — Layout, imagery, copy, reviews, trust signals, urgency elements1135. **Collection Pages** — Navigation, filters, sorting, merchandising rules1146. **Cart & Checkout** — Cart experience, checkout completion rate, payment options, trust badges1157. **Email/SMS** — Platform integration, flow coverage, campaign frequency, revenue attribution1168. **Paid Media Integration** — Pixel health, CAPI event match quality, product feed quality1179. **SEO** — Title tags, meta descriptions, structured data, site architecture, blog content11810. **Customer Retention** — Loyalty program, subscription offering, post-purchase experience11911. **App Stack** — Review installed apps for redundancy, performance impact, cost12012. **Recommendations** — Prioritized by expected revenue impact and implementation effort121122## Shopify-Specific Tracking Setup123124### Meta Pixel + CAPI125- Use Shopify's Customer Events (Pixel API) — not the old theme-based pixel126- Enable CAPI through Facebook & Instagram channel app127- Verify Event Match Quality score in Meta Events Manager (target 8+)128- Track: PageView, ViewContent, AddToCart, InitiateCheckout, Purchase129130### Google Ads + Enhanced Conversions131- Install Google & YouTube channel for Shopping + Performance Max132- Set up Enhanced Conversions in Google Ads133- Verify conversion tracking in Google Tag Assistant134- Feed optimization: product titles, descriptions, GTINs, custom labels135136### GA4137- Recommended: Google Tag Manager via Shopify Pixel API (Custom Pixel)138- Alternative: Google & YouTube channel (simpler but less control)139- Key events: page_view, view_item, add_to_cart, begin_checkout, purchase140- Enhanced measurement: site search, scroll depth, outbound clicks141142## How to Use This Skill143144Ask me questions like:145- "Audit my Shopify store's conversion funnel"146- "What apps should I add to my Shopify marketing stack?"147- "Help me set up Meta CAPI on Shopify"148- "My add-to-cart rate is low — what should I optimize?"149- "Design a post-purchase upsell strategy"150- "How do I optimize my Google Shopping product feed?"151- "Review my Shopify checkout for conversion improvements"152- "Plan a loyalty program for my DTC brand"153154For detailed Shopify API reference, Liquid theme customization, and advanced configurations, see [REFERENCE.md](REFERENCE.md).155156## Analysis Examples157158For complete analysis patterns, sample outputs, and use cases, see [EXAMPLES.md](EXAMPLES.md).159160## Scripts161162The skill includes utility scripts for API interaction and automated analysis:163164### Fetch Store Data165```bash166# Get store info (API health check)167python scripts/shopify_client.py --resource shop168169# List recent orders170python scripts/shopify_client.py --resource orders --days 30171172# Export products as CSV173python scripts/shopify_client.py --resource products --status active --format csv --output products.csv174175# Quick order count176python scripts/shopify_client.py --resource order-count --status any177```178179### Run Analysis180```bash181# Full store audit (all analyses combined)182python scripts/analyze.py --analysis-type full-audit183184# Conversion funnel (last 30 days)185python scripts/analyze.py --analysis-type conversion-funnel --days 30186187# Product performance188python scripts/analyze.py --analysis-type product-performance --days 30189190# Customer cohorts (last 90 days)191python scripts/analyze.py --analysis-type customer-cohorts --days 90192193# Revenue analysis with output file194python scripts/analyze.py --analysis-type revenue-analysis --days 30 --output revenue.json195```196197The scripts handle API authentication, rate limiting, pagination, and basic analysis. I'll interpret the results and provide actionable recommendations.198199## Troubleshooting200201**Authentication Error**: Verify that:202- `SHOPIFY_STORE_URL` is your `.myshopify.com` URL (not your custom domain)203- `SHOPIFY_ACCESS_TOKEN` starts with `shpat_` and is from a Custom App204- The app has the required API scopes (read_orders, read_products, read_customers)205206**Rate Limiting**: The scripts handle Shopify's 2 requests/second limit automatically. If you see 429 errors, the retry logic will wait and continue. For large stores, consider using `--limit` to reduce data volume.207208**No Orders Returned**: Check that:209- The date range (`--days`) covers a period with orders210- The `--status` filter matches your orders (use `any` to see all)211- The Admin API access token hasn't expired212213**Import Errors**: Install required packages:214```bash215pip install -r requirements.txt216```217218## Security & Privacy219220- **Never hardcode** API credentials in code — use `.env` files221- Store access tokens **outside** version control222- Add `.env` and credential files to `.gitignore`223- The scripts are **read-only** — they do not create, modify, or delete any Shopify data224- Use Admin API scopes with minimum required access (read-only)225- Customer PII (emails, names) is processed locally and never stored persistently226- Rotate access tokens periodically