GTM

Session

dataLayer.push({
     'event': 'session',
     'unauthenticated_session_id': 'SESSION_ID'
});
  • SESSION_ID - cms session identifier hashed using the 'ripemd160' function.

Page

Page view

dataLayer.push({
    'event': 'pageview_aid'
});

Page details

dataLayer.push({
    'aid': 'AID',
    'locale': 'LOCALE',
    'device': 'DEVICE',
    'page_id': 'PAGE_ID',
    'page_type': 'PAGE_TYPE'
});
  • AID - cms aid number.
  • LOCALE - page locale: en-gb. en-us, de, nl, fr, es, it, pl, pt.
  • DEVICE - desktop, phone, tablet, robot, other.
  • PAGE_ID - cms page id.
  • PAGE_TYPE - page type: Homepage, Pricing, Savings calculator, Marketplace, PPC pages, Solutions/product, Resource hub, FAQ, Starter kit, About us.

Menu

dataLayer.push({
     'event': 'menu_click',
     'label': 'LABEL',
     'menu_type': 'TYPE'
});
  • LABEL - menu item name.
  • TYPE - menu type: language_selector, top_menu, footer, terms.

AB test

Menu

dataLayer.push({
     'menu_var': 'VARIANT',
     'menu_exp_name': 'EXPERIMENT_NAME',
});
  • VARIANT - AB variant menu. 0 - main variant, 1 - ab variant.
  • EXPERIMENT_NAME - AB experiment name. Setup in menu.
Menu

Block

dataLayer.push({
    'block_var': 'VARIANT',
    'block_exp_name': 'EXPERIMENT_NAME'
});
  • VARIANT - AB variant block. 0 - main variant, 1 - ab variant.
  • EXPERIMENT_NAME - AB experiment name. Setup when edit ab block of page.
Block

Page

dataLayer.push({
    'page_var': 'VARIANT',
    'page_exp_name': 'EXPERIMENT_NAME'
});
  • VARIANT - AB variant page. 0 - main variant, 1 - ab variant.
  • EXPERIMENT_NAME - AB experiment name. Setup when edit ab page.
Page

Resource hub

Label

dataLayer.push({
     'event': 'resource_label_click',
     'label': 'LABEL'
});
  • LABEL - category, role or resourse type name.
Label

Filter

dataLayer.push({
     'event': 'resource_filter_used',
     'label': 'LABEL',
     'filter_type': 'FILTER_TYPE,
});
  • LABEL - category, role or resourse type name.
  • FILTER_TYPE - resource_filter_category, resource_filter_type, resource_filter_role.
Filter

Search

dataLayer.push({
     'event': 'resource_search',
     'search_type': 'SEARCH_TYPE'
});
  • SEARCH_TYPE - resource_hub_search, blog_search, insights_search, guides_search.

Event is sent when more than 3 characters are entered.

Search

Calculator

Success send report

dataLayer.push({
     'event': 'calculator_success'
});

Failed send report

dataLayer.push({
     'event': 'calculator_failed'
});

GTM

Tabs

dataLayer.push({
     'event': 'tabs_clicked',
     'label': 'LABEL',
     'in_page_location': 'IN_PAGE_LOCATION'
});
  • LABEL - tab item name.
  • IN_PAGE_LOCATION - page block key.

Button

Sign up button

dataLayer.push({
     'event': 'button_signup_marketing',
     'type': 'cta',
     'valueStream': 'onboarding',
     'interaction': 'click',
     'label': 'LABEL',
     'value': 'LABEL',
     'elevation': 'page',
     'inPageLocation': 'IN_PAGE_LOCATION',
     'in_page_location': 'IN_PAGE_LOCATION',
     'enabled': 'true',
     'v':3,
});
  • LABEL - button name.
  • IN_PAGE_LOCATION - button attribure id.

Login button

dataLayer.push({
     'event': 'button_login_marketing',
     'type': 'cta',
     'valueStream': 'onboarding',
     'interaction': 'click',
     'label': 'LABEL',
     'value': 'LABEL',
     'elevation': 'page',
     'inPageLocation': 'IN_PAGE_LOCATION',
     'in_page_location': 'IN_PAGE_LOCATION',
     'enabled': 'true',
     'v':3,
});
  • LABEL - button name.
  • IN_PAGE_LOCATION - button attribure id.

Other button

