DataLayer

A Camada de Dados (dataLayer) é um objeto Javascript criado pela tag padrão do Google Tag Manager que coleta eventos e variáveis para enviar ao Google Analytics.

Esta documentação contém instruções para enviar eventos e variáveis adicionais a camada de dados que permitirão o monitoramento avançado. Cada evento possui a sua própria camada de dados.

A camada de dados está disponivel para utilizadores do Motor de Reserva nas versões v2, v3 e v4.

Eventos E-commerce

1. Homepage

  • Nome do evento: ecommerceHomepage

  • Acionador: o usuário acessou o Motor de Rede

  • Página do evento: book.omnibees/chain

  • Aplica-se a todos: Não - somente para hotéis de rede

var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommerceHomepage',
    'chainName': '{{CHAIN-NAME}}', 
    ‘hotelName’: {{HOTEL-NAME}},
    'chainId': '{{CHAIN-ID}}',
    ‘hotelId: ‘{{HOTEL-ID}}’,
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
     'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Home Page'
    },
    'ecommerce': {
      'currency': '{{CURRENCY-CODE}}',
      'items': [
        {
          'item_name': '{{HOTEL-NAME}}',
          'item_id': '{{HOTEL ID}}',
          'item_brand': '{{CHAIN-NAME}}',      
          'item_list_name': 'Hotel List',
          'index': 1
        }
      ],
    },
    //OLD SUPPORT
    'currencyCode': '{{CURRENCY-CODE}}',
    'impressions': [
      {
        'name': '{{HOTEL-NAME}}',
        'id': '{{HOTEL ID}}',
        'brand': '{{CHAIN-NAME}}',
        'list': 'Hotel List',
        'position': 1
      }
    ]
  });

2. Chain

  • Nome do evento: ecommerceChain

  • Acionador: quando o usuário faz uma busca de hotéis no Motor de Rede

  • Página do evento: book.omnibees/chainresults

  • Aplica-se a todos: Não - somente para hotéis de rede

<script>
 var dataLayer = window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({
  'event': 'ecommerceChain',
  'chainName': '{{CHAIN-NAME}}',
  'chainId': '{{CHAIN-ID}}',
  'versionBE': '{{OMNIBEES-VERSION}}',
  'isRemark': '{{ISREMARK}}', // TRUE OR FALSE,
  'lang': '{{LANG-BE}}',
  'eventDetails': {
    'category': 'Ecommerce',
    'action': 'Cadeia Hoteleira'
  },
  'ecommerce': {
    'currency':'{{CURRENCY-CODE}}',
    'items': [{
      'item_id': '{{HOTEL-ID}}',
      'item_name': '{{HOTEL-NAME}}',
      'item_list_name': "Hotel List",
      'price': {{PRICE-ROOM}},
      'item_brand': '{{CHAIN-NAME}}',
      'index': 0
      }]
    },
    //OLD SUPPORT
    'currencyCode': '{{CURRENCY-CODE}}',
    'impressions': [
    {
      'name': '{{HOTEL-NAME}}',
      'id': '{{HOTEL ID}}',
      'price': {{PRODUCT-PRICE}},
      'brand': '{{CHAIN-NAME}}',
      'list': 'Hotel List',
      'position': 1
    }
  ]     
});

</script>
  • Nome do evento: ecommerceSearch

  • Acionador: quando o usuário faz uma busca de quartos

  • Página do evento: book.omnibees/hotelresults

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommerceSearch',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}', 
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}',
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}',
    'ratingStars': '{{NUMBER-STAR}}', 
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}', 
    'versionBE': '{{OMNIBEES-VERSION}}', 
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'checkIn': '{{CHECK-IN}}',
    'checkOut': '{{CHECK-OUT}}',
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'coupon': '{{COUPON-CODE}}',
    'firstName': '{{FIRST-NAME}}',
    'lastName': '{{LAST-NAME}}',
    'userEmail': '{{USER-EMAIL}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Resultados de Pesquisa'
    },
    'ecommerce': {
      'currency': '{{CURRENCY-CODE}}',
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',          
          'item_category': '{{CATEGORY}}',
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-ROOM}},
          'discount': {{DISCOUNT-VALUE}},
          'quantity': 1,          
          'index': 0,
          'item_list_name': 'Search Results'
        }
      ],
      //OLD SUPPORT
      'currencyCode': '{{CURRENCY-CODE}}',
      'impressions': [
        {
          'name': '{{PRODUCT-NAME}}',
          'id': '{{PRODUCT-SKU}}',
          'price': {{PRODUCT-PRICE}},
          'category': '{{CATEGORY}}',
          'brand': '{{BRAND}}',
          'list': 'Search Results',
          'position': 0
        }
      ]
    }
  });


