Skip to main content
App Events allow you to track user actions in your app and measure the effectiveness of your Facebook ads. The SDK provides robust event logging capabilities for both standard and custom events.

Basic Event Logging

Logging Standard Events

Logging Custom Events

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

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.CompletedRegistration
  • AppEvents.AddedToCart
  • AppEvents.AddedToWishlist
  • AppEvents.InitiatedCheckout
  • AppEvents.Purchased
  • AppEvents.ViewedContent
  • AppEvents.AchievedLevel
  • AppEvents.CompletedTutorial
  • AppEvents.Searched
  • AppEvents.Rated
  • AppEvents.Subscribe

Standard Parameters

  • AppEventParams.ContentType
  • AppEventParams.ContentID
  • AppEventParams.Currency
  • AppEventParams.NumItems
  • AppEventParams.RegistrationMethod
  • AppEventParams.PaymentInfoAvailable
  • AppEventParams.Level
  • AppEventParams.Success