Are you retaining customers? Do you have - OMG - negative churn? Are your hands sweating in anticipation? Let's find out! Now!
This generates 2 heatmaps of Stripe Customer Cohorts:
- Customer retention over time
- Revenue retention over time
Heatmaps are saved as PNGs in the current working directory (total_customers_heatmap.png and amount_due_heatmap.png, respectively).
Heavily inspired by Greg Reda's Cohort Analysis with Python. Seriously - he did like almost all the work.
STRIPE_API_KEY=[YOUR API KEY] python stripe_cohort_analysis.py
PetalData's Stripe API is used to download invoices.
Email [email protected].
