# React Installation

Add the tracker to `public/index.html`:

```html
<script
  defer
  data-api-key="YOUR_API_KEY"
  src="https://www.eventda.sh/tracker.js"
></script>
```

Page views are tracked automatically. Prefer HTML attributes:

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

Or `window.eventDash.trackGoal('signup_clicked', { page: 'homepage' })`. Custom `track()` events are available on all plans but are not conversion goals.
