EarnedStats Docs

Track

Goals

Count signups, downloads, clicks and anything else that matters.

Without code

Add data-es-goal to any button or link. Each click counts as that goal.

HTML
<button data-es-goal="signup">Create account</button>

Add details with data-es-goal-* attributes. Each one becomes a property of the goal:

HTML
<a href="/pricing" data-es-goal="plan_click"
   data-es-goal-plan="pro" data-es-goal-period="yearly">Choose Pro</a>

From JavaScript

JavaScript
window.earnedstats?.('goal', 'signup', { plan: 'pro' });
LimitValue
Goal name64 characters
Property value255 characters

From your server

Goals that happen on your backend, such as a confirmed email, can be sent with the server API.

Use goals in funnels

Goals show up on the Goals page with their sources and revenue, and can be steps in a funnel.