</script>

4. Add to cart

  • Nome do evento: add_to_cart

  • Acionador: quando o usuário adiciona uma tarifa ao carrinho

  • Página do evento: book.omnibees/hotelresults

  • Aplica-se a todos: Sim

<script>
  
var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'add_to_cart',
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'ecommerce': {
      'currency': '{{CURRENCY-CODE}}',
      'currencyCode': '{{CURRENCY-CODE}}',
      'value': {{FINAL-PRICE-ROOM}}, //(PRICE-ROOM) * (QUANTITY)
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',
          'item_category': '{{CATEGORY}}}', // ROOM, EXTRA, PACKAGE
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-ROOM}}, //DAILY PRICE
          'discount': {{ DISCOUNT-VALUE}},
          'quantity': 1, //NUMBER OF NIGHTS BOOKED
        }
      ]
    }
  }); 

</script>

5. Remove cart

  • Nome do evento: remove_from_cart

  • Acionador: quando o usuário remove uma tarifa do carrinho

  • Página do evento: book.omnibees/hotelresults

  • Aplica-se a todos: Sim

<script>
 
var dataLayer = window.dataLayer = window.dataLayer || [];
dataLayer.push({ ecommerce: null });
dataLayer.push({
  'event': 'remove_from_cart',
  'chainName': '{{CHAIN-NAME}}',
  'chainId': '{{CHAIN-ID}}',
  'hotelName': '{{HOTEL-NAME}}',
  'hotelId': '{{HOTEL-ID}}',
  'versionBE': '{{OMNIBEES-VERSION}}',
  'isRemark': '{{ISREMARK}}',  
  'lang': '{{LANG-BE}}',
  'ecommerce': {
    'currency': '{{CURRENCY-CODE}}',
    'currencyCode': '{{CURRENCY-CODE}}',
    'value': {{FINAL-PRICE-ROOM}}, //(PRICE-ROOM) * (QUANTITY)
    'items': [
      {
        'item_id': '{{ID-ROOM}}',
        'item_name': '{{NAME-ROOM}}',
        'item_variant': '{{RATE-ROOM}}',
        'item_brand': '{{HOTEL-NAME}}',
        'item_category': '{{CATEGORY}}}', // ROOM, EXTRA, PACKAGE
        'affiliation': "Omnibees",
        'coupon': "{{COUPON-CODE}}",
        'price': {{PRICE-ROOM}}, //DAILY PRICE
        'discount': {{ DISCOUNT-VALUE}},
        'quantity': 1, //NUMBER OF NIGHTS BOOKED
      }
    ]
  }       
});

</script>

6. Extras

  • Nome do evento: ecommerceExtras

  • Acionador: quando o usuário adiciona um serviço extra na tarifa

  • Página do evento: book.omnibees/extra

  • Aplica-se a todos: Não - somente para hotéis com serviço de extra

<script>
 var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommerceExtras',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}',
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}',
    'ratingStars': '{{NUMBER-STAR}}',
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}',
    'checkIn': '{{CHECK-IN}}', 
    'checkOut': '{{CHECK-OUT}}', 
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'coupon': '{{COUPON-CODE}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Extras'
    },
    'ecommerce': {
      'currencyCode': '{{CURRENCY-CODE}}',
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',
          'item_category': '{{CATEGORY}}}', // ROOM OR EXTRA
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-EXTRA}},
          'discount': {{ DISCOUNT-VALUE}},
          'quantity': 1,
          'index': 0
        },
      ],
      //OLD SUPPORT
      'extras': {
        'actionField': {
          'step': 'extras'
        },
        'products': [{ 
            'name': '{{PRODUCT-NAME}}', 
            'id': '{{PRODUCT-SKU}}', 
            'price': {{PRODUCT-PRICE}}, 
            'category': '{{CATEGORY}}',
            'brand': '{{BRAND}}',
            'quantity': {{PRODUCT-QUANTITY}},
            'dimension4': '{{RATE-NAME}}',
            'dimension5': '{{NUMBER-OF-GUESTS}}'
          }
        ]
      }
    }
  });


