skills/data-analytics/customer-analytics/SKILL.md
Analyze customer behavior with RFM scoring, purchase frequency tracking, churn prediction, and cohort analysis to improve retention strategy
npx skillsauth add finsilabs/awesome-ecommerce-skills customer-analyticsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 |
tools
Let shoppers save products to a wishlist, share it with friends, and get notified when saved items come back in stock or drop in price
development
Build a themeable storefront with design tokens and CSS custom properties that supports white-labeling, multi-brand variants, and dark mode
development
Speed up product discovery with instant search suggestions, fuzzy typo matching, and category-aware results powered by Algolia or Elasticsearch
development
Build a mobile-first storefront with thumb-friendly navigation, sticky add-to-cart buttons, and touch-optimized components for high mobile conversion