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
Payload accepted by AnalyticsService.trackEvent. type is the
only required field; every other key becomes an ad-hoc property on the
event recorded by the tracker.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Short slug identifying the event (e.g. |
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
Payload accepted by AnalyticsService.trackPageview. Every field is optional; unset values fall back to the browser context at call time.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | URL path to record. Should start with |
|
| Yes | Referring URL for this pageview, typically |
|
| Yes | Human-readable page title as it appears in the browser tab, used for<br>the analytics dashboard listing. Defaults to |