Basic Event Logging
Logging Standard Events
Logging Custom Events
- Simple Event
- Event with Value
- Event with Parameters
- Event with Value and Parameters
Purchase Events
Log a Purchase
Purchase with Details
Multi-Currency Support
Standard Events
The SDK provides predefined events for common app actions:User Management
Setting User ID
Getting User IDs
Setting User Data
Provide user data for advanced matching:Product Catalog Events
Log Product Item
Product Availability Options
Push Notifications
Log Push Notification Open
Setting Device Tokens
- iOS
- Android
Flush Behavior
Setting Flush Behavior
Manual Flush
Aggregated Event Measurement (AEM) for iOS
AEM allows measurement of app events from iOS 14.5+ users who have opted out of app tracking.
Setup AEM in AppDelegate
First, configure AEM in your iOS AppDelegate:Logging AEM Events
Logging Custom AEM Events
logAEMEvent is safe to call on Android - it will do nothing if the platform is not iOS.Complete Example
API Reference
AppEventsLogger Methods
Standard Events
AppEvents.CompletedRegistrationAppEvents.AddedToCartAppEvents.AddedToWishlistAppEvents.InitiatedCheckoutAppEvents.PurchasedAppEvents.ViewedContentAppEvents.AchievedLevelAppEvents.CompletedTutorialAppEvents.SearchedAppEvents.RatedAppEvents.Subscribe
Standard Parameters
AppEventParams.ContentTypeAppEventParams.ContentIDAppEventParams.CurrencyAppEventParams.NumItemsAppEventParams.RegistrationMethodAppEventParams.PaymentInfoAvailableAppEventParams.LevelAppEventParams.Success