</script>

7. Package

  • Nome do evento: ecommercePackage

  • Acionador: quando o usuario acessa a página de pacote

  • Página do evento: /hotel/XXXX/package/XXXXXX or /chain/XXXX/package/XXXXXX

  • Aplica-se a todos: Não - somente hoteis que oferecem pacotes

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommercePackage',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}', 
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}',
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}', 
    'ratingStars': '{{NUMBER-STAR}}',
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}', 
    'checkIn': '{{CHECK-IN}}',
    'checkOut': '{{CHECK-OUT}}',
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'coupon': '{{COUPON-CODE}}',
    'firstName': '{{FIRST-NAME}}',
    'lastName': '{{LAST-NAME}}',
    'userEmail': '{{USER-EMAIL}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Pesquisa pelo Pacote'
    },
    'ecommerce': {
      'value': {{PRICE-TOTAL}},
      'currency': '{{CURRENCY-CODE}}',
      'items': [
        {
          'item_name': '{{PRODUCT-NAME}}',
          'item_id': '{{PRODUCT-SKU}}',
          'currency': "{{CURRENCY-CODE}}",
          'price': {{PRICE-PRODUCT}},
          'item_brand': '{{HOTEL-NAME}}',  
          'item_category': 'Package', 
          'item_list_name': 'Package {{HOTEL-NAME}}',
          'index': 1
        }
      ],
      //OLD SUPPORT
      'currencyCode': '{{CURRENCY-CODE}}',
      'impressions': [
        {
          'name': '{{PRODUCT-NAME}}',
          'id': '{{PRODUCT-SKU}}',
          'price': '{{PRODUCT-PRICE}}',
          'category': '{{CATEGORY}}',
          'brand': '{{BRAND}}',
          'list': 'Package',
          'position': 1
        }
      ]
    }
  });

</script>

8. Packages

  • Nome do evento: ecommercePackages

  • Acionador: quando o usuário acessa a página de pacotes

  • Página do evento: /hotel/XXXX/package/XXXXXX or /chain/XXXX/package/XXXXXX

  • Aplica-se a todos: Não - somente hoteis que oferem pacotes

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommercePackages',
    'chainName': '{{CHAIN-NAME}}', 
    'chainId': '{{CHAIN-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}', 
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Package List'
    },
    'ecommerce': {
      'currency': '{{CURRENCY-CODE}}',
      'items': [
        {
          'item_name': '{{PRODUCT-NAME}}',
          'item_id': '{{PRODUCT-SKU}}',
          'item_category': 'Package',
          'price': {{PACKAGE-PRICE}}, 
          'item_list_name': 'Packages Results',          
          'currency': '{{CURRENCY-CODE}}',
          'item_brand': '{{HOTEL-NAME}}',
          'index': 1,
        }
      ],      
      //OLD SUPPORT
      'currencyCode': '{{CURRENCY-CODE}}',
      'packages': {
        'actionField': {
          'step': 'Listagem de Pacotes'
        }
      },
      'impressions': [
        {
          'name': '{{PRODUCT-NAME}}',
          'id': '{{PRODUCT-SKU}}',
          'price': '{{PRODUCT-PRICE}}', 
          'list': 'Packages Results',
          'position': 1,
          'hotelName': '{{HOTEL-NAME}}',
          'hotelId': '{{HOTEL-ID}}',
        }
      ]
    }
  });

</script>

