# Goal Tracking

Prefer `data-ed-goal` or `trackGoal()`. `track()` creates a custom event, not a goal.

```html
<button data-ed-goal="signup_clicked">Sign Up</button>
```

```javascript
window.eventDash.trackGoal('signup_clicked', { page: 'homepage' })
```

Use clear names. Wire important goals into funnels in the dashboard.
