The Confirmation Gadget

MVC Enhancement

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="//" type="text/javascript"></script>
<script type="text/javascript">
    $w(function() {

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




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


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.'


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="//" type="text/javascript"></script>
<script type="text/javascript">
    $w.event.subscribe("Confirmation.Complete", function(data) {
        // insert your tracking code here

The data variable will contain the following information about the transaction

    "IsPaid": false,
    "ItineraryID": 7338874,
    "TotalCost": 25,
            "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"