@astrocreep/capacitor-gameanalytics
capacitor support for gameanalytics.com
npm install @astrocreep/capacitor-gameanalytics
npx cap sync
initialize(options: GAInitOptions) => Promise<void>
addBusinessEvent(options: GABusinessEventOptions) => Promise<void>
addDesignEvent(options: GADesignEventOptions) => Promise<void>
Prop |
Type |
debug |
boolean |
build |
string |
key |
string |
secret |
string |
Prop |
Type |
currency |
string |
amount |
number |
itemType |
string |
itemId |
string |
cartType |
string |
receipt |
string |
Prop |
Type |
id |
string |
value |
number |
customFields |
Record<string, string | number | boolean> |
Construct a type with a set of properties K of type T
{
[P in K]: T;
}