Skip to main content

Overview

The room selection page (Booking Step 1) triggers multiple events to track user search behavior and availability results. These events provide insights into search patterns, conversion rates, and inventory performance.

Event: init

The init event fires when a user first accesses the room selection page.

Trigger Condition

  • First page load of the room selection/results page

Data Layer Parameters

Example Data Layer

Event: mirai.availability

This event fires when rooms are available for the searched dates.
The event name mirai.availability is part of the technical implementation and must be used exactly as shown in your GTM triggers.

Trigger Condition

  • Search query returns available rooms

Data Layer Structure

The event pushes data to mirai.data object with comprehensive booking information:

Rate Object Structure

Both lowestRate and highestRate contain:

Complete Example

Event: mirai.noAvailability

Triggered when no rooms are available for the searched criteria.
The event name mirai.noAvailability is part of the technical implementation and must be used exactly as shown in your GTM triggers.

Trigger Condition

  • Search query returns no available rooms

Data Layer Parameters

Similar to the availability event but without rate information:

GTM Implementation Tips

Create Data Layer Variables in GTM:
  • Variable Name: dlv.hotelName
  • Data Layer Variable Name: mirai.data.hotelName
Use the rate information to populate enhanced e-commerce data:
  • Product Category: Room Type
  • Product Name: Room + Rate combination
  • Price: unitaryPriceWithOutTaxes

Common Use Cases

Search Abandonment Tracking

Track users who search but don’t see availability

Price Point Analysis

Analyze the price range between lowest and highest rates

Demand Forecasting

Monitor search patterns for specific date ranges

Conversion Funnel

Measure progression from search to booking