1.0.0 • Published 12 months ago

@felix-health/capacitor-segment v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

capacitor-segment

Originally forked from: https://github.com/joinflux/capacitor-segment

A Capacitor plugin for Segment analytics

Install

npm install @FelixHealth/capacitor-segment

and

npx cap sync

API

initialize(...)

initialize(options: InitializeOptions) => any
ParamType
options{ key: string; trackLifecycle?: boolean; recordScreenViews?: boolean; }

Returns: any


identify(...)

identify(options: IdentifyOptions) => any
ParamType
optionsIdentity & { traits?: any; options?: any; }

Returns: any


track(...)

track(options: TrackOptions) => any
ParamType
options{ eventName: string; properties: any; }

Returns: any


page(...)

page(options: PageOptions) => any
ParamType
options{ pathname: string; }

Returns: any


reset()

reset() => any

Returns: any


License

MIT License

1.0.0

12 months ago