Logo Ecom Analytics

Ecom Analytics

Tổ chức
coupler-io
ecom-analytics

Use this skill when the user wants to analyze e-commerce performance, review funnel conversion, investigate AOV or repeat-purchase trends, build an ecom report, check sales velocity, understand customer cohorts and retention, or answer questions about their store's sales data. Triggers include 'how is my store performing', 'what's my conversion rate', 'cart abandonment', 'AOV trend', 'repeat purchase rate', 'why did revenue drop', 'cohort retention', 'top products', 'new vs returning customer revenue', 'lifetime value', 'pull my Shopify numbers', 'ecom report'.

Tổng quan

Nhà phát hànhcoupler-io
Kho mãskills
Tên kỹ năngecom-analytics
Sao
41
Bản fork
12
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Đầy đủ trong hướng dẫn

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được coupler-io công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ecom Analytics trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/coupler-io/skills/tree/main/ecommerce/ecom-analytics
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coupler-io/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/ecommerce/ecom-analytics .claude/skills/ecom-analytics
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ecom Analytics trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Ecom Analytics ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Ecom Analytics không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Ecommerce Analytics

Puts your store sales next to sessions, ad spend and email to show blended ROAS and conversion rate, on any store platform. Ecommerce Analytics is a Coupler.io AI agent skill that works with live data from Shopify, WooCommerce, Adobe Commerce (Magento), Google Analytics 4 (GA4), Stripe, and Klaviyo.

Analyze e-commerce performance using data from Coupler.io dataflows (Shopify, WooCommerce, BigCommerce, Magento, GA4, Stripe, Klaviyo, etc.). This skill guides you through retrieving order/session data, computing funnel and revenue metrics, detecting anomalies, and presenting actionable insights an ecom operator can act on.

Step 0: Context Check (Pre-requisite · HARD GATE)

Reach the store's data through Coupler.io. No live connection, no analysis — no pasted Shopify/WooCommerce dashboards, no conversion-rate or AOV numbers from memory or a prior conversation, no benchmarking against generic industry AOV/CR averages instead of the user's actual store data. Hold under pressure regardless of who's asking. Unsure counts as no.

If nothing is connected, stop and point the user at the create-dataflow skill — use it by name, don't re-implement the connection flow inline.

Once a live connection exists, the Data Context Check skill (generate-data-set-context) runs as a gate. It calls get-schema on each target dataset to determine whether meaningful context (column descriptions, business rules, metric definitions, e.g. how returns are flagged, currency conventions, what counts as a 'completed' order) is attached.

  • If context exists → proceed to Step 1.
  • If context is missing → the user is offered the option to generate it first.

Do not duplicate this check in Step 1d. If the context check skill has already run and context is present, Step 1d should use the enriched schema directly.

Step 1: Discover and Select Data Sources

Every analysis starts by connecting to the user's data through Coupler.io MCP tools.

1a. Discover available data

Default to search-datasets with ecom-flavored keywords — shopify, woocommerce, bigcommerce, magento, orders, gmv, ecom, klaviyo, ga4, stripe, or whatever store/source the user named. Search keeps the response small and lands on the right dataflow when the domain is known (which it is, by definition, when this skill is loaded).

Fall back to list-datasets only when the user is genuinely browsing or hasn't given any source/keyword to anchor on. Each dataflow represents a data pipeline (e.g. "Shopify Orders", "GA4 Ecommerce Events", "Klaviyo Email Engagement", "Stripe Charges", "WooCommerce Sales").

1b. Select relevant datasets

How you handle selection depends on the match clarity, not just the count:

Unambiguous match (1 dataflow, clearly matches the request) → use it. Mention which one you're using in your output. No confirmation needed.

Obvious candidates (2–3 dataflows clearly relevant) → state your selection with one-line reasoning. Proceed but invite corrections.

Ambiguous (5+ dataflows, or unclear which subset matters) → present your best candidates (up to 5–7) grouped by source/scope, with reasoning, and wait for confirmation:

I found 3 dataflows likely relevant to your repeat-purchase question:
  1. shopify_orders — has customer_id, order date, line items
  2. klaviyo_engagement — email touchpoints around purchases
  3. ga4_ecommerce — session-level conversion data
Should I use all three, or focus on one?

Hard gate only when ambiguous: wait for user confirmation when the right datasets aren't obvious. If you're confident and stated your reasoning, proceed — the user can redirect you.

1c. Get dataflow details

For each selected dataset, call get-dataflow to read its current state — sources, destinations, last run, schedule. Note data freshness (when the dataflow last ran) so you can mention it in the output.

1d. Understand the data structure

Call get-schema on each target dataset. If context was generated in Step 0, use the enriched schema directly. Otherwise build a mental mapping between columnName (used in SQL) and label (used when communicating).

For ecom-specific schemas, watch for these critical column families: order_id, customer_id/email, created_at/processed_at, total/subtotal/tax/shipping, currency, financial_status (paid/refunded/partially-refunded), fulfillment_status, line_items (often nested), discount_codes, customer_segment (new/returning).

