@aigens/aigens-sdk-facebook-analytics
v0.5.1
Published
Aigens Order.Place aigens-sdk-facebook-analytics Plugin
Downloads
172
Readme
@aigens/aigens-sdk-facebook-analytics
Aigens Order.Place Core Plugin
Install
npm install @aigens/aigens-sdk-facebook-analytics
npx cap sync
API
initSdk()
logEvent(...)
logPurchase(...)
logAddPaymentInfo(...)
logAddToCart(...)
logCompleteRegistration(...)
logInitiatedCheckout(...)
initSdk()
initSdk() => Promise<any>
Returns: Promise<any>
logEvent(...)
logEvent(options: { eventName: string; valueToSum?: number; params?: any; }) => Promise<string>
| Param | Type |
| ------------- | ---------------------------------------------------------------------- |
| options
| { eventName: string; valueToSum?: number; params?: any; } |
Returns: Promise<string>
logPurchase(...)
logPurchase(options: { amount: number; currency: string; params: any; }) => Promise<string>
| Param | Type |
| ------------- | --------------------------------------------------------------- |
| options
| { amount: number; currency: string; params: any; } |
Returns: Promise<string>
logAddPaymentInfo(...)
logAddPaymentInfo(options: { success: number; }) => Promise<string>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { success: number; } |
Returns: Promise<string>
logAddToCart(...)
logAddToCart(options: { amount: number; currency: string; }) => Promise<string>
| Param | Type |
| ------------- | -------------------------------------------------- |
| options
| { amount: number; currency: string; } |
Returns: Promise<string>
logCompleteRegistration(...)
logCompleteRegistration(options: { params?: any; }) => Promise<string>
| Param | Type |
| ------------- | ------------------------------ |
| options
| { params?: any; } |
Returns: Promise<string>
logInitiatedCheckout(...)
logInitiatedCheckout(options: { amount: number; params?: any; }) => Promise<string>
| Param | Type |
| ------------- | ---------------------------------------------- |
| options
| { amount: number; params?: any; } |
Returns: Promise<string>