App Events Best Practices for Hotel Travel App
Updated: Jun 30, 2026
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.
Hotel App Objectives
- Understand conversion flow through app
- Retarget users that have abandoned their cart
- Find new users through lookalikes of high value users
Example Hotel App
ActivatedApp 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

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

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

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

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

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];
}
Hotel Travel App Recommended Events and Parameters
| Event Name | Predefined | Suggested Parameters |
|---|---|---|
App Install | Yes | |
Launched App | Yes | |
Searched | Yes | SearchString, Check in Date, Check out Date, Number of Rooms, Advanced Booking Window, Number of Nights |
Viewed Content | Yes | SearchString, Content ID, Location, Check in Date, Check out Date, Currency, valueToSum,Number of Rooms, Advanced Booking Window, Number of Nights |
Initiated Checkout | Yes | Content ID, Currency, valueToSum, Location, Check in Date, Check out Date, ,Number of Rooms, Advanced Booking Window, Number of Nights |
Added Payment Info | Yes | |
Purchased | Yes | Content ID, Currency, valueToSum, Location, Check in Date, Check out Date, ,Number of Rooms, Advanced Booking Window, Number of Nights |