You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`isInitialized`| None |`boolean`| Returns whether the SDK has been initialized. |
69
+
|`initializeSDK`|`config: { pixelId: string, storeUrl: string }`|`Promise<void>`| Initializes the SDK with the provided configuration. Call this as early as possible in your app's lifecycle. |
70
+
|`identifyUser`|`email: string, countryCode: string, phoneNumber: string`|`void`| Identifies a user with their email, country code, and phone number. This helps in tracking user-specific events and improving personalization. |
71
+
|`addEvent`|`eventName: string, currency: string, total: number, products: Product[]`|`void`| Adds a custom event with the specified name, currency, total, and products. This allows tracking of specific actions or milestones in your app. |
72
+
|`viewContentEvent`|`currency: string, total: number, products: Product[]`|`void`| Tracks a view content event when a user views a product or content page. Includes details like currency, total value, and viewed products. |
73
+
|`addToCartEvent`|`currency: string, total: number, products: Product[]`|`void`| Tracks an add to cart event when a user adds items to their shopping cart. Includes details about the added products, total value, and currency. |
74
+
|`initiateCheckoutEvent`|`currency: string, total: number, products: Product[]`|`void`| Tracks the initiation of the checkout process. This event should be called when a user starts the purchasing process. |
75
+
|`purchaseEvent`|`currency: string, total: number, products: Product[]`|`void`| Tracks a completed purchase event. This should be called when a user successfully completes a transaction, including details of purchased products. |
76
+
|`registerEvent`| None |`void`| Tracks a user registration event. This should be called when a new user creates an account in your app. |
0 commit comments