Skip to content

About

End-to-end Product Analytics project using MySQL, SQL, Python, and Tableau. Analyzes customer behavior, purchase funnel, product performance, category insights, and interactive dashboards to support product decisions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SQL Python MySQL Tableau Pandas Excel

๐Ÿ›’ E-Commerce Product Analytics

๐Ÿ“Œ Executive Summary

Understanding customer behavior throughout the online shopping journey is essential for improving conversion rates, increasing revenue, and delivering better customer experiences. This project demonstrates an end-to-end Product Analytics workflow using MySQL, SQL, Python, and Tableau.

Starting from raw e-commerce event data, the project builds a complete analytics pipeline by importing data into MySQL, performing SQL-based business analysis, connecting the database to Python for exploratory analysis and feature engineering, and finally creating interactive Tableau dashboards for business reporting.

The project simulates how Product Analysts and Data Analysts transform raw customer interaction data into actionable business insights.


๐ŸŽฏ Business Problem

E-commerce platforms collect millions of customer interaction events such as product views, add-to-cart actions, and completed purchases. While this data is valuable, businesses often struggle to understand customer behavior, identify conversion bottlenecks, and optimize product performance.

This project aims to analyze customer interactions across the purchase funnel to uncover behavioral patterns, improve product performance, and support data-driven business decisions.


๐ŸŽฏ Business Objectives

The project aims to:

  • Analyze customer behavior across the purchase funnel.
  • Measure product conversion rates.
  • Identify high-performing product categories.
  • Evaluate customer engagement patterns.
  • Analyze revenue and transaction trends.
  • Build interactive dashboards for business reporting.
  • Support product optimization using data-driven insights.

๐Ÿ“‚ Dataset Overview

The project uses a real-world e-commerce behavioral dataset consisting of customer interaction events.

Files Used

  • events.csv
  • category_tree.csv
  • item_properties_part1.csv
  • item_properties_part2.csv

Dataset Includes

  • Customer Events
  • Product Information
  • Product Categories
  • Product Properties
  • Transaction History
  • Event Timestamps

๐Ÿ— Project Architecture

Raw CSV Files
(events.csv,
category_tree.csv,
item_properties_part1.csv,
item_properties_part2.csv)

            โ”‚
            โ–ผ

      MySQL Database

            โ”‚
            โ–ผ

      SQL Analysis

    โ€ข Database Design
    โ€ข Data Cleaning
    โ€ข Business Queries
    โ€ข Analytical Views

            โ”‚
            โ–ผ

      Python Analysis

    โ€ข Pandas
    โ€ข Data Cleaning
    โ€ข Feature Engineering
    โ€ข Exploratory Data Analysis

            โ”‚
            โ–ผ

     Processed Dataset

            โ”‚
            โ–ผ

     Tableau Dashboards

            โ”‚
            โ–ผ

Business Insights & Recommendations

โ“ Business Questions

The project answers the following business questions:

  • How many customers progress through each stage of the purchase funnel?
  • Which product categories generate the highest transactions?
  • Which products have the highest customer engagement?
  • Which products experience the highest cart abandonment?
  • Which customers generate the highest revenue?
  • How does customer activity change over time?
  • Which products perform best across categories?
  • What business insights can improve customer conversion?

๐Ÿ› ๏ธ Tech Stack

Database

  • MySQL

Query Language

  • SQL

Programming

  • Python

Libraries

  • Pandas
  • NumPy
  • SQLAlchemy
  • Matplotlib

Visualization

  • Tableau

Development Environment

  • Jupyter Notebook

Version Control

  • Git
  • GitHub

๐Ÿ”„ Project Workflow

Phase 1 โ€” Data Collection

  • Import CSV files into MySQL.
  • Create relational database tables.

Phase 2 โ€” SQL Analytics

  • Data Cleaning
  • Joins
  • Views
  • Business Queries

Phase 3 โ€” Python Analytics

  • Database Connection
  • Exploratory Data Analysis
  • Feature Engineering
  • Customer Analysis

Phase 4 โ€” Business Intelligence

  • Tableau Dashboard Development
  • KPI Reporting
  • Business Storytelling

๐Ÿ“Š Analysis Performed

The project includes:

  • Customer Behavior Analysis
  • Product Performance Analysis
  • Purchase Funnel Analysis
  • Category Performance Analysis
  • Revenue Analysis
  • Transaction Analysis
  • Customer Engagement Analysis
  • Product Analytics

๐Ÿ“ˆ Dashboard Overview

The Tableau dashboard includes:

  • Executive Summary
  • Customer Funnel Analysis
  • Product Performance
  • Category Performance
  • Revenue Trends
  • Customer Activity
  • Product Conversion Analysis

๐Ÿ“ˆ Key Insights

  • Product views significantly exceed completed purchases, indicating opportunities to improve conversion rates.
  • Customer engagement varies across product categories.
  • Certain categories consistently generate higher transaction volumes.
  • Customer behavior analysis identifies important drop-off points in the purchase funnel.
  • SQL and Tableau together provide comprehensive business reporting for product teams.

๐Ÿ’ก Business Recommendations

Based on the analysis:

  • Improve checkout flow to reduce cart abandonment.
  • Optimize product recommendations for returning users.
  • Increase visibility of high-converting products.
  • Personalize promotions using customer behavior.
  • Continuously monitor product performance using interactive dashboards.

๐Ÿ“ Project Structure

ecommerce-product-analytics/
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ raw/
โ”‚
โ”œโ”€โ”€ notebooks/
โ”‚
โ”œโ”€โ”€ sql/
โ”‚   โ”œโ”€โ”€ create_tables.sql
โ”‚   โ”œโ”€โ”€ import_data.sql
โ”‚   โ”œโ”€โ”€ views.sql
โ”‚   โ””โ”€โ”€ business_queries.sql
โ”‚
โ”œโ”€โ”€ tableau/
โ”‚   โ””โ”€โ”€ Ecommerce_Product_Analytics.twbx
โ”‚
โ”œโ”€โ”€ images/
โ”‚
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ requirements.txt


๐Ÿ’ผ Skills Demonstrated

Programming

  • Python

Database

  • MySQL

Query Language

  • SQL

Data Analysis

  • Pandas
  • NumPy
  • Data Cleaning
  • Feature Engineering
  • Exploratory Data Analysis

Product Analytics

  • Customer Behavior Analysis
  • Purchase Funnel Analysis
  • Product Performance Analysis
  • Business Analytics

Visualization

  • Tableau
  • Dashboard Design
  • Data Storytelling

๐Ÿ”ฎ Future Enhancements

  • Customer Segmentation
  • Cohort Analysis
  • A/B Testing
  • Customer Lifetime Value (CLV)
  • Churn Prediction
  • Recommendation System Analytics

๐Ÿ‘ค Author

Ajay Mundari

SQL | Python | Tableau | Product Analytics | Data Analytics

If you found this project useful, please consider giving it a โญ on GitHub.

About

End-to-end Product Analytics project using MySQL, SQL, Python, and Tableau. Analyzes customer behavior, purchase funnel, product performance, category insights, and interactive dashboards to support product decisions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages