--Desktop---
flight_booking:
cookieId,
hashedEmail,
newCustomer,
newFlightBooking,
Code Location: ~/src/desktop/flight/booking/DesktopFlightBookingReviewPage.js
Sample Script:
const segmentTrackData = {
'bookingId': bookingId,
'country': country.toUpperCase(),
'currency': window.appContext.currency,
'flightTicketPriceSingle': Number(props.defaultInvoice.invoiceRendering.orderEntryRenderingList[0].unitPrice),
'flightTicketQuantity': flightBookingInfo.bookingDetail.passengers.adults.length,
'hashedEmail': customerStateEmail.hashedEmail,
'interface': window.appContext.clientInterface,
};
segmentTrack('flight_search',segmentTrackData)
On Flight Booking Review Page : bookingContactEmail, bookingContactName, country, currency, language, profileId
Code Location: -
- On Flight Search Page : bookingContactEmail, bookingContactName, country, currency, language, profileId
Code Location: -
Sample Script:
const segmenIdentifyData = {
profileId: userIdentity.identifier,
country: window.appContext.country,
language: window.appContext.lang,
currency: window.appContext.currency,
name: userIdentity.firstName,
};
segmentIdentify(userIdentity.identifier, segmenIdentifyData);
page, track, identify --> are segment tracking type, details please check this docs: https://docs.google.com/spreadsheets/d/1iQMSs9gVckMZnv1Nrh0MH6tiNI1ZV9yCcZenQmgGlqI/edit#gid=1332922012