9. Checkout - begin_checkout

  • Nome do evento: ecommerceCheckout

  • Acionador: quando o usuário inicia a etapa de dados pessoais no checkout

  • Página do evento: book.omnibees.com/bookdetails

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommerceCheckout',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}', 
    'chainId': '{{CHAIN-ID}}', 
    'versionBE': '{{OMNIBEES-VERSION}}',
    'lang': '{{LANG-BE}}',
    ‘lang’: ‘{{LANG-BE}}’,
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}', 
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}', 
    'ratingStars': '{{NUMBER-STAR}}', 
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}', 
    'checkIn': '{{CHECK-IN}}',
    'checkOut': '{{CHECK-OUT}}',
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'coupon': '{{COUPON-CODE}}',
    'firstName': '{{FIRST-NAME}}',
    'lastName': '{{LAST-NAME}}',
    'userEmail': '{{USER-EMAIL}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Checkout',
      'label': 'Passo 1 - Dados Pessoais'
    },
    'ecommerce': {
      'currency': '{{CURRENCY-CODE}}',
      'value': {{FINAL-PRICE-ROOM}}, //(PRICE-ROOM) * (QUANTITY)
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',
          'item_category': '{{CATEGORY}}}', // ROOM OR EXTRA
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-ROOM}}, //DAILY PRICE
          'discount': {{ DISCOUNT-VALUE}},
          'quantity': 0, //NUMBER OF NIGHTS BOOKED
        }
      ],
      'currencyCode': '{{CURRENCY-CODE}}',
      'checkout': {
        'actionField': {
          'step': 1
        },
        'products': [{ 
            'name': '{{PRODUCT-NAME}}', 
            'id': '{{PRODUCT-SKU}}',
            'price': {{PRODUCT-PRICE}}, 
            'brand': '{{BRAND}}',
            'category': '{{CATEGORY}}',
            'quantity': '{{PRODUCT-QUANTITY}}',
            'dimension4': '{{RATE-NAME}}',
            'dimension5': '{{NUMBER-OF-GUESTS}}'
          }
        ]
      }
    }
  });
</script>

10. Checkout - loyalty

  • Nome do evento: loyalty

  • Acionador: quando usuario confirma o programa de fidelidade

  • Página do evento: book.omnibees.com/bookdetails

  • Aplica-se a todos: Não - somente para hoteis que tem o programa de fidelidade

<script>
   var dataLayer = window.dataLayer = window.dataLayer || [];
    dataLayer.push({ ecommerce: null });
    dataLayer.push({
    'event': 'loyalty',
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'lang': '{{LANG-BE}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    }
    });
</script>

11. Checkout - payment_info

  • Nome do evento: ecommerceCheckout

  • Acionador: quando o usuário inicia a etapa de dados de pagamento do checkout

  • Página do evento: book.omnibees.com/bookdetails

  • Aplica-se a todos: Sim

<script>
var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommerceCheckout',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}', 
    'chainId': '{{CHAIN-ID}}', 
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}', 
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}', 
    'ratingStars': '{{NUMBER-STAR}}', 
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}', 
    'checkIn': '{{CHECK-IN}}',
    'checkOut': '{{CHECK-OUT}}',
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'coupon': '{{COUPON-CODE}}',
    'firstName': '{{FIRST-NAME}}',
    'lastName': '{{LAST-NAME}}',
    'userEmail': '{{USER-EMAIL}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Checkout',
      'label': 'Passo 2 - Pagamento'
    },
    'ecommerce': {
      'value': {{FINAL-PRICE-TRANSACTION}},
      'coupon': '{{COUPON}}',
      'currency': '{{CURRENCY-CODE}}',
       'payment_type':’',
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',
          'item_category': '{{CATEGORY}}}', // ROOM OR EXTRA
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-ROOM}}, //DAILY PRICE
          'discount': {{ DISCOUNT-VALUE}},
          'quantity': 1, //NUMBER OF NIGHTS BOOKED
          'index': 0
        }
      ],
      //OLD SUPPORT
      'currencyCode': '{{CURRENCY-CODE}}',
      'checkout': {
        'actionField': {
          'step': 2
        },
        'products': [{ // 'products' é a lista de acomodações e extras adicionados nas páginas anteriores
            'name': '{{PRODUCT-NAME}}', // Mandatory field
            'id': '{{PRODUCT-SKU}}', // Mandatory field
            'price': '{{PRODUCT-PRICE}}', // Mandatory field
            'category': '{{CATEGORY}}',
            'brand': '{{BRAND}}',
            'quantity': '{{PRODUCT-QUANTITY}}',
            'dimension4': '{{RATE-NAME}}',
            'dimension5': '{{NUMBER-OF-GUESTS}}'
          }
        ]
      }
    }
  });

