The Confirmation Gadget

The Confirmation Gadget is designed to be included on the confirmation URL which is supplied as a parameter to the Booking Gadget.

Unlike other gadgets mentioned within these documents, the Confirmation Gagdet does not require or accept any settings. This gadget exists only to show the link to the itinerary PDF file. It creates this link inside the specified selector element.

Below is a basic version of the Confirmation Gadget initialisation code:

<script src="//gadgets.impartmedia.com/gadgets.jsz" type="text/javascript"></script>
<script type="text/javascript">
    $w(function() {
        BE.gadget.confirm('#confirm-example');
    });
</script>

Each option is described below. Click the title to see more information.

 

pdfLinkText

This is the text of the link to the itinerary. The default value is 'Download your itinerary PDF now.'

thankYouText

This is the text shown above the itinerary link. The default value is 'Thank you for your booking. You can download your itinerary with the link below.'

vcID

Set the gadget to fetch data for a particular visitor centre.

E-commerce tracking

When a successful booking has been made the confirmation gadget will fire an event which can be used for E-commerce tracking purposes

<script src="//gadgets.impartmedia.com/gadgets.jsz" type="text/javascript"></script>
<script type="text/javascript">
    $w.event.subscribe("Confirmation.Complete", function(data) {
        // insert your tracking code here
    });
</script>

The data variable will contain the following information about the transaction

    {
    "IsPaid": false,
    "ItineraryID": 7338874,
    "TotalCost": 25,
    "Bookings":
        [
            "BookingId": 7304278
            "CustomerId": 59271
            "CustomerName": "Operator Name"
            "InDate": "2019-12-10T00:00:00.000+00:00"
            "ItemId": 54116
            "ItemName": "Product Name"
            "Total": 25
            "Type": "ACCOM"
        ]
    }

Our Technologies.

Gold Coast, AU

  • Meet us.
    Southport Central 
    Tower 3, Level 3, Suite 30304
    9 Lawson Street
    Southport, QLD 4215

    +61 7 5668 2530
  • Write us.
    support@bookeasy.comThis email address is being protected from spambots. You need JavaScript enabled to view it.
  • Follow us.
    Twitter logo white   FB-f-Logo  white 29    In-White-28px-R

Recent Tweets