A Capacitor plugin for Segment analytics
npm install @joinflux/capacitor-segment
# yarn
yarn add @joinflux/capacitor-segment
# pnpm
pnpm add @joinflux/capacitor-segmentand
npx cap sync- Version 7.x.x will target Capacitor 7
- Version 6.x.x will target Capacitor 6
- Version 2.x.x will target Capacitor 5
- Version 1.x.x will target Capacitor 4
- Version 0.1.3 will target the latest Capacitor version
- Capacitor 3 is recommended for this version
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() => anyReturns: any
MIT License
