App Events

App Events Best Practices for Air Travel App

Updated: Jun 30, 2026
Copy for LLM
This guide is intended to be used as a starting point for your app and should be customized. The example app provides a screen by screen breakdown of the different events and parameters that can be collected. At the end of it, there is a table that lists the recommended events and parameters for your app.

Air Travel App Product and Marketing Objectives

  • Understand conversion flow through app
  • Retarget users that started a checkout but did not purchase
  • Find new users using lookalikes of high value or frequent purchasers

Example Air Travel App

ActivatedApp Event

Flight Book app home screen after launch, greeting Lisa Miller with menu options, illustrating the App Launch event
ActivatedApp Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
- (void)applicationDidBecomeActive:(UIApplication *)application {
    [FBSDKAppEvents activateApp];
}

Searched Event

Flight search form with SFO to LAX, dates, class and passengers, numbered to map Search event parameters
Searched Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logSearchedEvent :(NSString*)contentType
    searchString :(NSString*)searchString
    success :(BOOL)success {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        contentType, FBSDKAppEventParameterNameContentType,
        searchString, FBSDKAppEventParameterNameSearchString,
        [NSNumber numberWithInt:success ? 1 : 0], FBSDKAppEventParameterNameSuccess,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameSearched
        parameters: params];
}

ViewedContent Event

Outbound flight details SFO to LAX with numbered callouts mapping ViewedContent event parameters
Return flight details LAX to SFO with numbered callouts mapping ViewedContent event parameters
ViewedContent Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logViewedContentEvent :(NSString*)contentType
    contentId :(NSString*)contentId
    currency :(NSString*)currency
    valToSum :(double)price {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        contentType, FBSDKAppEventParameterNameContentType,
        contentId, FBSDKAppEventParameterNameContentID,
        currency, FBSDKAppEventParameterNameCurrency,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameViewedContent
        valueToSum: price
        parameters: params];
}

InitiatedCheckout Event

Review and Purchase screen with fare breakdown and totals, numbered to map InitiatedCheckout event parameters
InitiatedCheckout Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logInitiatedCheckoutEvent :(NSString*)contentId
    contentType :(NSString*)contentType
    numItems :(int)numItems
    paymentInfoAvailable :(BOOL)paymentInfoAvailable
    currency :(NSString*)currency
    valToSum :(double)totalPrice {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        contentId, FBSDKAppEventParameterNameContentID,
        contentType, FBSDKAppEventParameterNameContentType,
        [NSNumber numberWithInt:numItems], FBSDKAppEventParameterNameNumItems,
        [NSNumber numberWithInt:paymentInfoAvailable ? 1 : 0], FBSDKAppEventParameterNamePaymentInfoAvailable,
        currency, FBSDKAppEventParameterNameCurrency,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameInitiatedCheckout
        valueToSum: totalPrice
        parameters: params];
}

AddedPaymentInfo Event

Payment Info screen with name and credit card fields, illustrating the AddedPaymentInfo event
AddedPaymentInfo Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logAddedPaymentInfoEvent :(BOOL)success {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        [NSNumber numberWithInt:success ? 1 : 0], FBSDKAppEventParameterNameSuccess,
        nil];

    [FBSDKAppEvents logEvent: FBSDKAppEventNameAddedPaymentInfo
        parameters: params];
}

Purchased Event

Thank You purchase summary with flights and total, numbered to map Purchase event parameters
Purchased Event Code Example:
/**
 * For more details, please take a look at:
 * developers.facebook.com/docs/reference/ios/current/class/FBSDKAppEvents
 */
 - (void)logPurchasedEvent :(int)numItems
    contentType :(NSString*)contentType
    contentId :(NSString*)contentId
    currency :(NSString*)currency
    valToSum :(double)price {

NSDictionary *params =
    [[NSDictionary alloc] initWithObjectsAndKeys:
        [NSNumber numberWithInt:numItems], FBSDKAppEventParameterNameNumItems,
        contentType, FBSDKAppEventParameterNameContentType,
        contentId, FBSDKAppEventParameterNameContentID,
        currency, FBSDKAppEventParameterNameCurrency,
        nil];

    [FBSDKAppEvents logPurchase:price
          currency: currency
        parameters: params];
}
Event Name Predefined Suggested Parameters
App Install
Yes
Launched App
Yes
Searched
Yes
Origination City,Destination City,Departure Date,Return Date,Class,Number of Passengers, Advance Booking Window
Viewed Content
Yes
Origination City, Destination City, Depature Date, Flight Number, Number of Passengers, Class, Currency, valueToSum,Content Type
Initiated Checkout
Yes
Outbound Origination City, Outbound Destination City, Return Origination City, Return Destination City,Class, Currency, valueToSum
Added Payment Info
Yes
Purchased
Yes
Outbound Origination City, Outbound Destination City, Return Origination City, Return Destination City,Class, Currency, valueToSum