Add Google Analytics to Online Bookings

What is Google Analytics?

Google Analytics is a free service from Google that lets you track visitors on your website.  This is most commonly used for marketing purposes.

Why add Google Analytics to your Cliniko online bookings?

Using Google Analytics here will let you see how many visitors come to your online bookings page, as well as where they came from (eg. which site they were referred from).  You can also see information on their behaviour while on your online bookings page.

Setting up Google Analytics with your Cliniko online bookings

Create a new Property in your Google Analytics Account

You probably have just one Property in your Google Analytics right now.  Google recommend against using the same Property for multiple websites at different web addresses.  With this in mind, we highly recommend you create a new Property for your online bookings page. It will also make it easier for you to track bookings activity.

  1. Create a new property in Google Analytics (follow this link for more info).
    analytics_step_1.png
  2. Select https:// from the Website URL dropdown menu, and then paste your online bookings URL into the 'Website URL' field.
    analytics_step_2.png
  3. After clicking 'Get Tracking ID,' select the 'Property Settings' tab in Google Analytics and copy your Tracking ID.
    analytics_step_3.png
    Enter your Google Analytics Tracking ID into Cliniko
  4. Paste your Tracking ID into the Google Analytics Tracking ID field in Settings > Online Bookings within Cliniko.
  5. Save your online booking settings and you're good to go! 

Keep in mind it may take some time (up to 24 hours) for data to appear in your new Google Analytics Online Bookings property. If you would like to check your web tracking code setup, Google provides some helpful documentation.

Update: Cliniko Now Offers Limited Support for Cross-Domain Tracking

Note: Keep in mind this is very technical, and probably not for everyone.  If you're interested in learning more about what Cross-Domain Tracking can do for you, we suggest having a chat with your website developer.

What is Cross-Domain Tracking?

Cross-domain tracking is a feature of Google Analytics (GA) which allows you to share your GA cookie across multiple domains. This could be helpful for Cliniko customers who link to their Cliniko online bookings pages from a separate domain, and want to track clicks to their online bookings pages in the same session.

What Does Limited Support Mean?

Cross-domain tracking requires modifications to the GA snippet on both the source domain (e.g. customer-website.com), and the destination domain (e.g. customer-online-bookings-page.cliniko.com).

