This article is for:
Once you have connected Google Tag Manager to your Timely account it is important to set a few things up to make sure you are tracking each step of the booking process accurately. This is a multi-step process, and it is important you follow each set of instructions in order for this set up to be completed successfully. In this guide, you will learn how to track each step of the booking process and how to set up both Google Analytics and Facebook Pixel tracking tags
Important note: this feature is only available to businesses on our Innovate plan. Should you wish to upgrade your plan, you can find more information in our help guide How to change your Timely plan.
Important Information
The way Timely works is that there are three versions of the online booking process that your clients can access and each of these interact with Google Tag Manager slightly differently.
For the mobile and widget (iframed) versions of the online booking process, each step is a new page load and will be recognised as separate page views in Google Tag Manager out of the box.
However, for the desktop/laptop version of Timely online booking, each step of the process is powered by AJAX requests that won't by default be recognised as new page views. To get these steps to be picked up you will need to follow the steps below to have each step in the process be recognised using virtual page views. This is particularly important if you are using page URLs for tracking your goals inside Google Analytics.
Step One: create the virtualPageURL data layer variable
This is the mechanism by which Timely can tell GTM what URL a client is currently on.
Step Two: create the VirtualPageview Trigger
This step sets up the trigger which you can then use in any of your tags that you want to respond to fire on each step of the online booking flow.
Step Three: add the Google Analytics Tag
Timely note:
To make the most of Google Analytics we suggest you filter out the obg and opg querystring parameters. This will ensure that your GA stats will nicely group your page views based on the step URL. To do this follow these steps from within your Google Analytics account:
- Click admin at the top of any analytics page
- Use the menu in the view column to select the view you want to edit
- Click view settings
- Under exclude URL query parameters: enter obg, opg
Step Four: add the Facebook Pixel Tag
Before doing the following steps first make sure you have setup both the virtualPageURL data layer variable and the VirtualPageview trigger described above.
Timely note: along with setting up the Facebook Pixel tag we recommend also setting up the following Purchase Tag, Trigger, and Data Layer Variable to record Purchase events into your Pixel that will allow you a straightforward way to measure conversions for Facebook.
Step Five: create a purchase trigger
This trigger will allow GTM to be able to respond when one of your clients completes an online booking.
Step Six: create a purchase value data layer variable
This allows GTM to access the value of a particular online booking.
Step Seven: create a purchase tag
This tag is responsible for recording the Purchase event to your Facebook Pixel.
<script> fbq('track', 'Purchase', { value: {{purchaseValue}}, currency: 'AUD', }); </script>