dataLayer.push({
     'event': 'button',
     'type': 'cta',
     'valueStream': 'onboarding',
     'interaction': 'click',
     'label': 'LABEL',
     'value': 'LABEL',
     'elevation': 'page',
     'inPageLocation': 'IN_PAGE_LOCATION',
     'in_page_location': 'IN_PAGE_LOCATION',
     'enabled': 'true',
     'v':3,
});
  • LABEL - button name.
  • IN_PAGE_LOCATION - button attribure id.

Telemetry

Page view

Envirement test:

TELEMETRY_EVENT_ENDPOINT=https://telemetry.testing.serko.travel/data/api/v1/telemetry/data

Envirement live:

TELEMETRY_EVENT_ENDPOINT=https://telemetry.serko.travel/data/api/v1/telemetry/data
{
    "event_data": {
        "v": 1,
        "event": "page_view"
    },
    "metadata": {
        "session": {
            "authenticated_session_id": null,
            "unauthenticated_session_id": "e8d2a5b859ccb638551ae868837a094508b0e287",
            "sev": null
        },
        "timestamp": 1747292962,
        "referrer": "https://business.booking.com/",
        "hostname": "business.booking.com",
        "pathname": "business-travel-management-solutions",
        "href": "https://business.booking.com/business-travel-management-solutions?bbcmsab=v1.765cdfac-2731-4ad4-b921-f0037dbc61fa",
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
        "viewport": "1920x295",
        "screenResolution": "1920x1080",
        "pageTitle": "Free business travel management solutions | Booking.com for Business",
        "deviceType": "Desktop"
    }
}

Sign up button

{
    "event_data": {
        "v": 1,
        "interaction": "click",
        "label": "sign_up_button",
        "value": "Get started for free",
        "elevation": "page",
        "in_page_location": "sign_up_banner_v6",
        "enabled": "true",
        "event": "button_signup_marketing"
    },
    "metadata": {
        "session": {
            "authenticated_session_id": null,
            "unauthenticated_session_id": "e8d2a5b859ccb638551ae868837a094508b0e287",
            "sev": null
        },
        "timestamp": 1747293186,
        "referrer": "https://business.booking.com/",
        "hostname": "business.booking.com",
        "pathname": "business-travel-management-solutions",
        "href": "https://business.booking.com/business-travel-management-solutions?bbcmsab=v1.765cdfac-2731-4ad4-b921-f0037dbc61fa",
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
        "viewport": "1920x534",
        "screenResolution": "1920x1080",
        "pageTitle": "Free business travel management solutions | Booking.com for Business",
        "deviceType": "Desktop"
    }
}

Login button

{
    "event_data": {
        "v": 1,
        "interaction": "click",
        "label": "login_button",
        "value": "Sign in",
        "elevation": "page",
        "in_page_location": "sign_in_top_nav",
        "enabled": "true",
        "event": "button_login_marketing"
    },
    "metadata": {
        "session": {
            "authenticated_session_id": null,
            "unauthenticated_session_id": "e8d2a5b859ccb638551ae868837a094508b0e287",
            "sev": null
        },
        "timestamp": 1747293307,
        "referrer": "https://business.booking.com/business-travel-management-solutions/?bbcmsab=v1.765cdfac-2731-4ad4-b921-f0037dbc61fa",
        "hostname": "business.booking.com",
        "pathname": "pricing",
        "href": "https://business.booking.com/pricing?bbcmsab=v1.b3aace21-7c9e-4e00-b2f0-74219caa63e2",
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
        "viewport": "1920x719",
        "screenResolution": "1920x1080",
        "pageTitle": "The 100% free business travel platform  | Booking.com for Business",
        "deviceType": "Desktop"
    }
}

Other button

{
    "event_data": {
        "v": 1,
        "interaction": "click",
        "label": "bui-button",
        "value": "Next",
        "elevation": "page",
        "in_page_location": "button_calculator_v2",
        "enabled": "true",
        "event": "button"
    },
    "metadata": {
        "session": {
            "authenticated_session_id": null,
            "unauthenticated_session_id": "e8d2a5b859ccb638551ae868837a094508b0e287",
            "sev": null
        },
        "timestamp": 1747293307,
        "referrer": "https://business.booking.com/business-travel-management-solutions/?bbcmsab=v1.765cdfac-2731-4ad4-b921-f0037dbc61fa",
        "hostname": "business.booking.com",
        "pathname": "pricing",
        "href": "https://business.booking.com/pricing?bbcmsab=v1.b3aace21-7c9e-4e00-b2f0-74219caa63e2",
        "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36",
        "viewport": "1920x719",
        "screenResolution": "1920x1080",
        "pageTitle": "The 100% free business travel platform  | Booking.com for Business",
        "deviceType": "Desktop"
    }
}