Cracking the loyalty code: a slump in retention rates forced the Tate museum to rethink its membership strategy.