# HTML Installation

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

Optional attributes:

- `data-domain` — domain being tracked
- `data-allow-localhost="true"` — enable localhost (default false)
- `data-debug="true"` — debug logging

```html
<button data-ed-goal="signup_clicked">Sign Up</button>
<section data-ed-scroll="pricing_viewed">Pricing</section>
```
