Overview
You can use Google Analytics 4 (GA4) to track how visitors move through your Core Practice Online Booking Journey.
This article covers the Google Analytics configuration completed outside Core Practice, including:
- Creating the four recommended events to track the booking journey
- Setting up cross-domain tracking between your website and Core Practice
- Checking that your tracking is working
Once you have configured GA4, you will also need to add your GA4 Measurement ID to Core Practice. See [Add your GA4 Measurement ID to Core Practice] for instructions.
Note: Google Analytics is a third-party platform. Core Practice does not provide support for creating or configuring Google Analytics accounts, events, conversions, or website tracking. If you need assistance with your GA4 configuration, we recommend contacting your website developer or marketing provider.
What is Google Analytics 4 (GA4)
Google Analytics 4 (GA4) is Google's analytics platform for measuring activity across website and apps.
GA4 uses events to track user interactions, such as page views, button clicks, and other actions. Events that are important to your business can also be marked as key events, allowing you to measure important actions such as completed online bookings.
Before you begin: Embedded Online Booking limitations
If you have embedded the Core Practice Online Booking widget directly into your website using an iframe, there are limitations to how referral and cross-domain information can be tracked.
Because the booking page is loaded within an iframe, information about where the patient originally came from may not transfer correctly to the Online Booking page. As a result, Google Analytics may not always identify the patient's original traffic source accurately.
For more accurate referral and conversion tracking, we recommend using a Book Now button that directs patients to your Core Practice Online Booking URL instead of embedding the booking widget on your website.
Create the Online Booking events
In Google Analytics, go to:
Admin → Events → Create event → Create
Create the following four events:
| Event name | What it tracks |
| all_appointment_view_product | Viewing a booking page |
| all_appointment_add_cart | Starting a booking |
| all_appointment_checkout | Reaching confirmation |
| all_appointment | Completing a booking |
For each event, enter the Custom event name, then add the matching conditions shown below.
1. View booking page
For Custom event name, enter:
all_appointment_view_product
Add the following matching conditions:
| Parameter | Operator | Value |
| event_name | equals | page_view |
| page_path | matches regular expression – case-insensitive | dentists|practices |
2. Start booking
For Custom event name, enter:
all_appointment_add_cart
Add the following matching conditions:
| Parameter | Operator | Value |
| event_name | equals | page_view |
| page_path | matches regular expression – case-insensitive |
3. Reach confirmation
For Custom event name, enter:
all_appointment_checkout
Add the following matching conditions:
| Parameter | Operator | Value |
| event_name | equals | page_view |
| page_path | ends with – case-insensitive | /confirm |
4. Complete booking (mark as 'Key Event')
For Custom event name, enter:
all_appointment
Add the following matching conditions:
| Parameter | Operator | Value |
| event_name | equals | page_view |
| page_path | ends with – case-insensitive | /appointments/complete |
Once you have created all four events, your event list should look similar to the example below.
Mark this event as a Key event in GA4 if you want completed Online Booking to be reported as a key event.
Tip: Copy the event names and values exactly as shown, including underscores, forward slashes and other symbols.
Set up cross-domain tracking
Cross-domain tracking allows Google Analytics to follow a visitor when they move from your practice website to Core Practice Online Booking.
1. Open your Google tag
- Go to Google Tag Manager: https://tagmanager.google.com/
- Select your tag from the Google Tags menu.
- Select the Google tag connected to your GA4 account.
- Under Settings, click Configure your domains.
2. Add the Core Practice domain
Under Include domains that match the following conditions, enter the following:
| Setting | Value |
| Match type | Contains |
| Domain | corepractice.is |
Click Save once complete.
Note: Enter only corepractice.is. You do not need to include https://, www or a trailing slash.
Add your Measurement ID to Core Practice
After configuring your Google Analytics tracking, you need to connect it to Core Practice Online Booking.
See [Add your GA4 Measurement ID to Core Practice] for step-by-step instructions.
Check that your tracking is working
After completing the setup, allow some time for Google Analytics to begin receiving the new events.
To check the setup:
- Open your practice website.
- Start an Online Booking.
- Continue through the booking journey.
- In GA4, go to Reports → Realtime.
- Check whether the relevant booking events appear.
The all_appointment event should appear when an Online Booking is successfully completed.
Note: Events created in GA4 only track activity from the time they are created. Previous bookings will not be added to these events.
If you have any questions, please click the yellow Help button at the bottom left and chat with us. We are more than happy to help!
Comments
0 comments
Please sign in to leave a comment.