1. NightsBridge Online Calendar (BridgeIT)

Which NightsBridge booking form tags can be tracked?

You can track additional tags on Google Tag Manager on a completed booking on the NightsBridge booking form.

How the JSON is structured

This JSON response is only generated once a booking has been confirmed/generated. This JSON response contains all the tags which can be tracked, and is the equivalent of Google tags "Goals" or "Targets".

The path to the below JSON is : "nb.data.reservation." ie: nb.data.reservation.bookingid

Example of the JSON

{"reservation": {

"bookingid": 19102136,

"arrival": "2014-12-30",

"departure": "2015-01-01",

"nights": 2,

"rooms": [

  {

    "product": "Single R: Full-board",

    "adults": 1,

    "children": 0

  }

],

"currencycode": "ZAR",

"total": 500,

"deposit": 50,

"extras": [],

"bbid": 10027,

"bbname": "Johan Test",

"contacts": "Reservations",

"phoneno": "3697412580",

"cellno": "0711378452",

"email": "[email protected]",

"website": "www.MyWebSite.xxx",

"address": "2 Oak Road\r\nSunnyvale\r\nEaster Land",

"lat": -34.017998,

"lng": 18.379951,

"zoom": 15,

"directions": "this is directions to my place ... etc etc."

}}

Tags that can be tracked

Available to track Path to be used
reservation nb.data.reservation
bookingid
nb.data.reservation.bookingid
arrival
nb.data.reservation.arrival
departure
nb.data.reservation.departure
nights
nb.data.reservation.nights
rooms
nb.data.reservation.rooms
product
nb.data.reservation.rooms.product
adults
nb.data.reservation.rooms.adults
children
nb.data.reservation.rooms.children
currencycode
nb.data.reservation.currencycode
total
nb.data.reservation.total
deposit
nb.data.reservation.deposit
extras
nb.data.reservation.extras
bbid
nb.data.reservation.bbid
bbname
nb.data.reservation.bbname
contacts
nb.data.reservation.contacts
phoneno
nb.data.reservation.phoneno
cellno
nb.data.reservation.cellno
email
nb.data.reservation.email
website
nb.data.reservation.website
 address
nb.data.reservation.address
lat
nb.data.reservation.lat
lng
nb.data.reservation.lng
zoom
nb.data.reservation.zoom
directions
nb.data.reservation.directions

Example of an existing, working Google Tag with our JSON reference path in the Value field

<!-- Event snippet for Online Booking conversion page -->

<script>

  gtag('event', 'conversion', {

      'send_to': 'AW-12345678910/Nt_ABCDEFGHIJKL_2bYp',

      'value': nb.data.reservation.total,

      'currency': 'ZAR',

      'transaction_id': ''

  });

</script>

Previous Article How to add your "Book Now" or "Check Availability" buttons to your website
Next Article What is an enquiry for a same-day booking?