Skip to main content

DataLayer

Eventos E-commerce

info

A documentação abaixo vale para a configuração de otabuilder_v2, que precisa ser configurada no cadastro de páginas, dentro do Niara.

1. Pesquisa por destino/rede

  • Nome do evento: ecommerceChain
  • Acionadores:
    • Quando usuário faz uma pesquisa por destino (cidade, bairro, Todos os hotéis)
    • Obs: não é disparado quando usuário faz pesquisa por hotel específico
{
"event": "ecommerceChain",
"eventDetails": {
"category": "Ecommerce",
"action": "Cadeia Hoteleira"
},
"versionBE": "otabuilder_v2",
"chainName": "DEMO",
"chainId": 1234,
"isRemark": null,
"lang": "pt-BR",
"check_in": "20250911",
"check_out": "20250913",
"checkIn": "20250911",
"checkOut": "20250913",
"coupon": "TESTEPROMO",
"numberAdults": 1,
"numberChildren": 0,
"ecommerce": {
"currency": "BRL",
"items": [
{
"item_id": "10027",
"item_name": "DEMO - BEE2BEE",
"item_brand": "DEMO HOTEIS BRASIL",
"item_category": "Hotel",
"coupon": "TESTEPROMO",
"price": 180,
"quantity": 1,
"index": 0,
"item_list_name": "Hotel List",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 544006,
"location": "Sao Paulo",
"niaraHotelId": "HOTEL_OMNI_10027"
},
{
"item_id": "12866",
"item_name": "DEMO Resort Praia Branca - Maragogi",
"item_brand": "Resort Praia Branca Hotel Exemplo Demo",
"item_category": "Hotel",
"coupon": "TESTEPROMO",
"price": 210,
"quantity": 1,
"index": 1,
"item_list_name": "Hotel List",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 272291,
"location": "Agua Branca",
"niaraHotelId": "HOTEL_OMNI_12866"
},
{
"item_id": "13649",
"item_name": "DEMO Praia Branca - São Paulo",
"item_brand": "Resort Praia Branca Hotel Exemplo Demo",
"item_category": "Hotel",
"coupon": "TESTEPROMO",
"price": 735,
"quantity": 1,
"index": 2,
"item_list_name": "Hotel List",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 402262,
"location": "Sao Paulo",
"niaraHotelId": "HOTEL_OMNI_13649"
}
],
"currencyCode": "BRL",
"impressions": [
{
"name": "DEMO - BEE2BEE",
"id": "10027",
"price": 180,
"category": "Hotel",
"brand": "DEMO HOTEIS BRASIL",
"list": "Hotel List",
"position": 0,
"niaraHotelId": "HOTEL_OMNI_10027"
},
{
"name": "DEMO Resort Praia Branca - Maragogi",
"id": "12866",
"price": 210,
"category": "Hotel",
"brand": "Resort Praia Branca Hotel Exemplo Demo",
"list": "Hotel List",
"position": 1,
"niaraHotelId": "HOTEL_OMNI_12866"
},
{
"name": "DEMO Praia Branca - São Paulo",
"id": "13649",
"price": 735,
"category": "Hotel",
"brand": "Resort Praia Branca Hotel Exemplo Demo",
"list": "Hotel List",
"position": 2,
"niaraHotelId": "HOTEL_OMNI_13649"
}
]
},
"niaraChainId": null,
"clientName": "Motor Niara",
"clientProject": "MVSMmtzZzcUBKhdDyvClk",
"location": "São Paulo (Cidade)",
"daysAdvance": 36
}

