Skip to content

RuiCDev/ab-testing-product-analytics-conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📊 Product Analytics & A/B Testing: Conversion Optimisation

📌 Overview

This project analyses the impact of a marketing experiment (A/B test) on user conversion behaviour. The goal is to determine whether a new campaign variant (Test group) improves performance compared to the Control group.

The analysis focuses on conversion efficiency across the marketing funnel, combining SQL-based data exploration with statistical validation in Python.


🎯 Business Problem

A company launched a new marketing campaign (Test group) to improve conversions.

Key question:

Should the company roll out the new campaign to all users?


📂 Dataset

Features include:

  • Impressions
  • Clicks
  • View Content
  • Add to Cart
  • Purchases
  • Spend

🛠️ Tech Stack

  • SQL (MySQL) → Data cleaning & metric calculation
  • Python (statsmodels) → Statistical testing
  • Tableau → Data visualisation (optional)

📊 Key Metrics

Conversion Rate

Conversion is defined as:

Purchase / Clicks


📊 Visualisations

Conversion Rate

Conversion Rate

Funnel Comparison

Funnel

🔍 Analysis

1. Conversion Rate by Group

Group Clicks Purchases Conversion Rate
Control 154,303 15,161 9.83%
Test 180,970 15,637 8.64%

👉 The test group generated more traffic but had a lower conversion rate.


2. Funnel Analysis

Stage Control Test
Impressions 3,177,233 2,237,544
Clicks 154,303 180,970
View Content 56,370 55,740
Add to Cart 37,700 26,446
Purchases 15,161 15,637

👉 Drop-off increases significantly after clicks in the test group.


🧪 Statistical Testing

A two-proportion z-test was conducted to evaluate whether the difference in conversion rates is statistically significant.

  • Z-statistic: 11.84
  • p-value: < 0.001

👉 Result: The difference is highly statistically significant.


💡 Key Insights

  • The test group drives more clicks, indicating higher initial engagement
  • However, it performs worse in downstream conversion
  • The issue likely occurs post-click (landing page, UX, or targeting quality)

🚨 Final Decision

The test variant should NOT be rolled out.

Although it increases traffic, it significantly reduces conversion efficiency. The negative impact is statistically significant and would likely reduce overall revenue performance.


🧠 Product Thinking

This analysis highlights an important principle:

More traffic ≠ better performance

Optimising for clicks without considering downstream conversion can harm business outcomes.


📈 Next Steps

  • Investigate landing page experience for the test group
  • Analyse user segments (device, location, traffic source)
  • Run follow-up experiments focusing on conversion optimisation

📎 Project Structure

ab-testing-product-analytics/
├── data/
├── sql/
├── notebooks/
├── images/
├── docs/
├── README.md

🚀 What This Project Demonstrates

  • A/B testing methodology
  • Funnel analysis
  • Statistical validation
  • Business decision-making using data
  • End-to-end analytics workflow

👤 Author

Rui Cristovam

About

SQL and Python project analysing a marketing A/B test, funnel performance, and statistical significance for conversion optimisation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors