Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Cohort Tool.

Features

  • Retention analysis — Track what percentage of users remain active over time
  • Flexible cohorts — Group by month, week, or day
  • Heatmap output — HTML retention heatmap with color-coded cells
  • Average retention — See the overall retention curve across all cohorts
  • JSON export — Machine-readable results for dashboards and further analysis
  • CLI and library — Use from the command line or import as a module

Requirements

  • Python 3.10+
  • No external dependencies (stdlib only)
Chapter 2

Quick Start

Follow this guide to get Cohort Tool up and running in your environment.

Quick Start

bash
# Monthly cohort retention
python src/cohort_tool.py --events examples/sample_cohort_data.json --cohort-by month

# Weekly cohorts with HTML heatmap
python src/cohort_tool.py --events data.json --cohort-by week --html heatmap.html

# Export results
python src/cohort_tool.py --events data.json --output retention.json --periods 12

Output Example

================================================================================
  COHORT RETENTION (MONTH)
  Total users: 450
================================================================================

  Cohort          Size     P0     P1     P2     P3     P4
  --------------------------------------------------------
  2026-01           80  100.0%  72.5%  58.8%  45.0%  38.8%
  2026-02           95  100.0%  68.4%  52.6%  41.1%
  2026-03          110  100.0%  70.9%  55.5%
  2026-04           85  100.0%  65.9%
  2026-05           80  100.0%
  --------------------------------------------------------
  Average                100.0%  69.4%  55.6%  43.0%  38.8%
Chapter 3
🔒 Available in full product

License

You’ve reached the end of the free preview

Get the full Cohort Tool and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $29 →
📦 Free sample included — download another copy for the full product.
Cohort Tool v1.0.0 — Free Preview