<TelemetryDeckAnalytics> initializes TelemetryDeck and automatically tracks
page views on route changes.
Use it in your root layout to enable analytics site-wide.
<TelemetryDeckAnalytics
appID="your-telemetrydeck-app-id"
clientUser="anonymous"
/>This component sends pageView with { path } each time pathname changes.
Properties
All properties are passed through to TelemetryDeck SDK options.
| Property | Value | Description |
|---|---|---|
appID | string | Your TelemetryDeck App ID. Required. |
clientUser | string | Stable user identifier. Use |
target | string | Optional custom backend endpoint. |
sessionID | string | Optional session identifier. |
salt | string | Optional salt used for hashing user identifiers. |
testMode | boolean | Enables test mode for local verification. |
store | StorageLike | Optional custom storage implementation. |
subtleCrypto | SubtleCrypto | Optional custom crypto implementation. |
For custom events, use the useTelemetryDeck() hook.