We have enabled cross-domain tracking by default for customers who add their GA Tracking IDs to their online bookings pages (see how we've done this below), but due to the number of possible source domain configurations we may be unable to provide technical support for GA setup on all non-Cliniko websites..

Additionally, it should be noted at this time we only support linker parameters from referring source domains (more on this below).

In any event we would suggest working with your webmaster or developer to configure your source domain, and would gladly refer them here if they have questions about the GA setup on your Cliniko online bookings page.

How is Cross-Domain Tracking Configured on Cliniko Online Bookings Pages?

For Cliniko customers who have enabled GA we've automatically enabled cross-domain tracking. The GA snippet on each online bookings page has been updated by setting the allowLinker configuration parameter to true: 

ga('create', 'UA-XXXXXX-X', 'auto', {
  'allowLinker': true
});

When allowLinker is set to true, analytics.js will check the URL to see if a valid linker parameter exists and extract the proper values it needs.

Note: If you choose not to enable cross-domain tracking on a separate source domain there are no consequences of enabling it by default on your online bookings page.

Where Can I Find More Information?

To configure cross-domain tracking for online bookings pages we consulted with GA Developers documentation [1] as well as GA Support [2]. 

If you're interested in configuring cross-domain tracking on a separate source domain we recommend referring your webmaster or developer to the following web pages:

[1] https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain

[2] https://support.google.com/analytics/answer/1034342?hl=en

Have more questions? Submit a request

Comments

  • Avatar
    Sunil Mulay

    Hi There

     

    Could you please advise how on the best way to set up cross-domain tracking in Google Analytics, given that you are recommending the booking plugin should be set up as a separate property? I have the Universal Analytics version. I tried to follow Google's online tips, but couldn't find a way to edit the script in the Tracking Info section of google analytics. (I think it is meant to be read-only).

     

    I have used your recommendation of specifying the property ID for both the cliniko property as well as my website, which is setup through the wix.com interface. I'm looking for an easy way to link the domains so that I can see through-flow all the way to the booking confirmation screen.

     

    Many thanks in advance!

    Regards

    Sunil

  • Avatar
    Sunil Mulay

    Hi there support

     

    Just wondering if there is any update on this.

     

    Just to clarify: my understanding is that to get cross-domain tracking in Google Analytics, you have to edit the Google Analytics code on each domain, and each page within. In my case, that would be a matter of adding a few lines into the HTML of each of my website pages, as well as each of the cliniko online booking pages.

    However, both of these ie. Cliniko and my website, which was created using wix.com, use the Google Analytics Tracking ID number to install the Analytics Code rather than a manual option. This means that I cannot manually make the changes required for Google to link the domains and give me seamless reporting between my website and the Cliniko bookings page.

     

    Any ideas on how to fix this??

     

    Thanks

    Sunil

  • Avatar
    Joel Friedlaender

    Hi Sunil,

    We're working on changing our script to support cross-domain tracking, we should release that within a few days.

    You're right you can't edit the script on Cliniko, but we'll make it work for you and update here when it's fixed.

    Joel

  • Avatar
    Sunil Mulay

    Fantastic!

    Thanks Joel - you guys are great!

  • Avatar
    Sunil Mulay

    Any success with this Joel?

    Thanks

    Sunil

  • Avatar
    Charles

    Sunil, just wanted to follow up real quick to let you know we haven't forgotten about this. Sorry for the delay. We will let you know as soon as it's ready.

    -Charles

  • Avatar
    Charles

    Sunil, we've just released an update which permits cross-domain tracking by default. So if you've (e.g.) configured your source domain to decorate each link pointing to your online bookings page you should be able to see the through-flow to your bookings page. 

    We've tested this out on our side. Could you test on your side and confirm it works as expected? 

    Thanks again for your feedback. We're pleased to be able to provide this update to help measure and grow your business!

    -Charles

  • Avatar
    Sunil Mulay

    Hi Charles, that's great news.

    All I have done so far is set up Cliniko as a new property as per the instructions that were published earlier, and then set up a few goals inside the Cliniko property. Could you please clarify what I need to do further? Not sure exactly what you mean by "if you've (e.g.) configured your source domain to decorate each link pointing to your online bookings page".

    Thanks

    Sunil

  • Avatar
    Charles

    Hi Sunil,

    Re-reading your second comment it's clear to me that you also need wix.com to modify your Google Analytics snippet to get this working. 

    Could you reach out to them, open a ticket, and update us once it's been resolved on their end? 

    Here's a link [1] to Google Analytics Developers' documentation for cross-domain tracking which you can include when you open your ticket.

    Good luck, and keep us in the loop!

    -Charles

    [1] https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain

  • Avatar
    Sunil Mulay

    Hi Charles

    Thanks - I was surprised when Joel said it could all be done at the Cliniko end, as my understanding was that you had to insert an additional script on both domains.

    From what I understand, the Wix code cannot be edited, but I will do as you say, and log a ticket and see if there is a way to fix it.

    Without it, the Google analytics, is pretty much useless!

    Alternatively, I am wondering if there is a way to add the Cliniko tracking in the same property as the primary domain within Google Analytics (even though this is supposedly not recommended)??

     

    Thanks

    Sunil

  • Avatar
    Sunil Mulay

    Hi Charles

    Below is the response I have had from Wix:


    Thank you for contacting Wix Support regarding this issue.

    You can add the Analytics snippet to your Wix site using the HTML app. With the HTML app you can add your own HTML code or embed another site onto your Wix site.

    For further information and instructions, please click  here

    Note: Take a minute to read through the  Known Issues & Limitations of the HTML iFrame/Embed App before using it.


     

    In case, the link to the instructions doesn't work, here it is:

    http://www.wix.com/support/html5/wix-app-market/apps-made-by-wix/tutorial/html-elements

    I haven't digested this all myself yet, but was wondering what your thoughts were. Should I be looking at embedding the Cliniko booking into my website (which presumably gets around the cross-domain issue), or adding the HTML code.....

    I am not a programmer, so any advice/instructions you can give me would be most beneficial.

    Thanks

    Sunil

  • Avatar
    Charles

    Hi Sunil,

    Thanks for your response. A few notes real quick:

    • I wouldn't advise configuring your Google Analytics code in a way Google don't recommend.

    • I would love to help configure your GA code on Wix, but unfortunately I'm unfamiliar with Wix.

    The best advice I could provide for anything Wix-related is to continue working with their support. Alternatively, assuming Wix have support forums, perhaps you could open up a thread to ask their community for help using the HTML app? 

    • Lastly, without knowing more about Wix's HTML app my instincts suggest it would be easiest to work with them to configure your GA code via the HTML app. So I would see if you could get that to work before working on alternate implementations.

    In any event we're looking forward to getting this up and running. Let us know when it's configured on your Wix site!

    -Charles

  • Avatar
    Joel Friedlaender

    Hi Sunil,

    I believe instead of using Wix to put the Google Analytics on your page in a standard way, you turn that off, and instead add a HTML app to your page.  That link they sent you gives intructions for this.

    Then, in the HTML app, you'll put <script> tags with the custom Google Analytics code in there.

    That will mean you have complete control over the GA code on your wix website.

    Joel

  • Avatar
    Sunil Mulay

    Thanks Charles and Joel

    I will have to venture into the depths of the unknown here, and tinker with the code......

    Thanks - will let you know how I get along.

    Sunil

  • Avatar
    Sunil Mulay

    Ok, guys, I installed the HTML app into my wix website, and inserted the following code (I have deleted the tracking ID for confidentiality purposes), into all my webpages at raveltherapies.com


    <script>

      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-XXXXXXX-1', 'auto', {'allowLinker': true});

      ga('require', 'linker');

      ga('linker:autoLink', ['raveltherapies.cliniko.com'] );

      ga('send', 'pageview');

    </script>


    I followed the instructions in the following article in doing this.

    https://support.google.com/analytics/answer/1034342?hl=en

    I also deleted the Tracking ID from the wix interface, assuming that was the right thing to do, as the HTML code I inserted has the ID in it.

    Does this sound like I've done the right thing, to you?

    Can you confirm if the coding you have done at your end addresses Step 3 in the above link?

    I understand it could take a few days to start seeing the statistics before I can confirm it is set up correctly........

    I need to look into how to set up the reports, so that I can see the through-traffic....

     

    Thanks

    Sunil

     

  • Avatar
    Charles

    Hi Sunil,

    Thanks great news -- thanks for the update!

    From what I see it appears your GA snippet is configured correctly, and you were right to delete the Tracking ID from the wix interface.

    Step 3 in the above GA Support link does not apply to your online bookings page. The additional code is only necessary when the destination domain contains links back to the source domain, which the online bookings pages don't. (You could think of the online bookings pages as a final destination in this context.)

    You are right that it could take a few days for all of the data to begin populating in your reports, however, here's a quick shortcut you could try to confirm more quickly: Go to the "Real-Time" view of your GA property in one browser tab, and in another browser tab navigate from your webpage to your online bookings page. If you see an active visitor on your online bookings page there's a good chance that everything is working properly. (Caveat: This assumes there were no visitors on your online bookings page prior to testing this out on your own.)

    Additionally, I highly recommend following the example in the "Next Steps" section of the GA Support link you've mentioned above -- that filter will help you easily differentiate web traffic from your website, and your online bookings page. 

    As for other reports/views/filters, we believe there are other folks in the Cliniko community with similar needs. So if you're happy sharing what reports/views/filters you'd like to set up, we'd love to help you get set up, and then share the "how-tos" with the rest of the Cliniko community. Thoughts?

    Thanks!

    -Charles

  • Avatar
    Sunil Mulay

    Hi Charles

    That's a clever way to test it - thanks.

    Looks like I may not have set up the code properly, as I cannot see any visitors on my primary property (raveltherapies.com) in Realtime. When I navigate to the Online Booking page though, in the Cliniko property in GA, I do see the active visitor. So the cliniko GA code is working, but the code I have placed into my wix site doesn't not seem to be working.

    Meanwhile, I posted a response to my wix ticket, pasting in the code that I had entered. This is the response I got:


    Hey Sunil,

    Currently, it is not possible to add a tracking code in order to use  Universal Analytics and  In-Page Analytics.

    Note: To add a Google Analytics tracking ID please follow  these steps.

    If you individually add an HTML code to your site, note that as the external HTML code has not been tested or created by Wix, our Support team is unable to answer questions or assist with problems regarding the HTML iFrame/Embed App.

    We recommend testing your code externally.

    You can do so using sites one of the following sites: 

    w3schools.com

    jsfiddle.net

    Thank you.


    Any other thoughts?

    Thanks

    Sunil

     

  • Avatar
    Sunil Mulay

    Hi Charles

    I think Wix led me down the garden path....

    I asked for further clarification and got this:


    Sorry for the confusion.

    Currently, it isn't possible to add Universal Analytics.

    We document and learn from every feature request and bug brought to our attention. These objectives are immediately high priority milestones in Wix's product road map.

    Feel free to add your feature request by submitting a ticket or you can vote on existing feature requests.

    To read about our feature updates, please click here.


     

    Looks like I have hit a brick wall, doesn't it?

     

    Regards

    Sunil

  • Avatar
    Charles

    Hi Sunil,

    Thanks for the update. 

    I'm sorry to hear Wix currently doesn't support customizing Universal Analytics code via their HTML app, and I hope this is something they're able to support soon. 

    Nevertheless, I'm confident you could still leverage your existing setup to get better insight into the performance of your web page. Have you created any reports or views yet? What are you most interested in measuring and optimizing? 

    -Charles

  • Avatar
    Sunil Mulay

    Hi Charles

    I have voted for this feature to be added, so let's see.

    No, I haven't created any reports or specific views yet. I don't find the GA User Interface easy to navigate at all. It seems like its designed for IT professionals rather than the average user!

    I usually just go through the menu on the left and look at things like the acquisition list, showing where the traffic is coming from, general behaviour (drop offs vs participation), and flow through the website.

    What I am most interested in though, is tracking where my conversions are coming from, and I don't see how I can do this without the cross-domain tracking, but am interested in your thoughts.

    Most of my clients arrive at my website from one of the following:

    • direct entry of my website into the address bar (they may have picked up a leaflet).

    • google organic search

    • some of my business listings

    • other specific websites that list me.

    I can see where people are coming from at the moment, but I am not able to track these people through to conversion (ie. the booking confirmation page on cliniko). For example, I would like to see what percentage of people coming in from each of the above sources are dropping off, and what percentage is converting. This will help me to know which marketing methods are working for me, and which ones need improvement or scrapping altogether.

    Does this make sense?

    Thanks!

    Sunil

  • Avatar
    Charles

    Hi Sunil,

    Yes, this makes complete sense. 

    What I am most interested in though, is tracking where my conversions are coming from, and I don't see how I can do this without the cross-domain tracking, but am interested in your thoughts.

    The source/medium UTM parameters usually indicate where the conversions are coming from -- irrespective of whether you have cross-domain tracking enabled. 

    So, for example, if someone clicks on an outbound link on raveltherapies.com to your online bookings page, and creates an appointment, you should see raveltherapies.com/referral as the source/medium for that conversion.

    If you'd like a more granular analysis for conversions from your website you could even filter your traffic by "source/medium" (i.e. raveltherapies.com/referral), and select "referral path" as a secondary dimension. This will display all of the pages on raveltherapies.com which referred traffic to your online bookings page.

    But before going any further I have two quick questions for you:

    1. How are you measuring conversions with GA?

    2. When you record conversions, which data you can see (in addition to the conversions)?

    -Charles

  • Avatar
    Sunil Mulay

    Hi Charles

    I'm trying to follow your thought here....but not sure from what you are saying if you think you can achieve what I am after...??

    Regarding your following comment:


    So, for example, if someone clicks on an outbound link on raveltherapies.com to your online bookings page, and creates an appointment, you should see raveltherapies.com/referral as the source/medium for that conversion.


    Yes, I will see raveltherapies.com/referral as the source/medium, but I will not see how that conversion arrived at raveltherapies.com, will I? That is the missing link I need. How my conversions got to raveltherapies in the first place......before they then clicked to my online bookings.

     

    To answer your questions though:

    1. Goal type: destination. Regular expression: /bookings/confirmation

    2. Not sure which data you are asking about. I look at the number of conversions, then I look at Goal Flow, only that it is not telling me anything except that all my traffic has come from raveltherapies.com (which I already know).

     

    Hope this helps.

    Thanks

    Sunil

     

     

     

  • Avatar
    Sunil Mulay

    Hi Charles

    I'm trying to follow your thought here....but not sure from what you are saying if you think you can achieve what I am after...??

    Regarding your following comment:


    So, for example, if someone clicks on an outbound link on raveltherapies.com to your online bookings page, and creates an appointment, you should see raveltherapies.com/referral as the source/medium for that conversion.


    Yes, I will see raveltherapies.com/referral as the source/medium, but I will not see how that conversion arrived at raveltherapies.com, will I? That is the missing link I need. How my conversions got to raveltherapies in the first place......before they then clicked to my online bookings.

     

    To answer your questions though:

    1. Goal type: destination. Regular expression: /bookings/confirmation

    2. Not sure which data you are asking about. I look at the number of conversions, then I look at Goal Flow, only that it is not telling me anything except that all my traffic has come from raveltherapies.com (which I already know).

     

    Hope this helps.

    Thanks

    Sunil

     

     

     

  • Avatar
    Tyraus Farrelly

    Hi,

    Do I need to past the tracking code into any web pages for google analytics to work with my online bookings.  I have done all steps above but you don't mention the tracking code that google creates when creating a new property. 

    FYI - I have not set-up tracking on my website as yet, does this matter?

    Cheers Tyraus

     

  • Avatar
    Charles

    Hi Sunil,

    Yes, I will see raveltherapies.com/referral as the source/medium, but I will not see how that conversion arrived at raveltherapies.com, will I? That is the missing link I need. How my conversions got to raveltherapies in the first place......before they then clicked to my online bookings.

    Ah ha -- I misunderstood. You are indeed correct.

    A simple, temporary, workaround could be to direct traffic from different sources/mediums to dedicated landing pages with URLs you don't publish anywhere else. e.g. One landing page for each source. Then, if you include a link on that page to your Online Bookings page, you will have a rough idea of how many people click through and convert from each source/medium. (Of course this won't work if people navigate away from the landing page to another part of raveltherapies.com before heading to your Online Bookings page, or if they return and convert in another session.)

    In any event, hopefully wix will enable Universal Analytics in the HTML App soon. Let us know!

    -Charles

  • Avatar
    Charles

    Hi Tyraus,

    You are good to go! 

    1. We don't mention GA's tracking code because we take care of all of that on our end. We only need the tracking ID so Google knows to which property to send the data. 

    2. You don't need to set up tracking on your website for this to work, or to be useful. Your Cliniko-GA integration will show you lots of stuff like: the number of visitors for your Online Bookings page, where they came from (source/medium), where they're located (geo location), and more. 

    We're happy to see you using this feature. Feel free to let us know if you have other feedback or questions!

    -Charles

  • Avatar
    Sunil Mulay

    Hi Charles

    You had me excited for a moment there, as I thought you might have a magic potion!

    Yes, I hope Wix get this sorted.

    Thanks anyway.

    Sunil

  • Avatar
    amjmcintosh

    Does this work when the booking page is embedded in another page? Do I still use the URL Cliniko gives us when making the property, or do I need to use the url of the page in which the booking page is embedded?

     

    Cheers,

    Adam

  • Avatar
    Ben

    Is there a way to redirect back to my home page after online booking complete?

Powered by Zendesk