usePageView
Tracks a page view on mount. Calls adapter.page() for all adapters.
import { usePageView } from "@allem-sdk/analytics";Parameters
| Prop | Type | Default | Description |
|---|---|---|---|
| name* | string | — | Page name |
| properties | Record<string, unknown> | — | Optional properties |
Usage
// At the top of page components
usePageView("Product Page", { productId: "123" });