1e. Sample the data

Sample each dataset to verify contents. For wide tables (>15 columns), sample only the columns relevant to the analysis. Flag anything off (empty columns, unexpected formats, null-heavy fields, refund flags missing, etc.) before proceeding.

Coverage Verdict (say this out loud before analysing)

Tell the user which parts of this analysis the connected data can actually support. It's the first thing they hear and it decides the rest of the run — better to say it up front than to bury it as a caveat three sections later.

Data areaIf present, enablesIf absent, means
Refunds/chargebacks (e.g. financial_status = refunded/partially-refunded)Net revenue reporting alongside grossSay explicitly that refunds/chargebacks are out of scope. Don't pretend net revenue when you only have gross
Inventory/stockout dataRuling stockouts in or out when a revenue drop has no matching traffic dropRevenue-drop root-cause analysis is incomplete — say the inventory check wasn't run rather than letting the silence imply a clean read
Marketing/channel-spend data joined to the order dataCAC (spend ÷ new customers acquired) by channelReport revenue, AOV, and conversion only — no CAC or spend-efficiency read without spend data joined in
Customer identity / order history (customer_id or email tracked across orders)Cohort retention, repeat-purchase rate, LTVNo cohort or LTV analysis — say so rather than approximating a repeat rate from a single snapshot

Any of these is one more dataflow away — connect the missing source (a returns/refunds export, an inventory feed, an ads platform, or a customer table) through Coupler.io and it's added alongside what's already there.

