Baza Booking Calendar v2 – Google Analytics 4 Event Triggers Documentation
A complete reference of all trackable JavaScript events in Baza Booking Calendar v2 for Google Analytics 4 integration.
Note: All events are fired on $(document) with the bbc prefix. Use $(document).on('bbcEventName', callback) to listen.
Initialization
| $(document).on() | GA4 Event | Parameters |
bbcInitialized | bbc_initialized | – |
Calendar
| $(document).on() | GA4 Event | Parameters |
bbcCalendarPrinted | bbc_calendar_loaded | service |
bbcCalendarNavigated | bbc_calendar_navigated | direction: next/prev |
bbcServiceChanged | bbc_service_changed | service |
bbcFirstClickInDay | bbc_slot_selected | date, day |
bbcRangeSelected | bbc_range_selected | day, date |
bbcSelectedSlotsCleared | bbc_slots_cleared | – |
bbcCalendarRefreshClicked | bbc_calendar_refreshed | – |
bbcSwipeDetected | bbc_calendar_swiped | direction |
bbcPendingSlotClicked | bbc_slot_clicked_pending | – |
bbcBookedSlotClicked | bbc_slot_clicked_booked | – |
bbcAjaxPrintCalendarSuccess | – | fires after every calendar AJAX load |
bbcHandleClick | – | fires after every slot click |
bbcDayReset | – | day, date |
| $(document).on() | GA4 Event | Parameters |
bbcFormSubmitted | bbc_form_submitted | – |
bbcFormValidated | bbc_form_validated | isValid |
bbcFormSubmitSuccess | bbc_booking_completed | outAction: buy/get_url |
bbcFormSubmitFailed | bbc_booking_failed | reason |
bbcUnenableSlotsChecked | bbc_slots_conflict | found_slots |
bbcRulesCheckboxChanged | – | checked |
bbcInvoiceCheckboxChanged | – | checked |
Coupon
| $(document).on() | GA4 Event | Parameters |
bbcCouponApplied | bbc_coupon_applied | couponCode, coupon_type, coupon_value |
bbcCouponCheckFailed | bbc_coupon_failed | reason |
bbcCouponReset | bbc_coupon_removed | – |
Additional Services
| $(document).on() | GA4 Event | Parameters |
bbcAdditionalQtyIncreased | bbc_service_added | id, name, value, totalPrice |
bbcAdditionalQtyDecreased | bbc_service_removed | id, name, value, totalPrice |
bbcAdditionalCategoryChanged | bbc_category_switched | categoryId |
bbcPopupOpened | bbc_popup_opened | – |
bbcPopupClosed | bbc_popup_closed | – |
bbcAdditionalServicesLoaded | – | service |
Pricing
| $(document).on() | GA4 Event | Parameters |
bbcTotalCalculated | bbc_price_calculated | totalPrice, totalDiscount, taxAmount |
bbcDiscountCalculated | bbc_discount_applied | discount, couponData.coupon_type |
bbcUpdateBookingDetails | – | fires after every price update |
bbcBookingDetailsUpdated | – | full result object |
Loyalty
| $(document).on() | GA4 Event | Parameters |
bbcLoyaltyFound | bbc_loyalty_found | loyaltyData, userData |
bbcLoyaltyDiscountApplied | bbc_loyalty_applied | discountPercent |
bbcLoyaltyReset | bbc_loyalty_removed | – |
Cart
| $(document).on() | GA4 Event | Parameters |
bbcDiscountApplied | – | fires when discount applied to cart |
bbcLoyaltyApplied | – | fires when loyalty applied to cart |
Implementation Example
$(document).on('bbcFormSubmitSuccess', (e, data) => {
if (typeof gtag !== 'function') return;
gtag('event', 'bbc_booking_completed', {
event_category: 'BBC',
outAction: data.outAction
});
});
$(document).on('bbcCouponApplied', (e, data) => {
if (typeof gtag !== 'function') return;
gtag('event', 'bbc_coupon_applied', {
event_category: 'BBC',
coupon_code: data.couponCode,
coupon_type: data.couponData?.coupon_type,
coupon_value: data.couponData?.coupon_value
});
});
$(document).on('bbcTotalCalculated', (e, data) => {
if (typeof gtag !== 'function') return;
gtag('event', 'bbc_price_calculated', {
event_category: 'BBC',
total_price: data.totalPrice,
discount: data.totalDiscount,
tax: data.taxAmount
});
});