# HTML Attributes

The tracker script must be installed first.

## Goals

```html
<button data-ed-goal="signup_clicked">Sign Up</button>
<a href="/pricing" data-ed-goal="pricing_viewed">View Pricing</a>
<button
  data-ed-goal="purchase_initiated"
  data-ed-goal-product-id="prod_123"
  data-ed-goal-amount="99.99"
  data-ed-goal-currency="USD"
>
  Buy Premium
</button>
```

Kebab-case `data-ed-goal-*` params become snake_case properties. Alias `data-fast-goal` works for goals only; prefer `data-ed-*`.

## Scroll

```html
<section data-ed-scroll="pricing_section_viewed">…</section>
<div data-ed-scroll="hero_viewed" data-ed-scroll-threshold="0.75">…</div>
```

Threshold is 0–1 (default ~0.5). There is no `data-fast` alias for scroll.