</script>

12. Checkout - add_payment_info

  • Nome do evento: ecommerceCheckout

  • Acionador: quando o usuário confirma os dados de pagamento

  • Página do evento: book.omnibees.com/bookdetails

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'event': 'ecommerceCheckout',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}', 
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}', 
    'ratingStars': '{{NUMBER-STAR}}',
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}', 
    'checkIn': '{{CHECK-IN}}',
    'checkOut': '{{CHECK-OUT}}',
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'coupon': '{{COUPON-CODE}}',
    'firstName': '{{FIRST-NAME}}',
    'lastName': '{{LAST-NAME}}',
    'userEmail': '{{USER-EMAIL}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Checkout',
      'label': 'Passo 3 - Clique - Confirmar Reserva'
    },
    'ecommerce': {
      'payment_type': '{{PAYMENT-METHOD}}',
      'currency': '{{CURRENCY-CODE}}',
      'value': '{{TRANSACTION-TOTAL}}',
      'coupon': "{{COUPON-CODE}}",
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',
          'item_category': '{{CATEGORY}}}', // ROOM OR EXTRA
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-ROOM}}, //DAILY PRICE
          'discount': {{ DISCOUNT-VALUE}},
          'quantity': 1, //NUMBER OF NIGHTS BOOKED
          'index': 0
        }
      ],
      //OLD SUPPORT
      'currencyCode': '{{CURRENCY-CODE}}',
      'checkout': {
        'actionField': {
          'step': 3,
          'option': '{{PAYMENT-METHOD}}'
        },
        'products': [{ // 'products' é a lista de acomodações e extras adicionados nas páginas anteriores
            'name': '{{PRODUCT-NAME}}', // Mandatory field
            'id': '{{PRODUCT-SKU}}', // Mandatory field
            'price': '{{PRODUCT-PRICE}}', // Mandatory field
            'category': '{{CATEGORY}}',
            'brand': '{{BRAND}}',
            'quantity': '{{PRODUCT-QUANTITY}}',
            'dimension4': '{{RATE-NAME}}',
            'dimension5': '{{NUMBER-OF-GUESTS}}'
          },
          {
            'name': '{{PRODUCT-NAME}}', // Mandatory field
            'id': '{{PRODUCT-SKU}}', // Mandatory field
            'price': '{{PRODUCT-PRICE}}', // Mandatory field
            'category': '{{CATEGORY}}',
            'brand': '{{BRAND}}',
            'quantity': '{{PRODUCT-QUANTITY}}',
            'dimension4': '{{RATE_NAME}}',
            'dimension5': '{{NUMBER-OF-GUESTS}}'
          }
        ]
      }
    }
  });



</script>

