Socket
Book a DemoInstallSign in
Socket

@joinflux/capacitor-segment

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joinflux/capacitor-segment

A Capacitor plugin for Segment analytics

Source
npmnpm
Version
0.2.1
Version published
Weekly downloads
440
-22.26%
Maintainers
2
Weekly downloads
 
Created
Source
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

API

  • initialize(...)
  • identify(...)
  • track(...)
  • page(...)
  • reset()

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

Keywords

capacitor

FAQs

Package last updated on 21 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts