Build a cohort retention analysis script for transactional data — Analysis Task