About this Guide
This document provides detailed information on the following:
- Recommended events and parameters
- Deep link implementation
- Testing process
Recommended Events per Vertical
The recommendation is to send all events that describe the “user-flow” in the app.
In-App Events Implementation
viewHome
The viewHome event is automatically tracked once the AppsFlyer SDK initializes. This event is fired for each user session.
viewListing
The viewListing event should be fired on pages displaying product lists such as a category page or a search results page. You can use af_view_list as the event name. You must include the IDs of the first three products displayed on the page. These IDs must be unique and match those used in the catalog feed.
viewProduct
The viewProduct event should be fired on all product-details pages. You can use AppsFlyer’s AFInAppEventType.CONTENT_VIEW constant for this event. You must use the ID of the product detailed on the page. The product ID must be unique and must be the same ID used in the catalog feed.
viewBasket
The viewBasket event should be fired on the basket-details pages. You can use the event name af_view_cart. You must include the ID, unit price, and quantity for each product in the basket.
trackTransaction
The trackTransaction event should be fired on order-confirmation pages. You can use AppsFlyer’s AFInAppEventType.PURCHASE constant for this event. You must include a unique transaction ID as well as the ID, unit price, and quantity for each purchased product.
Hashed Email for Cross-Device Targeting
Clients should send Criteo the hashed email address of the app user when available, to enable cross-device targeting.
Steps to generate a hash of an email address:
- Convert all characters to lower case
- Remove any blank spaces
- Convert to UTF-8
- Hash using SHA256 algorithm
Dates for Travel
It’s possible to attach check-in and check-out dates to every Criteo event with AFInAppEventParameterName.DATE_A for check-in date and AFInAppEventParameterName.DATE_B for check-out date. The format is "yyyy-mm-dd".
Testing Process
Once all events have been implemented, you should contact your Criteo representative to begin the testing phase.
Please allow sufficient time (at least a week before) for testing prior to the app submission in order to ensure that the data you are sending is complete.
Criteo requires the following elements:
- App build to test the collection of events on Criteo side.
- If testing remotely, the IDFA of the test device.
- Deep link example (homepage & product detail).