Tracking the Online Scheduler: Google Analytics
Learn how to set up Google Analytics to track page views and events in your online scheduler.
Jonathan avatar
Written by Jonathan
Updated over a week ago

You can use Google Analytics to track visitors to your Clinicminds online scheduler. This page provides a description of setting up and using the integration with Google Analytics.

Set Up Google Analytics Tracking

To use Google Analytics tracking, you need to have a Google Analytics account. Are you new to Google Analytics? Then follow the getting started guide.

Are you already using Google Analytics? Then you can set up an extra property, so the data from your online scheduler is registered separately from your main website. Use https://schedule.clinicminds.com as URL. Or you can use your existing property from your main website, to register the data from your online scheduler together with your main website using cross-domain measurement.

After setting up a property, find its tracking ID in Google Analytics. Sign in to Google Analytics and click Admin (bottom left). Find the right property, and click Tracking Info > Tracking Code. Copy the tracking ID.

Now open Clinicminds and go to menu > Clinic Settings > Calendar > Online Bookings > Analytics & Redirect. Now, heck the option Enable Google Analytics tracking. Enter your tracking ID in the Tracking ID field below.

Optionally, you can check the option Anonymise IP addresses to enable IP anonymization in Google Analytics. This prevents Google Analytics from tracking the full IP addresses of visitors. Especially for EU clinics, this is recommended, since it can be part of your measures for GDPR compliance.

Save the settings with the Save button at the bottom. Google Analytics tracking will become active in your online scheduler immediately!

Tracked Page Views and Events

At every screen in the online scheduler, a page view is tracked. Also, some events are tracked during the booking flow. The tracked page views and events for the three possible flows are listed below.

Alternatively, we recommend using the Google Analytics Debugger extension for Google Chrome. This extension enables debugging mode of the Google Analytics tracker and shows information about everything that’s tracked in the browser’s developer console. (Note that you need experience with the developer console to use this.)

New Booking

For new bookings, the following page views and events are tracked:

  1. Page view: https://schedule.clinicminds.com/services

  2. Event: category “Clinicminds Scheduler”; action “Scheduler Opened”

  3. Event: category “Clinicminds Scheduler”; action “Service Selected”; label service name

  4. Page view (optional): https://schedule.clinicminds.com/appointment-types
    If the selected service only allows for “Treatment” appointment types, this page view may be skipped.

  5. Event: category “Clinicminds Scheduler”; action “Appointment Type Selected”; label appointment type

  6. Page view (optional): https://schedule.clinicminds.com/locations
    If the clinic has only one location, or if a location is specified in the URL, this page view may be skipped.

  7. Event: category “Clinicminds Scheduler”; action “Location Selected”; label location name
    If the location is specified in the URL, this event may be tracked earlier.

  8. Page view: https://schedule.clinicminds.com/availability

  9. Page view: https://schedule.clinicminds.com/personal-details

  10. Page view: https://schedule.clinicminds.com/verification

  11. Page view: https://schedule.clinicminds.com/payment
    If the selected service does not require a deposit, this page view may be skipped.

  12. Page view: https://schedule.clinicminds.com/booked

  13. Event: category “Clinicminds Scheduler”; action “Appointment Booked”

Rescheduling

For reschedulings of existing bookings, the following page views and events are tracked:

  1. Page view: https://schedule.clinicminds.com/appointment

  2. Page view (optional): https://schedule.clinicminds.com/locations
    If the clinic has only one location, this page view may be skipped.

  3. Event: category “Clinicminds Scheduler”; action “Location Selected”; label location name

  4. Page view: https://schedule.clinicminds.com/availability

  5. Page view: https://schedule.clinicminds.com/rescheduled

  6. Event: category “Clinicminds Scheduler”; action “Appointment Rescheduled”

Cancellation

For cancellations of existing bookings, the following page views and events are tracked:

  1. Page view: https://schedule.clinicminds.com/appointment

  2. Page view: https://schedule.clinicminds.com/canceled

  3. Event: category “Clinicminds Scheduler”; action “Appointment Canceled”

Cross-Domain Measurement

You can use cross-domain measurement to register the data from your online scheduler together with your main website. This can be useful if you want to track bookings in the scheduler as conversions of visits to your main website.

To use cross-domain measurement, in Clinicminds enter the tracking ID of the same property as you use for your main website in Google Analytics. Next, make sure that the Google Analytics integration on your main website is supported:

  • analytics.js: We recommend using analytics.js on your main website. When you do, and embed our HTML/JavaScript code, we automatically set up the linker plugin for cross-domain measurement. This should work for all kinds of integrations (frame embed, overlay, and button that opens in new browser tab). If you use multiple trackers on your main site, be aware that we use the default one (named t0), or if that one doesn’t exist, the first that is returned by ga.getAll().

  • Universal Analytics (gtag.js): If you use gtag.js, under the hood analytics.js is used, and the above should apply to. However, part if this is undocumented behaviour, so we can’t guarantee consistent functionality.

  • ga.js (Legacy): We do not support ga.js, because its linker is not compatible with modern versions of Google Analytics (which are used in the scheduler). We recommend upgrading to analytics.js.

Setting Up Conversion Goals

You can track conversion (i.e., completed bookings) in your online scheduler. For this, you should create a goal in Google Analytics. You can either use a destination goal for the final page view (https://schedule.clinicminds.com/booked) or an event goal for the final event (category “Clinicminds Scheduler”, action “Appointment Booked”) of the booking flow.

If you’re using Google Ads, you can even import the Analytics goal to track conversion of your Google Ads.

Tracking Custom Campaigns

You can track custom campaigns using URL parameters in your online scheduler. When setting up the scheduler and widget, you can simply enter your custom campaign parameters.

Did this answer your question?