Google Data Layers variables

In this article, we will explain the "Google Data Layers" optional variables which exist in some pages in the website for Google experts to use:


/* Search Result: */
dataLayer = [{
    crtid: ' ',
    from: ' ',
    to: ' ',
    triptype: 'RT/OW',
    adults: ' ',
    kids: ' ',
    infants: ' ',
    result: true/false,
    // Arrays
    outbound: [
        class: ' ',
        price: ' ',
        from: ' ',
        to: ' '
    ],
    inbound: [
        class: ' ',
        price: ' ',
        from: ' ',
        to: ' '
    ]
}];

/* Itinerary */
dataLayer = [{
    crtid: ' ',
    from: ' ',
    to: ' ',
    totalprice: ' ',
    ancillaries: true/false,
    triptype: 'RT/OW',
    adults: ' ',
    kids: ' ',
    infants: ' ',
    // Array
    selected_flights: [
        flight_num: ' ',
        from: ' ';
        to: ' ',
        price: ' '
    ]
}];

/* Confirmation */
dataLayer = [{
    // Array
     selected_flights: [
        flight_num: ' ',
        flight_date: ' ',
        from: ' ';
        to: ' ',
        price: ' '
    ],
    crtid: ' ',
    pnrref: ' ',
    customer_email: ' ',
    totalprice: ' ',
}];
Have more questions? Submit a request

Comments

Powered by Zendesk