Related services: AnalyticsService —
lynkow.analytics.destroy(),lynkow.analytics.disable(),lynkow.analytics.enable(),lynkow.analytics.getTracker(),lynkow.analytics.init(),lynkow.analytics.isEnabled(),lynkow.analytics.isInitialized(),lynkow.analytics.trackEvent(),lynkow.analytics.trackPageview()
EventData
Interface
Data for tracking custom events
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Event type |
EventName
TypeAlias
type EventName = keyof LynkowEventsLynkowEvents
Interface
Event types emitted by the SDK.
Each key is an event name; the value type is the payload passed to listeners.
Use void payload events with emit(event, undefined as any).
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Emitted when the user updates their cookie consent preferences.<br>Payload is a map of category ID to consent boolean<br>(e.g. |
|
| No | Emitted when an SDK operation encounters an unrecoverable error.<br>Payload is the |
|
| No | Emitted when the active locale changes (e.g. via user action or detection).<br>Payload is the new locale code (e.g. |
|
| No | Emitted once when the SDK client is fully initialized and ready to make requests.<br>No payload. Subscribe before calling any service methods to ensure readiness. |
PageviewData
Interface
Data for tracking pageviews
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Page path (default: window.location.pathname) |
|
| Yes | Referrer URL |
|
| Yes | Page title (default: document.title) |