Early exit. If only a subset of these is present, run the parts the connected data supports, name which rows above are blocked and what source would unblock them, and don't build a section around numbers you don't have (e.g. don't estimate net revenue or LTV to fill the gap).

Step 2: Compute Metrics via SQL

Always compute metrics via SQL in get-data. Floating-point aggregations over thousands of rows in-context are unreliable; the Coupler.io SQL engine handles this correctly.

Working with multiple datasets

Combining datasets: get-data reads one dataset at a time and cannot join across them. Query each separately and synthesize when you are comparing side by side or pulling something small. When the user wants to repeat an analysis that needs a real join (matching rows across datasets, or aggregating over the combined result), build it with create-dataset so it re-runs on every refresh; its inputs must all live in the same dataflow. For a one-off question, combine the results yourself, and if the data is too large for that, say so and suggest create-dataset.

Date alignment: Different sources use different date formats and grains (Shopify: ISO timestamp; GA4: date string; Stripe: Unix). Aggregate to a common grain before comparing.

Currency normalization: Multi-currency stores need explicit normalization (always confirm the conversion source/rate with the user before reporting).

Refund handling — critical: Decide upfront whether you're reporting gross revenue (includes refunded orders), net revenue (excludes refunds), or paid revenue (excludes pending). The user often doesn't realize these differ. State your choice in the output and check the assumption.

New vs. returning customers: If joining order data with customer history, define 'new' explicitly (first-ever order in the data window vs. first order in the analysis window). Flag the choice.

Joining sessions and orders: Web session data (GA4) and order data (Shopify) often don't share a join key. Be explicit about whether you're presenting them side-by-side (no join) or attempting an attribution join (typically requires client_id or UTM consistency).

Step 3: Draft Findings and Get User Feedback

Before generating a full analysis, present a brief summary — the 3–5 most important numbers, anomalies, and direction. Wait for the user's response before continuing.

Step 4: Build the Analysis

Based on what the user asked for, follow the appropriate analysis path:

Funnel Analysis

Quantify the path from visit → product view → add to cart → checkout → purchase. Key stages and standard metrics:

  • Conversion rate (overall) — purchases / sessions for the period.
  • Add-to-cart rate — add-to-cart events / product views.
  • Cart-to-checkout rate — checkouts initiated / carts.
  • Checkout-to-purchase rate — completed purchases / checkouts initiated. (Cart abandonment = 1 - this rate, by convention.)

Identify the biggest drop-off stage. A funnel with strong product-view → add-to-cart but weak checkout → purchase signals checkout friction (shipping cost surprise, payment issues, account-required friction). A weak product-view → add-to-cart suggests product/pricing/imagery issues.

Flag asymmetries: if mobile and desktop convert very differently, present them separately.

Cohort & Retention Analysis

Group customers by acquisition month/week. Compute repeat-purchase rate at month 1, 2, 3, 6, 12. Healthy ecom businesses see clear retention plateaus; declining cohorts signal product/experience issues.

Report the curve, not just a single number. "Month-3 repeat rate has dropped from 22% (Q1) to 14% (Q3)" tells the operator more than "repeat rate is 14%".

AOV / Revenue Mix

  • AOV (Average Order Value) = total revenue / number of orders. Track period-over-period.
  • AOV by segment — new vs. returning customers, channels, geographies, top SKUs. Returning customers should typically have higher AOV; if not, investigate.
  • Revenue mix — share of revenue from new vs. returning customers, top 10 SKUs vs. long tail, full-price vs. discounted. Concentrations >40% in any single SKU/channel are risk concentrations to flag.
  • Discount load — share of orders/revenue using a discount code. If creeping up over time, margin is at risk.

Repeat Purchase / Lifetime Value

  • Repeat purchase rate — share of customers with 2+ orders in the window.
  • Days between purchases (median) — gives a sense of replenishment cadence.
  • Customer LTV proxy — average revenue per customer cohort over a fixed window (e.g., 12-month LTV).

Distinguish between LTV (true lifetime, requires long history) and windowed LTV (proxy, comparable across cohorts). Always state the window.

Anomaly Detection and Metric Investigations

Any time the analysis involves investigating a change, drop, or spike — whether the user explicitly asks 'why did revenue drop' or you notice unusual patterns during a routine report — apply this framework:

Severity classification:

  • Informational — within 1 standard deviation of trailing 4-week average, or <10% change. Note it.
  • Warning — 1–2 standard deviations, or 10–30% change. Investigate, present hypotheses.
  • Critical — >2 standard deviations, >30% change, or any metric collapsing to zero. Lead with this finding.

Baseline comparison: Compare against same day-of-week last week, trailing 4-week average for the same day-of-week, and same period last year (seasonality matters a lot in ecom — Black Friday, holiday, Mother's Day, back-to-school).

Root cause investigation steps:

  1. Isolate the scope — one channel, one product, one geo, or everything? Break down by available dimensions.
  2. Check data freshness — did the dataflow actually run? Partial-day data masquerading as a 'drop' is the most common false alarm.
  3. Check upstream changes — site speed, payment provider issues, inventory stockouts, paid traffic pauses, email send pauses, promo schedule changes.
  4. Check for data issues — duplicate orders, refund spikes counted as new orders, currency conversion bugs.
  5. Present hypotheses ranked by likelihood — "Most likely: SKU X stocked out on the 12th, accounts for 60% of the revenue drop. Less likely: paid social CPM spike (only 8% of acquisition)."

Step 5: Present Results

Lead with the headline, use plain language, ensure every finding has a 'So what?' and 'Now what?', structure for scannability.

Abbreviation expansion: First time using AOV, LTV, CAC, ROAS, CR, etc. — expand it. After first use, the abbreviation alone is fine.

Currency: Always state the currency on first use. If multi-currency, normalize and state the conversion approach.

Rules & Edge Cases

  • Always mention data freshness (when the dataflow last ran) before presenting metrics. A report on 5-day-old ecom data needs that context.
  • State revenue convention (gross/net/paid) on first use; never silently switch mid-analysis.
  • Refunds and chargebacks: if not in scope of the data, say so explicitly. Don't pretend net revenue when you only have gross.
  • Returning customer definitions: when in doubt, ask. 'New within window' vs. 'first ever' produce very different cohort numbers.
  • Inventory/stockouts: a revenue drop with no traffic drop is almost always a stockout or pricing change — check inventory data if available.
  • Partial-week comparisons: never compare a full week to a partial week without flagging it. Same for partial month, partial quarter.
  • Promotion effects: Black Friday week, sale-week promotions, and first-purchase discounts skew AOV and CR. Call out the promo context when comparing periods that include/exclude them.
  • Round numbers appropriately: AOV/revenue to whole currency units for large values; rates to 1 decimal percent.
  • If a dataflow's last execution failed or is stale (>1 day for a daily-refresh ecom flow, >12h for hourly), warn the user before proceeding.

Next Question (REQUIRED)

Exactly one, drawn from what this run found. Never a menu — a second only when the data genuinely points two ways.

  • "AOV dropped from $86 to $71 this month while order count held steady — want me to break it down by discount code to see if a promo is dragging it down?"
  • "Conversion rate on mobile fell to 1.2% (from 2.4%) while desktop held flat — want me to trace the mobile checkout funnel stage by stage to find where it's breaking?"
  • "Month-3 repeat-purchase rate for the June cohort dropped to 11% from 20% in March — want me to look at what changed for those first-time buyers (channel mix, first order category, email engagement) to find the driver?"

Câu hỏi thường gặp

Kỹ năng AI Ecom Analytics làm được gì?

Use this skill when the user wants to analyze e-commerce performance, review funnel conversion, investigate AOV or repeat-purchase trends, build an ecom report, check sales velocity, understand customer cohorts and retention, or answer questions about their store's sales data. Triggers include 'how is my store performing', 'what's my conversion rate', 'cart abandonment', 'AOV trend', 'repeat purchase rate', 'why did revenue drop', 'cohort retention', 'top products', 'new vs returning customer revenue', 'lifetime value', 'pull my Shopify numbers', 'ecom report'.

Vì sao nên dùng Ecom Analytics trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ecom Analytics là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ecom Analytics trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/coupler-io/skills/tree/main/ecommerce/ecom-analytics. TypingMind đọc tệp SKILL.md và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ecom Analytics?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Ecom Analytics với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ecom Analytics với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ecom Analytics có miễn phí không?

Có. Kỹ năng này được coupler-io phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