EarnedStats Docs

Track

Identify users

Put a name on signed in visitors so their visits and payments line up.

Once someone signs in, tell EarnedStats who they are. Their profile shows the name instead of an animal name, and payments made with the same email are linked to them.

JavaScript
window.earnedstats?.('identify', {
  user_id: user.id,
  email: user.email,
  name: user.name,
});
Note

Only send what you are allowed to keep. All three fields are optional, and user_id alone is enough to link visits.