If you use Google Tag Manager with Google Analytics on your website, we recommend this Analytics Help article to configure cross-domain tracking.
What is cross-domain tracking?
Cross-domain tracking with Google Analytics makes it possible for you to measure your visitors' interactions with two different sites -- like your business website and your Cliniko online bookings page -- all in one place.
Why use cross-domain tracking?
If your website visitors click on a link to your Cliniko bookings page to make appointments, or book appointments using Cliniko's embedded online bookings form, you'll want to ensure that Google Analytics can record data like how those visitors arrived to your website, or which pages on your website were visited before booking appointments.
Without cross-domain tracking, the visitor session breaks when visitors either go to your Cliniko bookings page from your website or make appointments using Cliniko's embedded bookings form. If this happens, your Google Analytics data will show two separate visitors instead of one, causing you to lose valuable data such as source / medium, or user path on your website prior to booking appointments.
In this article, we'll show you how to configure cross-domain tracking so Google Analytics retains valuable data, enabling you to do things like improve your visitors' experience and increase your booked appointments.
What's needed to get started?
- A Cliniko account with online bookings enabled and Google Analytics configured
- A Google Analytics account with a property configured for your website
How to configure cross-domain tracking on your website
By default, your Cliniko online bookings page is configured to handle cross-domain tracking, so you will not need to modify any code on your Cliniko bookings page.
To manually configure cross-domain tracking on your website, find and modify the Google Analytics code snippet on every page of the desired property, and modify it to include the following changes highlighted in bold red text:
Remember to replace YOUR-ACCOUNT with your account's subdomain.
Verify cross-domain tracking works
To confirm cross-domain tracking has been set up correctly, Google highly recommend using their Chrome browser extension, Google Tag Assistant Recordings. To get started with Tag Assistant Recordings, follow this Analytics Help article, as well as its related resources.
If you also use Cliniko's embedded bookings form on your website, we recommend integrating your form with Google Analytics.