@astrocreep/capacitor-gameanalytics
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@astrocreep/capacitor-gameanalytics

capacitor support for gameanalytics.com

Install

npm install @astrocreep/capacitor-gameanalytics
npx cap sync

API

initialize(...)

initialize(options: GAInitOptions) => Promise<void>
Param Type
options GAInitOptions

addBusinessEvent(...)

addBusinessEvent(options: GABusinessEventOptions) => Promise<void>
Param Type
options GABusinessEventOptions

addDesignEvent(...)

addDesignEvent(options: GADesignEventOptions) => Promise<void>
Param Type
options GADesignEventOptions

Interfaces

GAInitOptions

Prop Type
debug boolean
build string
key string
secret string

GABusinessEventOptions

Prop Type
currency string
amount number
itemType string
itemId string
cartType string
receipt string

GADesignEventOptions

Prop Type
id string
value number
customFields Record<string, string | number | boolean>

Type Aliases

Record

Construct a type with a set of properties K of type T

{ [P in K]: T; }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.3.02latest

Version History

VersionDownloads (Last 7 Days)Published
0.3.02
0.2.02

Package Sidebar

Install

npm i @astrocreep/capacitor-gameanalytics

Weekly Downloads

4

Version

0.3.0

License

MIT

Unpacked Size

18.1 kB

Total Files

20

Last publish

Collaborators

  • astrocreep