Skip to main content

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:
Privacy Note: The confirmation event includes personal information. Ensure your GTM implementation complies with GDPR and other privacy regulations.

Complete Example

Event: mirai.cancellation

Triggered when a guest cancels their reservation.
The event name mirai.cancellation is part of the technical implementation and must be used exactly as shown in your GTM triggers.

Trigger Condition

  • Guest accesses booking management and cancels their reservation

Data Layer Parameters

Cancellation Reason Codes

Example Data Layer

Conversion Tracking Setup

Advanced Analytics

Booking Window Analysis

Calculate days between reservationDate and checkin to understand booking patterns

Cancellation Rate

Track mirai.cancellation events against confirmations for cancellation insights

Revenue 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 tracking
2

Enhanced Conversions

Utilize emailSHA256 for Google Ads enhanced conversions while maintaining privacy
3

Revenue Attribution

Track both totalPriceWithTaxesWithExtras (for revenue) and totalPriceWithoutTaxesWithoutExtras (for net revenue)
4

Cancellation Insights

Analyze cancelReason codes to identify improvement opportunities
Important: The totalPrice field is deprecated. Always use totalPriceWithTaxesWithExtras for accurate revenue tracking.