2. Hotel Details

  • Nome do evento: ecommerceSearch
  • Acionadores:
    • Quando usuário clica em um hotel a partir da tela de resultado de pesquisa
    • Quando usuário faz pesquisa de um hotel específico
{
"event": "ecommerceSearch",
"eventDetails": {
"category": "Ecommerce",
"action": "Resultados de Pesquisa"
},
"versionBE": "otabuilder_v2",
"chainName": "DEMO HOTEIS BRASIL",
"chainId": "995",
"isRemark": null,
"lang": "pt-BR",
"check_in": "20250911",
"check_out": "20250913",
"checkIn": "20250911",
"checkOut": "20250913",
"coupon": "TESTEPROMO",
"numberAdults": 1,
"numberChildren": 0,
"hotelName": "DEMO - BEE2BEE",
"hotelId": "10027",
"hotelCategoryId": "",
"hotelCategoryName": "",
"ratingStars": 5,
"numberRooms": 1,
"ecommerce": {
"currency": "BRL",
"items": [
{
"item_id": 89772,
"item_name": "Superior",
"item_variant": "Teste de desconto por forma de recebimento",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 180,
"quantity": 1,
"index": 0,
"item_list_name": "Search Results",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 544006,
"location": "Sao Paulo"
},
{
"item_id": 62718,
"item_name": "Master",
"item_variant": "Teste de desconto por forma de recebimento",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 180,
"quantity": 1,
"index": 1,
"item_list_name": "Search Results",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 544006,
"location": "Sao Paulo"
},
{
"item_id": 83780,
"item_name": "Luxo",
"item_variant": "Teste de desconto por forma de recebimento",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 180,
"quantity": 1,
"index": 2,
"item_list_name": "Search Results",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 544006,
"location": "Sao Paulo"
},
{
"item_id": 126729,
"item_name": "Apartamento Duplex 3 Dormitórios (Long Stay)",
"item_variant": "Apartamento Duplex 3 Dormitórios (Long Stay)",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 2027.1,
"quantity": 1,
"index": 3,
"item_list_name": "Search Results",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 496486,
"location": "Sao Paulo"
},
{
"item_id": 83780,
"item_name": "Luxo",
"item_variant": "PESO ARGENTINO",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 8000,
"quantity": 1,
"index": 4,
"item_list_name": "Search Results",
"currency": "ARS",
"item_availability": "Available for Sale",
"item_rate_id": 544491,
"location": "Sao Paulo"
},
{
"item_id": 89772,
"item_name": "Superior",
"item_variant": "PACOTE SUCESSO",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 11234,
"quantity": 1,
"index": 5,
"item_list_name": "Search Results",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 538968,
"location": "Sao Paulo"
},
{
"item_id": 62718,
"item_name": "Master",
"item_variant": "PESO ARGENTINO",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 16000,
"quantity": 1,
"index": 6,
"item_list_name": "Search Results",
"currency": "ARS",
"item_availability": "Available for Sale",
"item_rate_id": 544491,
"location": "Sao Paulo"
},
{
"item_id": 62718,
"item_name": "Master",
"item_variant": "PACOTE SUCESSO",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 41234,
"quantity": 1,
"index": 7,
"item_list_name": "Search Results",
"currency": "BRL",
"item_availability": "Available for Sale",
"item_rate_id": 538968,
"location": "Sao Paulo"
}
],
"currencyCode": "BRL",
"impressions": [
{
"name": "Superior",
"id": 89772,
"price": 180,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 0
},
{
"name": "Master",
"id": 62718,
"price": 180,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 1
},
{
"name": "Luxo",
"id": 83780,
"price": 180,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 2
},
{
"name": "Apartamento Duplex 3 Dormitórios (Long Stay)",
"id": 126729,
"price": 2027.1,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 3
},
{
"name": "Luxo",
"id": 83780,
"price": 8000,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 4
},
{
"name": "Superior",
"id": 89772,
"price": 11234,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 5
},
{
"name": "Master",
"id": 62718,
"price": 16000,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 6
},
{
"name": "Master",
"id": 62718,
"price": 41234,
"category": "Accommodation",
"brand": "DEMO HOTEIS BRASIL",
"list": "Search Results",
"position": 7
}
]
},
"niaraHotelId": "HOTEL_OMNI_10027",
"niaraChainId": "CHAIN_OMNI_995",
"clientName": "Motor Niara",
"clientProject": "MVSMmtzZzcUBKhdDyvClk",
"location": "Sao Paulo",
"daysAdvance": 36
}

3. Add to cart

{
"event": "ecommerceAddToCart",
"hotelId": "10027",
"hotelName": "DEMO - BEE2BEE",
"chainId": "995",
"chainName": "DEMO HOTEIS BRASIL",
"isRemark": null,
"lang": "pt-BR",
"ecommerce": {
"currency": "BRL",
"currencyCode": "BRL",
"value": 180,
"items": [
{
"item_id": 89772,
"item_name": "Superior",
"item_variant": "Teste de desconto por forma de recebimento",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"price": 90,
"quantity": 2,
"item_list_id": "CHAIN_OMNI_995",
"item_list_name": "DEMO HOTEIS BRASIL",
"item_category2": 5,
"item_category3": "",
"currency": "BRL",
"check_in": "20250911",
"check_out": "20250913"
}
]
},
"niaraHotelId": "HOTEL_OMNI_10027",
"niaraChainId": "HOTEL_OMNI_10027",
"location": "Sao Paulo"
}

4. Início do checkout (dados pessoais)

{
"event": "ecommerceCheckout",
"eventDetails": {
"category": "Ecommerce",
"action": "Checkout",
"label": "Passo 1 - Dados Pessoais"
},
"versionBE": "otabuilder_v2",
"chainName": "DEMO HOTEIS BRASIL",
"chainId": "995",
"hotelName": "DEMO - BEE2BEE",
"hotelId": "10027",
"checkIn": "20250911",
"checkOut": "20250913",
"coupon": "TESTEPROMO",
"hotelCategoryName": null,
"hotelCategoryId": null,
"ratingStars": 5,
"numberRooms": 1,
"numberAdults": 1,
"numberChildren": 0,
"isLoggedIn": null,
"lang": "pt-BR",
"isRemark": null,
"ecommerce": {
"currency": "BRL",
"value": 180,
"items": [
{
"affiliation": "Omnibees",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"item_id": 89772,
"item_name": "Superior",
"item_variant": "Teste de desconto por forma de recebimento",
"coupon": "TESTEPROMO",
"price": 90,
"quantity": 2,
"index": 0,
"item_list_id": "995",
"item_list_name": "DEMO HOTEIS BRASIL",
"check_in": "20250911",
"check_out": "20250913",
"item_category2": 5,
"item_category3": "hotel",
"location": "Sao Paulo"
}
],
"currencyCode": "BRL",
"checkout": {
"actionField": {
"step": 1
},
"products": [
{
"name": "Superior",
"id": 89772,
"price": 90,
"brand": "DEMO HOTEIS BRASIL",
"category": "Accommodation",
"quantity": 2,
"dimension4": "Teste de desconto por forma de recebimento",
"dimension5": 1
}
],
"guestData": {
"name": ""
}
}
},
"clientName": "Motor Niara",
"clientProject": "MVSMmtzZzcUBKhdDyvClk",
"location": "Sao Paulo",
"niaraChainId": "CHAIN_OMNI_995",
"niaraHotelId": "HOTEL_OMNI_10027",
"check_in": "20250911",
"check_out": "20250913",
"daysAdvance": 36
}

5. Dados de pagamento

{
"event": "ecommerceCheckout",
"versionBE": "otabuilder_v2",
"eventDetails": {
"category": "Ecommerce",
"action": "Checkout",
"label": "Passo 2 - Pagamento"
},
"hotelName": "DEMO - BEE2BEE",
"hotelId": "10027",
"chainName": "DEMO HOTEIS BRASIL",
"chainId": "995",
"hotelCategoryName": null,
"hotelCategoryId": null,
"ratingStars": 5,
"numberRooms": 1,
"checkIn": "20250911",
"checkOut": "20250913",
"numberAdults": 1,
"numberChildren": 0,
"lang": "pt-BR",
"coupon": "",
"isRemark": null,
"isLoggedIn": null,
"firstName": "",
"lastName": "",
"userEmail": "",
"ecommerce": {
"currency": "BRL",
"value": 180,
"payment_type": "",
"items": [
{
"affiliation": "Omnibees",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"item_id": 89772,
"item_name": "Superior",
"item_variant": "Teste de desconto por forma de recebimento",
"coupon": "",
"price": 90,
"quantity": 2,
"index": 0,
"item_list_id": "995",
"niaraChainId": "CHAIN_OMNI_995",
"item_list_name": "DEMO HOTEIS BRASIL",
"check_in": "20250911",
"check_out": "20250913",
"checkIn": "20250911",
"checkOut": "20250913",
"item_category2": 5,
"item_category3": "",
"location": "São Paulo"
}
],
"currencyCode": "BRL",
"checkout": {
"actionField": {
"step": 2
},
"products": [
{
"name": "Superior",
"id": 89772,
"price": 90,
"brand": "DEMO HOTEIS BRASIL",
"category": "Accommodation",
"quantity": 2,
"dimension4": "Teste de desconto por forma de recebimento",
"dimension5": 1
}
],
"guestData": {
"email": "",
"name": "",
"phone": ""
}
}
},
"clientName": "Motor Niara",
"clientProject": "MVSMmtzZzcUBKhdDyvClk",
"location": "São Paulo",
"niaraChainId": "995",
"niaraHotelId": "10027",
"check_in": "20250911",
"check_out": "20250913",
"daysAdvance": 36
}

6. Reservar

Ocorre quando o cliente clica em confirmar reserva, iniciando o processamento do pagamento e da reserva. Para reservas com cartão, esse evento ocorre após o cliente preencher os dados do cartão. No caso de PIX, este evento ocorre antes da exibição do código QR Code.

{
"event": "ecommerceCheckout",
"versionBE": "otabuilder_v2",
"eventDetails": {
"category": "Ecommerce",
"action": "Checkout",
"label": "Passo 3 - Clique - Confirmar Reserva"
},
"hotelName": "DEMO - BEE2BEE",
"hotelId": "10027",
"chainId": "995",
"chainName": "DEMO HOTEIS BRASIL",
"hotelCategoryName": null,
"hotelCategoryId": null,
"ratingStars": 5,
"numberRooms": 1,
"checkIn": "20250911",
"checkOut": "20250913",
"numberAdults": 1,
"numberChildren": 0,
"lang": "pt-BR",
"coupon": "TESTEPROMO",
"isRemark": null,
"isLoggedIn": null,
"firstName": "Teste",
"lastName": "Hirata",
"userEmail": "thiago.hirata@niara.tech",
"ecommerce": {
"payment_type": "Direto no hotel",
"currency": "BRL",
"value": 180,
"coupon": "TESTEPROMO",
"items": [
{
"affiliation": "Omnibees",
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"item_id": 89772,
"item_name": "Superior",
"item_variant": "Teste de desconto por forma de recebimento",
"coupon": "TESTEPROMO",
"price": 90,
"quantity": 2,
"index": 0,
"item_list_id": "995",
"niaraChainId": "CHAIN_OMNI_995",
"item_list_name": "DEMO HOTEIS BRASIL",
"check_in": "20250911",
"check_out": "20250913",
"checkIn": "20250911",
"checkOut": "20250913",
"item_category2": 5,
"item_category3": "hotel",
"location": "Sao Paulo"
}
],
"currencyCode": "BRL",
"checkout": {
"actionField": {
"step": 3,
"option": "Direto no hotel"
},
"products": [
{
"name": "Superior",
"id": 89772,
"price": 90,
"brand": "DEMO HOTEIS BRASIL",
"category": "Accommodation",
"quantity": 2,
"dimension4": "Teste de desconto por forma de recebimento",
"dimension5": 1
}
],
"guestData": {
"email": "thiago.hirata@niara.tech",
"name": "Teste Hirata",
"phone": "+551********99"
}
}
},
"clientName": "Motor Niara",
"clientProject": "MVSMmtzZzcUBKhdDyvClk",
"location": "Sao Paulo",
"niaraHotelId": "HOTEL_OMNI_10027",
"niaraChainId": "CHAIN_OMNI_995",
"check_in": "20250911",
"check_out": "20250913",
"daysAdvance": 36
}

7. Purchase

Ocorre após a confirmação da reserva.

note

A ordem da confirmação da reserva e a confirmação do pagamento (PIX ou cartão de crédito) depende da configuração do Motor.

{
"event": "ecommercePurchase",
"versionBE": "otabuilder_v2",
"eventDetails": {
"category": "Ecommerce",
"action": "Purchase"
},
"chainName": "DEMO HOTEIS BRASIL",
"chainId": "995",
"checkIn": "20250911",
"checkOut": "20250913",
"coupon": "TESTEPROMO",
"firstName": "Teste",
"hotelCategoryId": null,
"hotelCategoryName": null,
"hotelId": "10027",
"hotelName": "DEMO - BEE2BEE",
"isRemark": null,
"isLoggedIn": null,
"lang": "pt-BR",
"lastName": "Hirata",
"numberAdults": 1,
"numberChildren": 0,
"numberRooms": 1,
"userCountry": null,
"userDoc": "*******7351",
"userEmail": "meuemail@niara.tech",
"userId": null,
"dimension1": null,
"userTel": "+551********99",
"ecommerce": {
"value": 180,
"transaction_id": "RES050231-10027",
"tax": 0,
"currency": "BRL",
"currencyCode": "BRL",
"items": [
{
"affiliation": "Omnibees",
"coupon": "TESTEPROMO",
"currency": "BRL",
"discount": 0,
"item_brand": "DEMO - BEE2BEE",
"item_category": "Accommodation",
"item_id": "RES050231-10027",
"item_name": "Superior",
"item_variant": "Prueba de descuento por forma de recibo",
"price": 90,
"quantity": 2,
"index": 0,
"location": "São Paulo",
"item_category2": 5,
"item_category3": null,
"item_list_id": "995",
"niaraChainId": "CHAIN_OMNI_995",
"item_list_name": "DEMO HOTEIS BRASIL",
"check_in": "20250911",
"check_out": "20250913",
"checkIn": "20250911",
"checkOut": "20250913"
}
],
"purchase": {
"actionField": {
"id": "RES050231-10027",
"revenue": 180,
"tax": 0,
"shipping": "0",
"affiliation": "",
"coupon": "TESTEPROMO",
"currency": "BRL"
},
"products": [
{
"name": "Superior",
"id": "89772",
"price": 90,
"category": "Accommodation",
"brand": "DEMO - BEE2BEE",
"quantity": 2,
"dimension4": "Prueba de descuento por forma de recibo",
"dimension5": 1,
"currency": "BRL"
}
]
}
},
"check_in": "20250911",
"check_out": "20250913",
"niaraChainId": "CHAIN_OMNI_995",
"niaraHotelId": "HOTEL_OMNI_10027",
"clientName": "Motor Niara",
"clientProject": "MVSMmtzZzcUBKhdDyvClk",
"location": "São Paulo",
"daysAdvance": 36
}