Skip to main content

Send an ADD event for an ancillary flight product to Sitecore CDP

Abstract

Provides the required attributes and a JSON example of how to send an ADD event for an ancillary flight product to the Sitecore CDP (Data model 2.1).

You can use the ADD event to capture ancillary products that the user adds to their cart, such as insurance. This event is optional but employing it can positively affect the amount of available data. Using this event is the only way to capture ancillary products that the user adds to their cart. This event also helps ensure accuracy of the cart contents and order values, when a user returns to their abandoned cart.

To send an ADD event for an ancillary FLIGHT product.type, use the following attributes:

Attribute

Description

Type

Example(s)

Required/optional

channel

The channel captured on each page the guest visited.

string

"WEB", "MOBILE_WEB", "MOBILE_APP"

Required

type

The type of event.

string (uppercase)

"ADD"

Required

language

The language captured on each page the guest visited.

string (2 letter ISO 639 language code)

"EN", "FR", "DE"

Required

currency

The type of currency.

string (3 letter ISO 4217)

"EUR", "USD", "GBP"

Required

page

The name of the webpage the guest visited.

string

"home page", "search page" "/home", "/confirm"

Required

pos

The point of sale (storefront) captured on each page the guest visited.

string (predefined by the client)

"boxever.com", "spinair.com"

Required

browser_id

The ID of a browser generated by Sitecore CDP.

string (UUID)

"56860bff-94ba-4d84-aa37-2b5a83d5411b"

Required

product

The JSON object that contains the ancillary flight product data.

JSON object

N/A

Required

product.type

The type of product added to the cart.

string (uppercase)

"HOTEL", "CAR", “BAG”, “INSURANCE”, “CAR_SEAT”, “MEAL”, “FEE”, “LOUNGE_ACCESS”, “HOTEL_WIFI”, “HOTEL_BREAKFAST”, “SEAT_UPGRADE”, “TAXI”, “PARKING”, “SEAT”, “UPGRADE”, “TRANSPORT”, “OTHER”, “INFLIGHT_ENTERTAINMENT“, “ACTIVITY“, “CARBON_OFFSET“, “PAID_SUBSCRIPTION“, “COMFORT_PACK“, “INFLIGHT_VOUCHER“, “PACKAGE“, “SMS_ITINERARY“, “SPECIAL_ASSISTANCE“, “CHARITY_DONATION“, “TRANSFER“ Deprecated: "BAGGAGE", "FEES", "SEAT_UPGRADES", "INFLIGHT_VOUCHERS"

Required

product.item_id

The item ID of the product added to the cart. Used in ETL to create the order.

string

"BAG_1"

Required

product.name

The name of the product added to the cart.

string (suggest title case) Max limit: 128

"20kg Bag"

Required

product.currency

The currency of the product added to the cart.

string (2 letter ISO 4217)

"EUR", "USD", "NZD"

Required

product.price

The unit price of the product. Total price of the product is calculated by unit price multiplied by quantity.

number

20, 1000.5

Required

product.product_id

The product ID of the product added. Used in Analytics for reporting.

string (suggest title case)

"Bag20"

Required

product.quantity

The number of units added. Total price of the product is calculated by unit price multiplied by quantity.

integer

2

Required

The following JSON example demonstrates how to send an ADD event for an ancillary FLIGHT product.type:

{
    "channel": "WEB",
    "type": "ADD",
    "language": "EN",
    "currency": "EUR",
    "page": "passengers page",
    "pos": "spinair.com",
    "browser_id": "56860bff-94ba-4d84-aa37-2b5a83d5411b",
    "product": {
        "type": "BAG",
        "item_id": "BAG_1",
        "name": "20kg Bag",
        "currency": "EUR",
        "price": 10,
        "product_id": "Bag20",
        "quantity": 1
    }
}