Overview
The confirmation page (Booking Step 3) is the most critical tracking point, capturing successful reservations and cancellations. This data is essential for conversion tracking, revenue reporting, and customer insights.Event: init (Confirmation)
Fires when a booking is successfully completed.Trigger Condition
- User completes a reservation and reaches the confirmation page
Data Layer Structure
The confirmation event includes all booking details plus customer information:- Reservation Info
- Booking Details
Complete Example
Event: mirai.cancellation
Triggered when a guest cancels their reservation.Trigger Condition
- Guest accesses booking management and cancels their reservation
Data Layer Parameters
Cancellation Reason Codes
Example Data Layer
Conversion Tracking Setup
Google Ads Conversion
Google Ads Conversion
GA4 E-commerce Purchase
GA4 E-commerce Purchase
Facebook Pixel
Facebook Pixel
Advanced Analytics
Booking Window Analysis
Calculate days between
reservationDate and checkin to understand booking patternsCancellation Rate
Track
mirai.cancellation events against confirmations for cancellation insightsRevenue Per Guest
Divide
totalPriceWithTaxesWithExtras by total occupancy (adults + children)Lead Time Tracking
Monitor how far in advance guests book for demand forecasting
Best Practices
1
Deduplication
Use
reservationCode as a unique transaction ID to prevent duplicate conversion tracking2
Enhanced Conversions
Utilize
emailSHA256 for Google Ads enhanced conversions while maintaining privacy3
Revenue Attribution
Track both
totalPriceWithTaxesWithExtras (for revenue) and totalPriceWithoutTaxesWithoutExtras (for net revenue)4
Cancellation Insights
Analyze
cancelReason codes to identify improvement opportunitiesImportant: The
totalPrice field is deprecated. Always use totalPriceWithTaxesWithExtras for accurate revenue tracking.