一键导入
customer-analytics
Analyze customer behavior with RFM scoring, purchase frequency tracking, churn prediction, and cohort analysis to improve retention strategy
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze customer behavior with RFM scoring, purchase frequency tracking, churn prediction, and cohort analysis to improve retention strategy
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manage supplier invoices and vendor payments with automated receipt matching, payment scheduling, early discount optimization, and reconciliation workflows
Enable wholesale and B2B sales with company accounts, custom catalogs, quote workflows, purchase orders, and net payment terms
Predict future inventory needs using historical sales data, seasonal trends, and reorder points to prevent stockouts and overstock
Launch a multi-vendor marketplace with seller onboarding, commission rules, automated payouts via Stripe Connect, and vendor dashboards
Control which products appear first in collections using automated ranking rules, manual overrides, and performance-based sorting algorithms
Sync your catalog and inventory across your own site, Amazon, eBay, and wholesale channels to sell everywhere from one system
| name | customer-analytics |
| description | Analyze customer behavior with RFM scoring, purchase frequency tracking, churn prediction, and cohort analysis to improve retention strategy |
| category | data-analytics |
| risk | safe |
| source | curated |
| date_added | 2026-03-12 |
| tags | ["customer-analytics","rfm","churn-prediction","purchase-frequency","cohort","retention","customer-data","segmentation"] |
| triggers | ["customer analytics","rfm scoring","churn prediction","purchase frequency analysis","customer retention analytics","customer behavior analysis","customer data analysis"] |
| tools | ["claude-code","cursor","gemini-cli","copilot","codex-cli","kiro","opencode"] |
| platforms | ["shopify","woocommerce","bigcommerce","custom"] |
| difficulty | advanced |
Customer analytics transforms raw order data into actionable insights about purchase patterns, lifecycle stages, and churn risk. The core analyses — RFM scoring, cohort retention, purchase frequency, and churn prediction — reveal which customers are loyal, which are at risk, and which channels produce the best long-term customers.
This skill guides you through running these analyses using your platform's built-in tools and dedicated analytics apps, with data warehouse approaches for stores that need deeper segmentation.
| Platform | Recommended Tool | What It Provides |
|---|---|---|
| Shopify | Klaviyo + Shopify's built-in customer segments | RFM-style segments, purchase frequency, CLV prediction, cohort reports |
| Shopify (advanced) | Lifetimely or Triple Whale | True cohort LTV, CLV by acquisition channel, retention curves |
| WooCommerce | Metorik | Customer segmentation, RFM analysis, cohort retention, churn identification |
| WooCommerce (email) | Klaviyo for WooCommerce | Behavioral segments + automated flows based on customer lifecycle stage |
| BigCommerce | Klaviyo for BigCommerce + Glew.io | Glew provides cohort analysis and CLV tracking natively for BigCommerce |
| All platforms (data-first) | Export to Google Looker Studio + BigQuery via Fivetran | Full SQL-based analysis; required for advanced RFM and cohort modeling |
Using Shopify's built-in customer segments (all plans):
number_of_orders >= 3 (loyal customers)days_since_last_order > 90 (churn risk)total_spent > 500 (high-value)Using Klaviyo for RFM segmentation on Shopify:
Using Lifetimely for cohort LTV on Shopify:
Using Metorik:
Using Klaviyo for WooCommerce:
Purchase frequency distribution (using any platform's export):
Export your customer order data to a CSV or Google Sheet and calculate:
Industry benchmarks:
Cohort retention analysis:
A cohort retention grid shows what percentage of customers acquired in month X are still buying at months 1, 3, 6, 12:
What good retention looks like:
| Months After First Order | Minimum Viable | Healthy | Excellent |
|---|---|---|---|
| Month 1 (second purchase rate) | 15% | 25% | 40%+ |
| Month 3 retention | 10% | 20% | 35%+ |
| Month 12 retention | 5% | 15% | 30%+ |
At-risk customer identification:
The simplest at-risk definition: customers who previously ordered multiple times but have not ordered in longer than their typical interval.
number_of_orders > 1 AND days_since_last_order > 90Action by segment:
| Segment | Recommended Action |
|---|---|
| Champions (recent, frequent, high-spend) | Invite to VIP program; early access to new products |
| Loyal but cooling (frequent but not recent) | Targeted win-back email with personalized product recommendations |
| At risk (inactive > 90 days, multiple prior orders) | Win-back sequence: reminder → small incentive → final offer |
| One-time buyers | Second purchase campaign; show complementary products |
| Lost (inactive > 180 days) | Low-cost re-engagement attempt; if no response, suppress to reduce email costs |
| Problem | Solution |
|---|---|
| RFM segments shift dramatically after a sale event | Use a rolling 90-day window for scoring; recent sales spikes should not permanently elevate scores for customers who only responded to a discount |
| Acquisition channel CLV analysis not accounting for multi-touch | Use first-touch attribution for CLV by channel — the channel that introduced the customer, not the channel that converted the last order |
| Cohort retention shows 0% after month 6 | Check whether the query or export is filtering out cohorts that do not have 6 months of data yet; exclude cohorts acquired in the last 6 months from long-term retention views |
| Customer count in segments does not match email list size | Some customers in your store may not be subscribed to email; segment by customer (order-based) separately from email list (consent-based) |
| Win-back campaigns going to customers who bought recently | Ensure segment filters are current — sync order data before running segment exports; stale data causes emails to go to wrong contacts |