Before you begin:
Affise MMP - Facebook events
To be displayed in statistics for events:
Purchase
Sales
TravelBooking
InitialSubscription
it's recommended to add the following parameters:
PredefinedFloat.REVENUE
PredefinedString.CURRENCY
for example:
PurchaseEvent(userData = "apple").apply {
addPredefinedParameter(PredefinedString.ORDER_ID, "23123")
addPredefinedParameter(PredefinedString.CURRENCY, "USD")
addPredefinedParameter(PredefinedFloat.REVENUE, 2.19f)
}
Parameters to send events to Facebook
Facebook event | Facebook object properties | Affise Event Name | Affise MMP SDK Parameters |
AddPaymentInfo | content_category content_ids contents currency value |
| PredefinedString.PARAM_01 PredefinedListString.CONTENT_IDS PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedFloat.PRICE |
AddToCart | content_ids content_name content_type contents currency value
|
| PredefinedListString.CONTENT_IDS PredefinedString.CONTENT_ID PredefinedString.CONTENT_TYPE PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedFloat.PRICE |
AddToWishlist | content_name content_category content_ids contents currency value
|
| PredefinedString.CONTENT_ID PredefinedString.PARAM_01 PredefinedListString.CONTENT_IDS PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedFloat.PRICE |
CompleteRegistration | content_name currency status value
|
| PredefinedString.CONTENT_ID PredefinedString.CURRENCY PredefinedString.STATUS PredefinedFloat.PRICE |
InitiateCheckout | content_category content_ids contents currency num_items value
|
| PredefinedString.PARAM_01 PredefinedListString.CONTENT_IDS PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedLong.QUANTITY PredefinedFloat.PRICE |
Lead | content_category content_name currency value
|
| PredefinedString.PARAM_01 PredefinedString.CONTENT_ID PredefinedString.CURRENCY PredefinedFloat.PRICE |
Purchase | content_ids content_name content_type contents currency num_items value
⚠️ All these parameters are required. |
| PredefinedListString.CONTENT_IDS PredefinedString.CONTENT_ID PredefinedString.CONTENT_TYPE PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedLong.QUANTITY PredefinedFloat.PRICE |
Search | content_category content_ids content_type contents currency search_string value
|
| PredefinedString.PARAM_01 PredefinedListString.CONTENT_IDS PredefinedString.CONTENT_TYPE PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedLong.SEARCH_STRING PredefinedFloat.PRICE |
StartTrial | currency predicted_ltv value
|
| PredefinedString.CURRENCY PredefinedLong.PREFERRED_PRICE_RANGE PredefinedFloat.PRICE |
Subscribe | currency predicted_ltv value
|
| PredefinedString.CURRENCY PredefinedLong.PREFERRED_PRICE_RANGE PredefinedFloat.PRICE |
ViewContent | content_ids content_category content_name content_type contents currency value
|
| PredefinedListString.CONTENT_IDS PredefinedString.PARAM_01 PredefinedString.CONTENT_ID PredefinedString.CONTENT_TYPE PredefinedListObject.CONTENT_LIST PredefinedString.CURRENCY PredefinedFloat.PRICE |
Please contact the Affise Customer Support team regarding all raised questions via the e-mail: [email protected].