trackkit / index / ProviderInstance
Interface: ProviderInstance
Defined in: types.ts:369
Properties
name
name:
string
Defined in: types.ts:370
Methods
track()
track(
name,props,pageContext):Promise<void>
Defined in: types.ts:377
Track a custom event
Parameters
name
string
Event name (e.g., 'button_click')
props
List of event properties (may be empty)
pageContext
Page context for the event
Returns
Promise<void>
pageview()
pageview(
pageContext):Promise<void>
Defined in: types.ts:382
Track a page view
Parameters
pageContext
Page context for the page view
Returns
Promise<void>
identify()
identify(
userId,pageContext):void
Defined in: types.ts:388
Identify the current user
Parameters
userId
User identifier or null to clear
null | string
pageContext
Page context for the identification event
Returns
void
destroy()
destroy():
void
Defined in: types.ts:392
Clean up and destroy the instance
Returns
void