Hospitality
To track an event using the hospitality package, you can use the corresponding method on the tracker instance. For example:
Example
Exemple de code
val properties = HospitalityCheckedInProperties(
adultsCount = adultsCount
)
bird.tracker.hospitality.checkedIn(properties)Exemple de code
let properties = HospitalityCheckedInProperties(
adultsCount: adultsCount
)
bird.tracker.hospitality.checkedIn(properties)Exemple de code
const properties: HospitalityCheckedInProperties = {
adults_count: adults_count
};
Bird.tracker.hospitality.checkedIn(properties, event_opts);Methods
checkedIn()
Exemple de code
val properties = HospitalityCheckedInProperties(
adultsCount = adultsCount
)
bird.tracker.hospitality.checkedIn(properties)Exemple de code
let properties = HospitalityCheckedInProperties(
adultsCount: adultsCount
)
bird.tracker.hospitality.checkedIn(properties)Exemple de code
const properties: HospitalityCheckedInProperties = {
adults_count: adults_count
};
Bird.tracker.hospitality.checkedIn(properties, event_opts);HospitalityCheckedInProperties
| Property | Type |
|---|---|
| adults_count? | Number |
| booking_creation_time? | String |
| booking_source? | String |
| booking_status? | String |
| booking_total? | Number |
| check_in_date? | String |
| check_out_date? | String |
| children_count? | Number |
| confirmation_number? | String |
| currency_code? | String |
| guest_email? | String |
| guest_first_name? | String |
| guest_id? | String |
| guest_last_name? | String |
| guest_phone_number? | String |
| length_of_stay? | Number |
| payment_method? | String |
| payment_status? | String |
| property_id? | String |
| reservation_status? | String |
| room_number? | String |
| room_rate? | Number |
| room_type? | String |
| rooms_booked_count? | Number |
checkedOut()
Exemple de code
val properties = HospitalityCheckedOutProperties(
adultsCount = adultsCount
)
bird.tracker.hospitality.checkedOut(properties)Exemple de code
let properties = HospitalityCheckedOutProperties(
adultsCount: adultsCount
)
bird.tracker.hospitality.checkedOut(properties)Exemple de code
const properties: HospitalityCheckedOutProperties = {
adults_count: adults_count
};
Bird.tracker.hospitality.checkedOut(properties, event_opts);HospitalityCheckedOutProperties
| Property | Type |
|---|---|
| adults_count? | Number |
| booking_creation_time? | String |
| booking_source? | String |
| booking_status? | String |
| booking_total? | Number |
| check_in_date? | String |
| check_out_date? | String |
| children_count? | Number |
| confirmation_number? | String |
| currency_code? | String |
| guest_email? | String |
| guest_first_name? | String |
| guest_id? | String |
| guest_last_name? | String |
| guest_phone_number? | String |
| length_of_stay? | Number |
| payment_method? | String |
| payment_status? | String |
| property_id? | String |
| reservation_status? | String |
| room_number? | String |
| room_rate? | Number |
| room_type? | String |
| rooms_booked_count? | Number |
reservationCreated()
Exemple de code
val properties = HospitalityReservationCreatedProperties(
adultsCount = adultsCount
)
bird.tracker.hospitality.reservationCreated(properties)Exemple de code
let properties = HospitalityReservationCreatedProperties(
adultsCount: adultsCount
)
bird.tracker.hospitality.reservationCreated(properties)Exemple de code
const properties: HospitalityReservationCreatedProperties = {
adults_count: adults_count
};
Bird.tracker.hospitality.reservationCreated(properties, event_opts);HospitalityReservationCreatedProperties
| Property | Type |
|---|---|
| adults_count? | Number |
| booking_creation_time? | String |
| booking_source? | String |
| booking_status? | String |
| booking_total? | Number |
| check_in_date? | String |
| check_out_date? | String |
| children_count? | Number |
| confirmation_number? | String |
| currency_code? | String |
| guest_email? | String |
| guest_first_name? | String |
| guest_id? | String |
| guest_last_name? | String |
| guest_phone_number? | String |
| length_of_stay? | Number |
| payment_method? | String |
| payment_status? | String |
| property_id? | String |
| reservation_status? | String |
| room_number? | String |
| room_rate? | Number |
| room_type? | String |
| rooms_booked_count? | Number |
reservationUpdated()
Exemple de code
val properties = HospitalityReservationUpdatedProperties(
adultsCount = adultsCount
)
bird.tracker.hospitality.reservationUpdated(properties)Exemple de code
let properties = HospitalityReservationUpdatedProperties(
adultsCount: adultsCount
)
bird.tracker.hospitality.reservationUpdated(properties)Exemple de code
const properties: HospitalityReservationUpdatedProperties = {
adults_count: adults_count
};
Bird.tracker.hospitality.reservationUpdated(properties, event_opts);HospitalityReservationUpdatedProperties
| Property | Type |
|---|---|
| adults_count? | Number |
| booking_creation_time? | String |
| booking_source? | String |
| booking_status? | String |
| booking_total? | Number |
| check_in_date? | String |
| check_out_date? | String |
| children_count? | Number |
| confirmation_number? | String |
| currency_code? | String |
| guest_email? | String |
| guest_first_name? | String |
| guest_id? | String |
| guest_last_name? | String |
| guest_phone_number? | String |
| length_of_stay? | Number |
| payment_method? | String |
| payment_status? | String |
| property_id? | String |
| reservation_status? | String |
| room_number? | String |
| room_rate? | Number |
| room_type? | String |
| rooms_booked_count? | Number |
reservationCanceled()
Exemple de code
val properties = HospitalityReservationCanceledProperties(
adultsCount = adultsCount
)
bird.tracker.hospitality.reservationCanceled(properties)Exemple de code
let properties = HospitalityReservationCanceledProperties(
adultsCount: adultsCount
)
bird.tracker.hospitality.reservationCanceled(properties)Exemple de code
const properties: HospitalityReservationCanceledProperties = {
adults_count: adults_count
};
Bird.tracker.hospitality.reservationCanceled(properties, event_opts);HospitalityReservationCanceledProperties
| Property | Type |
|---|---|
| adults_count? | Number |
| booking_creation_time? | String |
| booking_source? | String |
| booking_status? | String |
| booking_total? | Number |
| check_in_date? | String |
| check_out_date? | String |
| children_count? | Number |
| confirmation_number? | String |
| currency_code? | String |
| guest_email? | String |
| guest_first_name? | String |
| guest_id? | String |
| guest_last_name? | String |
| guest_phone_number? | String |
| length_of_stay? | Number |
| payment_method? | String |
| payment_status? | String |
| property_id? | String |
| reservation_status? | String |
| room_number? | String |
| room_rate? | Number |
| room_type? | String |
| rooms_booked_count? | Number |