13. Purchase

  • Nome do evento: ecommercePurchase

  • Acionador: quando o usuário confirma a reserva

  • Página do evento: book.omnibees.com/confirmation

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({ ecommerce: null });
  dataLayer.push({
    'userEmail': '{{USER-EMAIL}}',
    'userId': '{{USER-ID}}',
    'event': 'ecommercePurchase',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'chainName': '{{CHAIN-NAME}}', 
    'chainId': '{{CHAIN-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    'hotelCategoryName': '{{HOTEL-CATEGORY-NAME}}', 
    'hotelCategoryId': '{{HOTEL-CATEGORY-ID}}',
    'ratingStars': '{{NUMBER-STAR}}', 
    'numberRooms': '{{TOTAL-ROOMS-OF-HOTEL}}',
    'checkIn': '{{CHECK-IN}}',
    'checkOut': '{{CHECK-OUT}}',
    'numberAdults': '{{NUMBER-OF-ADULTS}}',
    'numberChildren': '{{NUMBER-OF-CHILDREN}}',
    'firstName': '{{FIRST-NAME}}',
    'lastName': '{{LAST-NAME}}',
    'userDoc': '{{USER-DOC}}',
    'userTel': '{{USER-TEL}}',
    'userCountry': '{{USER-COUNTRY}}',
    'isLoggedIn': '{{USER_IS_LOGGED}}',
    'coupon': "{{COUPON-CODE}}",
    'loyalty': {
      'loyalty': {{LOYALTY}}, 
      'loyalty_category': {{LOYALTY_CATEGORY}}, 
      'loyalty_level': {{LOYALTY_LEVEL}},
      'loyalty_name': {{LOYALTY_DESCRIPTION}},
      'loyalty_discount_value': {{VALUE}},
      'loyalt_type': {{LOYALTY_TYPE}}
    },
    'eventDetails': {
      'category': 'Ecommerce',
      'action': 'Purchase'
    },
    'dimension1': '{{USER-ID}}',
    'ecommerce': {
      'payment_type': '{{PAYMENT-METHOD}}',
      'transaction_id': '{{RESERVATION-ID}}',
      'value': {{FINAL-PRICE-ROOM}},
      'tax': {{TAX}},
      'currencyCode': '{{CURRENCY-CODE}}',
      'currency':'{{CURRENCY-CODE}}',
      'items': [
        {
          'item_id': '{{ID-ROOM}}',
          'item_name': '{{NAME-ROOM}}',
          'item_variant': '{{RATE-ROOM}}',
          'item_brand': '{{HOTEL-NAME}}',
          'item_category': '{{CATEGORY}}}', // ROOM OR EXTRA
          'affiliation': "Omnibees",
          'coupon': "{{COUPON-CODE}}",
          'price': {{PRICE-ROOM}}, //DAILY PRICE
          'discount': {{DISCOUNT-VALUE}},
          'quantity': {{NUMBER-OF-NIGHTS}}, //NUMBER OF NIGHTS BOOKED
        }
      ],
      //OLD SUPPORT
      'purchase': {
        'actionField': {
          'id': '{{RESERVATION-ID}}',
          'revenue': {{TOTAL-REVENUE}},
          'tax': {{TAX}},
          'shipping': '0',
          'affiliation': '',
          'coupon': '{{COUPON-CODE}}'
        },
        'products': [{ 
            'name': '{{PRODUCT-NAME}}', 
            'id': '{{PRODUCT-SKU}}',
            'price': {{PRODUCT-PRICE}}, 
            'category': '{{CATEGORY}}',
            'brand': '{{BRAND}}',
            'quantity': {{PRODUCT-QUANTITY}},
            'dimension4': '{{RATE-NAME}}',
            'dimension5': '{{NUMBER-OF-GUESTS}}'
          }
        ]
      }
    }
  });

</script>

Eventos Extras

1. Login

  • Nome do evento: login

  • Acionador: quando o usuário faz o login no Motor de Reservas

  • Página do evento: Todas as páginas

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({
    'event': ‘login’,
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
    ‘method’: {{LOGIN-METHOD}}
   });
</script>

2. Sign up

  • Nome do evento: sign_up

  • Acionador: quando o usuário cria uma conta de usuário no Motor de Reservas

  • Página do evento: Todas as páginas

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({
    'event': ‘sign_up’,
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'lang': '{{LANG-BE}}',
     ‘method’: {{LOGIN-METHOD}}
   });
</script>

3. Error

  • Nome do evento: exception

  • Acionador: quando ocorre algum erro na etapa de checkout

  • Página do evento: /bookdetails

  • Aplica-se a todos: Sim

<script>
  var dataLayer = window.dataLayer = window.dataLayer || [];
  dataLayer.push({
    'event': ‘exception’,
    'chainName': '{{CHAIN-NAME}}',
    'chainId': '{{CHAIN-ID}}',
    'hotelName': '{{HOTEL-NAME}}',
    'hotelId': '{{HOTEL-ID}}',
    'versionBE': '{{OMNIBEES-VERSION}}',
    'isRemark': '{{ISREMARK}}',
    'eventDetails': {
       ‘id’: ‘{{ERROR-ID}}’,
      'category': 'Ecommerce',
      'description': '{{ERROR-DESCRIPTION}}',
      ‘fatal’: {{TRUE/FALSE}}
    }    
  });
</script>

Last updated

Was this helpful?