@astrocreep/capacitor-gameanalytics
v0.3.0
Published
capacitor support for gameanalytics.com
Downloads
6
Readme
@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; }