Tracking

There are 3 ways you can look at tracking:

Google/Facebook Tracking

Putting Google/Facebook code on the first enquire button in the CSS (this isn’t tracking to completion but the drop off rate is about 10% on average from loading up the iframe so a quick and easy way to get a pretty accurate reading). Useful guide for developers on Adding Google Analytics Tracking Code to the booking widget.

Custom return URL

You can create a custom return URL for users to be directed to when they complete their booking. That way you’d be responsible for displaying all the info to the users and having your own confirmation page not the DMN one we currently have, but you would have control over your own analytics etc completely.

To do this you need to create the return URL on the venue site then set it using custom script after your partner form:

<script>
  DMN.val('return_url', 'https://www.your-return-url.com/booking-complete');
</script>

The booking info will be passed back in the URL.​

Please note: personal information is not included in the return url. To recieve personal details about your customer you must configure your return page to recieve a POST request and include the option:

DMN.value('return_method', 'post');

Using our API (big tech build, we do not recommend)

Use our API to build out your own checkout which you can track completely as you want then you can do whatever you want - big tech build - developers.designmynight.com

Tracking FAQs

1. All the details captured from the user are returned in the query string within my return URL. Is is possible to stop this?

Yes. Add the following code underneath your existing return_url:

DMN.val('return_method', 'post');

2. What information should we include in the custom return URL?

All customers will automatically receive an Enquiry Received/Booking Confirmation email once they have completed their enquiry/booking (and reach your custom return URL page). As these emails will include a full summary of their enquiry/bookings (including their DMN Booking refence), it’s not necessary to show these details on your return URL. We would recommend to have a generic ‘Thanks for enquiry/booking’ message.

This table describes which enquiry/booking details will be sent with the redirect to the return URL

3. How do we get the booking reference number on our custom return URL page?

It will be fed back through the url. This script will parse the url and get the booking parameters out.

<script>
  var queryParams = document.location.search.substr(1).split('&');
  var paramsEl = document.getElementById('all-params');

for ( var i = 0; i < queryParams.length; i++ ){
  var currentParam = queryParams[i];
  var paramParts = currentParam.split('=');

  paramsEl.innerHTML += '<li>' + paramParts[0] + ': ' + paramParts[1];
}
</script>
  <div id="all-params">