Originally forked from: https://github.com/joinflux/capacitor-segment
A Capacitor plugin for Segment analytics
npm install @FelixHealth/capacitor-segment
and
npx cap sync
initialize(options: InitializeOptions) => any
Param | Type |
---|---|
options |
{ key: string; trackLifecycle?: boolean; recordScreenViews?: boolean; } |
Returns: any
identify(options: IdentifyOptions) => any
Param | Type |
---|---|
options |
Identity & { traits?: any; options?: any; } |
Returns: any
track(options: TrackOptions) => any
Param | Type |
---|---|
options |
{ eventName: string; properties: any; } |
Returns: any
page(options: PageOptions) => any
Param | Type |
---|---|
options |
{ pathname: string; } |
Returns: any
reset() => any
Returns: any
MIT License