Skip to content

Identify logged-in users

Once you know who a visitor is — after login, for instance — attach an identifier so their activity ties together across visits:

mad.identify('user_182', { plan: 'pro' });

Use a role, a plan, or a hashed/internal ID — never an email address or name. See Privacy for why, and Custom events for the full identify reference.