Build This Project · Portfolio Guide
E-Commerce Revenue Analytics — Complete Project Guide
Quick summary — build an e-commerce revenue analytics project
E-commerce is a data-rich industry with high demand for analytics talent. This project demonstrates your ability to analyze revenue data, identify trends, and provide actionable insights — skills every e-commerce company needs.
In this guide you will learn:
- Project overview — what you'll build and why.
- Data source — where to get e-commerce data.
- Key metrics and KPIs — what to measure.
- Cohort analysis — customer retention insights.
- Dashboard design — visualizing revenue analytics.
- Portfolio presentation — how to show it to employers.
SECTION 01Project overview
Here's what you'll build in this project:
- Business problem: An e-commerce company wants to understand revenue trends, customer retention, and product performance.
- Your solution: A revenue analytics dashboard that tracks key metrics — revenue, AOV, LTV, retention — and includes cohort analysis.
- Tools: SQL, Python (pandas), Tableau/Power BI, or Excel.
- Outcome: A portfolio-ready project that demonstrates e-commerce analytics and business thinking.
SECTION 02Data source
Here are the best data sources for this project:
| Source | Data | Link |
|---|---|---|
| Kaggle | E-commerce datasets — orders, customers, products | kaggle.com/datasets |
| Olist Store | Brazilian e-commerce dataset | kaggle.com/olist |
| Superstore Dataset | US e-commerce data | kaggle.com/datasets |
| Simulated data | Create your own | Use Python to generate |
SECTION 03Key metrics and KPIs
Here are the key metrics your revenue analytics dashboard should track:
| Metric | Why it matters |
|---|---|
| Total Revenue | Overall business performance — top-line metric |
| Average Order Value (AOV) | Revenue per order — indicates customer spending |
| Customer Lifetime Value (LTV) | Total revenue per customer — growth metric |
| Customer Retention Rate | How many customers return — loyalty metric |
| Monthly Recurring Revenue | Subscription revenue (if applicable) |
| Revenue by Product Category | Which products drive revenue |
SECTION 04Cohort analysis
Cohort analysis is a powerful way to understand customer retention. Here's how to do it:
-- SQL cohort analysis
WITH customer_cohorts AS (
SELECT
customer_id,
MIN(order_date) AS first_order_date,
DATE_TRUNC('month', MIN(order_date)) AS cohort_month
FROM orders
GROUP BY customer_id
),
cohort_retention AS (
SELECT
c.cohort_month,
DATE_TRUNC('month', o.order_date) AS order_month,
COUNT(DISTINCT o.customer_id) AS active_customers
FROM orders o
JOIN customer_cohorts c ON o.customer_id = c.customer_id
GROUP BY c.cohort_month, DATE_TRUNC('month', o.order_date)
)
SELECT *
FROM cohort_retention
ORDER BY cohort_month, order_month;
# Python cohort analysis
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# Assuming df has order_date and customer_id
df['order_date'] = pd.to_datetime(df['order_date'])
df['cohort'] = df.groupby('customer_id')['order_date'].transform('min')
df['cohort_month'] = df['cohort'].dt.to_period('M')
df['order_month'] = df['order_date'].dt.to_period('M')
cohort_data = df.groupby(['cohort_month', 'order_month'])['customer_id'].nunique().reset_index()
cohort_data['cohort_index'] = (cohort_data['order_month'] - cohort_data['cohort_month']).dt.months
cohort_pivot = cohort_data.pivot(index='cohort_month', columns='cohort_index', values='customer_id')
plt.figure(figsize=(12, 8))
sns.heatmap(cohort_pivot, annot=True, fmt='.0f', cmap='Blues')
plt.title('Customer Retention Cohort Analysis')
plt.xlabel('Months Since First Purchase')
plt.ylabel('Cohort Month')
plt.show()
SECTION 05Dashboard design
Here's how to design your revenue analytics dashboard:
- Top section: KPI cards — Total Revenue, AOV, LTV, Retention Rate.
- Middle section: Revenue trends over time, revenue by product category.
- Bottom section: Cohort retention heatmap, customer acquisition trends.
- Filters: Date range, product category, customer segment.
SECTION 06Portfolio presentation
Here's how to present this project to employers:
- GitHub: Upload your code, data preparation scripts, and dashboard file.
- README: Write a clear README with project overview, metrics, and key insights.
- Executive summary: Include a 1-page summary for business stakeholders.
- Screenshots: Add screenshots of your dashboard and cohort analysis.
- LinkedIn post: Share your project with a brief explanation of the business problem you solved.
SECTION 07Interview Q&A — e-commerce revenue analytics
Q1Why did you choose an e-commerce revenue analytics project?
E-commerce is one of the most data-rich industries. I wanted to show I can analyze revenue data, understand customer behavior, and provide actionable insights.
Q2What was the most important metric in your dashboard?
Customer LTV and retention rate — they show long-term business health and customer loyalty. I also included cohort analysis to show retention patterns.
Q3What insights did you find from cohort analysis?
I found that customers acquired in November had the highest retention rates, likely due to holiday promotions. This suggests targeted campaigns could boost retention.
Q4What tool did you use?
I used SQL for data extraction, Python for cohort analysis, and Tableau for the dashboard. I documented everything on GitHub.
Q5What would you do differently next time?
I'd add more customer segmentation — like by channel or product category — and include predictive analytics for revenue forecasting.
SECTION 08Test yourself — e-commerce revenue quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 09Frequently asked questions
What's the best dataset for e-commerce analytics?
Olist Store dataset is excellent — it's well-structured and includes orders, customers, and product data.
What's the most important KPI for e-commerce?
Customer LTV and retention rate — they show long-term business health and customer loyalty.
What is cohort analysis?
Cohort analysis groups customers by acquisition date to track retention patterns over time — it's a powerful way to understand customer loyalty.
How long does this project take?
2-3 weeks with consistent effort — 1 week for data prep, 1 week for analysis, 1 week for dashboard and documentation.
Do I need SQL for this project?
SQL is highly recommended — e-commerce data is typically stored in databases. It's a valuable skill to demonstrate.
SECTION 10Related reads
Classroom & online · Noida
Build an e-commerce analytics project — get hired
Our Data Analytics Training Course includes e-commerce and other portfolio projects with step-by-step guidance.
₹15,500 · full programme- 8 portfolio projects
- Cohort analysis
- Mock interviews
- Weekday & weekend batches