Skip to main content
Data layer events

search_results_loaded

Availability search results are rendered.

Status: Planned

Custom event for the availability Search + Booking flow.

Emitted by CMS availability search results on booking sites.

Emitted when results are rendered or an availability API response is accepted for the current search.

All events include a full search snapshot including the results summary (has_results/results_count). Unknown values are null.

Dates are YYYY-MM-DD; currency is ISO 4217; numeric values are numbers.

This is the primary availability search tracking event; it captures both the search inputs and whether results were found.

We emit it on initial availability search loads and on subsequent amenity updates (search intent tracking).

Use it together with cart/checkout events in GA4 to understand which searches led to bookings (session/user attribution).

Only fire when results match the current search (use a request id if multiple calls are in-flight).

Payload: event + search.

Sample data layer snippet

dataLayer.push({
  "event": "search_results_loaded",
  "search": {
    "start_date": "2026-02-20",
    "end_date": "2026-02-22",
    "nights": 2,
    "rentable_type": "house",
    "guest_group": {
      "seniors": 0,
      "adults": 2,
      "adolescents": 0,
      "children": 1,
      "babies": 0,
      "pets": 0,
      "total": 3
    },
    "price_range_min": 100,
    "price_range_max": 500,
    "sorting_id": "price_asc",
    "amenities": {
      "facility": [
        "pool"
      ]
    },
    "amenities_count": 2,
    "has_results": true,
    "results_count": 42,
    "special_period_id": 123,
    "special_period_name": "Summer Holiday"
  }
});

Top-level objects

ParameterSamplePresenceDescription
search{...} (see below)alwaysFull search snapshot including results summary. Source: Availability search snapshot (dates, guests, amenities, sorting, price range, results).

Full search snapshot including results summary. Source: Availability search snapshot (dates, guests, amenities, sorting, price range, results).

FieldSamplePresenceDescription
start_date2026-02-20if availableArrival date for the availability search (YYYY-MM-DD, null when missing). Source: Website availability search arrival date.
end_date2026-02-22if availableDeparture date for the availability search (YYYY-MM-DD, null when missing). Source: Website availability search departure date.
nights2if availableLength of stay in nights (null when dates are missing). Source: Derived from search dates or nights selector.
rentable_typehouseif availableAccommodation semantic segment (house, pitch, room, berth, apartment, other). Source: Search rentable type segment.
price_range_min100if availableMinimum total price. Source: Search price range minimum.
price_range_max500if availableMaximum total price. Source: Search price range maximum.
sorting_idprice_ascif availableSorting option id. Source: Search sorting choice.
amenities{...}if availableAmenity facet id mapped to arrays of value ids. Source: Search amenity selections.
amenities_count2if availableCount of active amenity selections (includes price range). Source: Number of active amenity selections plus price range.
has_resultstrueif availableTrue when results_count > 0. Source: Derived from availability search results.
results_count42if availableTotal result count (null when unknown). Source: Availability search total results.
special_period_id123if availableSpecial period id when the search dates match a defined special period (selected or inferred). Source: Special period id.
special_period_nameSummer Holidayif availableLocalized special period name when the search dates match a defined special period (selected or inferred). Source: Special period name.
guest_group{...} (see below)if availableGuest counts by group (see guest_group fields). Source: Guest group from search form.
search.guest_group

Guest counts by group (see guest_group fields). Source: Guest group from search form.

FieldSamplePresenceDescription
seniors0alwaysNumber of seniors. Source: Guest group seniors count.
adults2alwaysNumber of adults. Source: Guest group adults count.
adolescents0alwaysNumber of adolescents. Source: Guest group adolescents count.
children1alwaysNumber of children. Source: Guest group children count.
babies0alwaysNumber of babies. Source: Guest group babies count.
pets0alwaysNumber of pets. Source: Guest group pets count.
total3alwaysTotal guests (sum of guest group counts). Source: Guest group total.

Still need help? Share an idea