Skip to content

louison/capacitor-segment

 
 

Repository files navigation

capacitor-segment logo

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
Param Type
options { key: string; trackLifecycle?: boolean; recordScreenViews?: boolean; }

Returns: any


identify(...)

identify(options: IdentifyOptions) => any
Param Type
options Identity & { traits?: any; options?: any; }

Returns: any


track(...)

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

Returns: any


page(...)

page(options: PageOptions) => any
Param Type
options { pathname: string; properties: any; }

Returns: any


reset()

reset() => any

Returns: any


License

MIT License

About

Segment SDK for Capacitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 36.6%
  • TypeScript 26.8%
  • Swift 22.3%
  • Ruby 6.2%
  • Objective-C 5.3%
  • JavaScript 2.8%