Analytics travel
Category - Travel
Search Event
Search event should be sent from the screen where user searches for flight/bus/hotel.
1 | |
Create a search object by passing following arguments
-
fromLocation:
stringSource location will be city name for Bus, location of hotel in case of hotels and should be International airport code for flight category. -
toLocation:
string[]This array should contain destination location for flights/bus. Incase there are intermediate locations they should came in same array in order. This field can be empty for hotel booking. -
date:
Date[]This will contain array of dates for multi city travel. For hotel booking this will be start and end date of hotel reservation. -
roundTrip:
booleanTrue if it is a round trip -
travellerCount:
numberNumber of travellers. Must be greater than zero.
Sample
For react native
1 2 | |
For webview
1 2 | |
Select Event
Select event should be sent when user clicks and selects any flight/bus/hotel from the list.
1 | |
Following are the arguments for Select
-
name:
stringThis will be flight name/hotel name or name of Bus operator -
category:
stringIt should have one of the following values, FLIGHT_INTERNATIONAL, FLIGHT_DOMESTIC, HOTEL_INTERNATIONAL, HOTEL_DOMESTIC, BUS -
price:
numberPrice of the product selected in Rupees. Price must not be negative.
Sample
For react native
1 2 | |
For webview
1 2 | |
ProceedToPay Event
Proceed to pay event should be sent when users completes the selection and is proceeding to the payment screen
1 | |
Following are the arguments for Proceed to pay event. All the values below are in Rupees and accepts decimal.
-
amountToPay:
numberCost of Travel Product in Rupees. This should not be negative. -
(Optional) offerAmount:
numberTotal offer amount given to the customer. The value should not be negative. -
(Optional) bookingCharge:
numberAmount charged as conveniance fees. The value should not be negative. -
(Optional) vasCharge:
numberTotal value added service charge for the customer. Value should not be negative.
Sample
For react native
1 2 | |
For webview
1 2 | |