2.1.0 • Published 8 months ago

@joinflux/capacitor-segment v2.1.0

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

capacitor-segment

A Capacitor plugin for Segment analytics

Install

npm install @joinflux/capacitor-segment

# yarn
yarn add @joinflux/capacitor-segment

# pnpm
pnpm add @joinflux/capacitor-segment

and

npx cap sync

Versioning

  • Version 0.1.3 will target the latest Capacitor version
    • Capacitor 3 is recommended for this version
  • Version 1.x.x will target Capacitor 4
  • Version 2.x.x will target Capacitor 5

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

2.1.0

8 months ago

2.0.0

11 months ago

1.0.1

1 year ago

1.0.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.1

3 years ago