The Widget Configurator is added to your page using JavaScript from the embedded code snippet. This means that the widget is part of your page and thus tracking needs to be done through your website, and not the widget. If you have Google Analytics embedded on your website pages, no additional GA code needs to be added to the widget in order to track conversions. However, to know when a person finishes a booking you need to specify a booking confirmation landing page.
Firstly, watch the short video on how to track bookings
Setting up a landing page redirect for confirmed bookings
1. You will need a booking confirmation landing page. It can be any page, just make sure it has a unique URL that people can access.
2. Specify this URL on your widget by navigating here:
Your diary -> Promote -> Widget Configurator -> Edit Theme on the widget you have embedded -> Theme Settings -> tick Use custom success page and paste your landing page.
3. Whenever the user goes through the booking process and completes the booking he/she will be redirected to this landing page for tracking.
Adding a Goal to your Google Analytics to track bookings
Since you have your landing page already set up, you simply need to specify this page on Google Analytics goal.
1. Go to analytics.google.com
2. Navigate to your website’s property
3. Go to Admin -> Goals
4. Type the name for this goal and select Destination
5. Press Continue
6. Select Regular Expression and type in the url of your landing page. E.g. In the example below the confirmation page is on www.example.com/booking-confirmation so we need to specify the path url which is “booking-confirmation”.
7. Save the goal.
Frequently Asked Questions
What if I want to track conversions on Google AdWords, Facebook Pixel, Twitter ads, etc?
You can also do this via your custom confirmation page.
Embed the tracking code on the confirmation landing page and the conversion will be counted when the user is redirected to this landing page.
What if I have Google Analytics or GTM code specified in the diary?
Check: Your diary -> Settings > Reservations > Widget Tracking
If you have your Google Analytics ID specified there, it means that the page on which the widget is embedded will execute Google Analytics tag twice. This could affect the accuracy of your reporting.
If you have Google Tag Manager ID specified in the diary and you are running the same container (GTM ID) on your website, some of the tags might double fire. It is best to have just one unique GTM container running on your page.
What if I want to fire custom tags on the widget?
The widget often loads later than the page so you might not be able to run custom tracking tags that could track behaviour on the widget.
In order to accommodate the custom tagging on the widget, you can use a separate Google Tag Manager container and specify it on the diary settings. It means that your website will have a container with tags applicable to it and the widget will have its own custom tags applicable just to it. This setup can prevent double counting.