Skip to content

YukthaK215/UserFlow-Analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š UserFlow Analytics – Product Growth & A/B Testing

An end-to-end Product Analytics project that analyzes user behavior, customer retention, product performance, and revenue trends using Python, SQL, and interactive visualizations.


πŸ“Œ Project Overview

UserFlow Analytics is a comprehensive analytics project built on a synthetic e-commerce dataset. The project demonstrates the complete analytics workflowβ€”from data cleaning and exploratory data analysis (EDA) to customer segmentation, funnel analysis, cohort analysis, A/B testing, SQL-based business analysis, and executive reporting.

The goal is to derive actionable business insights that help improve customer engagement, product performance, and revenue growth.


🎯 Business Objectives

  • Analyze customer purchasing behavior.
  • Identify high-performing products and categories.
  • Measure customer retention over time.
  • Analyze user conversion funnels.
  • Perform A/B testing for business decision-making.
  • Generate actionable business recommendations.

πŸ› οΈ Tech Stack

  • Python
  • Pandas
  • NumPy
  • Plotly
  • DuckDB (SQL)
  • SciPy
  • Matplotlib
  • Google Colab

πŸ“‚ Dataset

The project uses a synthetic e-commerce dataset containing:

  • Users
  • Products
  • Orders
  • Order Items
  • User Events
  • Product Reviews

πŸ”„ Project Workflow

1. Data Collection

  • Import datasets
  • Data validation

2. Data Cleaning

  • Missing value handling
  • Duplicate removal
  • Datetime conversion
  • Data type correction

3. Exploratory Data Analysis

  • Product analysis
  • Customer analysis
  • Revenue analysis
  • Brand analysis

4. Business KPIs

  • Total Revenue
  • Total Orders
  • Total Users
  • Total Products
  • Average Order Value

5. Product Analytics

  • Revenue by Category
  • Top Products
  • Brand Performance
  • Monthly Revenue Trend

6. Customer Analytics

  • Customer Segmentation
  • Average Revenue by Segment
  • Top Customers

7. Funnel Analysis

  • View β†’ Cart β†’ Purchase Funnel
  • Drop-off Analysis

8. Cohort Analysis

  • Customer Retention Matrix
  • Retention Heatmap

9. A/B Testing

  • Variant Comparison
  • Conversion Rate Analysis
  • Chi-Square Statistical Test

10. SQL Business Analysis

Business insights generated using DuckDB SQL.


πŸ“ˆ Key Insights

  • Electronics generated the highest revenue.
  • A small number of products contributed significantly to overall sales.
  • Customer retention decreased considerably after the first purchase.
  • The largest conversion drop occurred between product views and cart additions.
  • Platinum customers generated the highest average revenue.
  • A/B testing demonstrated how experimentation supports data-driven decision-making.

πŸ“· Project Screenshots

Top Viewed Producds

top viewed products


Top Products

top products


Top Cities

Top cities


Top Brands

top_brands


Dropoff Analysis

Dropoff Analysis


Customer Retention Heatmap

Cohort Analysis


A/B Testing

A/B Testing


πŸ’‘ Business Recommendations

  • Improve the View β†’ Cart conversion stage.
  • Introduce loyalty programs for high-value customers.
  • Promote high-performing product categories.
  • Improve customer retention using personalized campaigns.
  • Continue A/B testing before implementing major product changes.

πŸš€ Future Improvements

  • Deploy as a Streamlit dashboard.
  • Connect to Google BigQuery.
  • Automate ETL pipelines.
  • Implement customer churn prediction.
  • Build sales forecasting models.

πŸ“ Project Structure

UserFlow-Analytics/
β”‚
β”œβ”€β”€ UserFlow_Analytics.ipynb
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ LICENSE
β”‚
β”œβ”€β”€ images/
β”‚   β”œβ”€β”€ revenue_trend.png
β”‚   β”œβ”€β”€ category_revenue.png
β”‚   β”œβ”€β”€ top_products.png
β”‚   β”œβ”€β”€ customer_segments.png
β”‚   β”œβ”€β”€ funnel_analysis.png
β”‚   β”œβ”€β”€ cohort_heatmap.png
β”‚   └── ab_testing.png
β”‚
└── data/

▢️ How to Run

  1. Clone the repository
git clone https://github.com/YukthaK215/UserFlow-Analytics.git
  1. Install dependencies
pip install -r requirements.txt
  1. Open the notebook
jupyter notebook UserFlow_Analytics.ipynb

or upload the notebook to Google Colab.


πŸ‘©β€πŸ’» Author

Yuktha K

GitHub: https://github.com/YukthaK215


⭐ If you found this project useful, consider giving it a Star!