# HTML Installation

```html
<script
  defer
  data-api-key="YOUR_API_KEY"
  src="https://www.eventda.sh/tracker.js"
></script>
<link rel="preload" as="image" href="https://www.eventda.sh/api/crawl?key=YOUR_API_KEY">
```

The crawl preload counts known agents. It does not name an unnamed network. That needs a server report, documented on the Next.js install page.

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>
```
