Store Analytics (Siddarthan007)
A comprehensive analytics plugin for Medusa stores providing insights into orders, sales, customers, products, and marketing performance.
Overview
This plugin adds a complete analytics dashboard to your Medusa admin panel, allowing you to track key business metrics across multiple dimensions. Monitor your store’s performance with detailed charts and statistics covering all aspects of your e-commerce operations.
Features
Date Range Analysis
- Four Preset Timeframes - Quick access to common date ranges
- Custom Date Ranges - Select any date range for analysis
- Comparison Capabilities - Compare metrics across different time periods
- Historical Trends - Track performance over time
Order Metrics
- Orders Over Time - Visualize order trends with time-series charts
- Regional Popularity - See which regions generate the most orders
- Sales Channel Performance - Track performance across different channels
- Payment Provider Usage - Analyze which payment methods customers prefer
Sales Insights
- Revenue Tracking - Monitor revenue by currency and time period
- Refund Monitoring - Track refunds and return rates
- Sales Trends - Identify patterns in sales performance
- Multi-Currency Support - Handle multiple currencies
Customer Analytics
- New Customer Acquisition - Track new customer sign-ups
- Repeat Customer Metrics - Measure customer loyalty and retention
- Cumulative Growth Patterns - See customer base growth over time
- Customer Lifetime Value - Understand customer value
Product Data
- Best-Performing Variants - Identify top-selling products
- Return Rates - Monitor product return patterns
- Inventory Status - Track stock levels and availability
- Product Performance - Analyze product popularity
Marketing Metrics
- Top Discount Analysis - See which discounts perform best
- Promotional Performance - Track marketing campaign effectiveness
- Discount Usage Patterns - Understand how customers use discounts
Requirements
- MedusaJS v2
- Node.js (latest LTS recommended)
Installation
Install the plugin using npm:
npm install @siddarthan007/medusa-store-analytics
Or add to your package.json:
{
"dependencies": {
"@siddarthan007/medusa-store-analytics": "^0.1.2"
}
}
Configuration
Add the plugin to your medusa-config.js:
const plugins = [
// ... other plugins
{
resolve: "@siddarthan007/medusa-store-analytics",
options: {
// Plugin configuration options
},
},
]
Usage
Accessing Analytics
After installation, access the analytics dashboard through your Medusa admin panel:
- Log into the Medusa admin
- Navigate to the Analytics section
- Select your desired date range
- View comprehensive metrics and charts
Date Range Selection
Choose from preset ranges or create custom ones:
- Today - Current day statistics
- Last 7 Days - Weekly overview
- Last 30 Days - Monthly performance
- Custom Range - Select any date range
Comparing Periods
Compare performance across different time periods:
- Select your primary date range
- Enable comparison mode
- Choose a comparison period
- View side-by-side metrics
Analytics Dashboard
Order Analytics Section
- Total orders
- Order growth rate
- Orders by region
- Orders by channel
- Payment method distribution
Sales Analytics Section
- Total revenue
- Revenue by currency
- Sales growth trends
- Refund amounts
- Net sales calculations
Customer Analytics Section
- New customers
- Repeat customers
- Customer growth rate
- Retention metrics
- Customer acquisition trends
Product Analytics Section
- Top products
- Product variants performance
- Return rates by product
- Inventory levels
- Stock status
Marketing Analytics Section
- Active discounts
- Discount usage
- Most effective promotions
- Discount ROI
- Campaign performance
Pro Version
A commercial pro version is available with additional features:
- Customizable Dashboards - Create personalized analytics views
- Advanced Analytics - More detailed metrics and insights
- Additional Charts - Extended visualization options
- Export Capabilities - Download reports and data
- Priority Support - Direct support from developers
Contact the author for pro version pricing and features.
Filtering Options
Filter analytics by:
- Date Range - Specific time periods
- Order Status - Completed, pending, cancelled, etc.
- Currency - Specific currency codes
- Region - Geographic areas
- Channel - Sales channels
- Payment Provider - Payment methods
Best Practices
- Regular Monitoring - Check analytics daily or weekly
- Trend Analysis - Look for patterns over time
- Comparison - Compare current performance to past periods
- Action on Insights - Use data to inform business decisions
- Multiple Metrics - Don’t rely on single metrics
Use Cases
Business Performance
- Track overall store health
- Monitor growth trends
- Identify seasonal patterns
- Measure goal achievement
Marketing Optimization
- Evaluate campaign effectiveness
- Optimize discount strategies
- Identify high-performing channels
- Improve customer targeting
Inventory Management
- Identify fast-moving products
- Track return rates
- Optimize stock levels
- Plan purchasing
Customer Understanding
- Analyze buying patterns
- Measure retention
- Identify valuable customers
- Improve customer experience