Skip to main content

Return to TX Community

Liaison

Setting up Google Analytics for Appointment Scheduler

Notes: 

Before you begin 

Obtain a Google Analytics Tracking Code

  1. You will first need to create an account for the following or login if you have an existing account:​

Note: If you’ve previously set up a Google Analytics Account, you should configure a new Property for your Online Application site.

  1. Google Analytics

    • Google Analytics is a free web analytics tool offered by Google to help you analyze your website traffic.
  2. Google Tag Manager

  3. Google Tag Manager allows you to easily update tags and code snippets on your website. Once the Tag Manager snippet has been added to your website or mobile app, you can configure tags via Google Tag Manager without having to alter and deploy additional code.

  4. Note: Google Tag Manager is ONLY needed for the Online Application setup. For all other setups you will use the Google Analytics Tracking code.
  5. ​​Locate your Tracking code in Google Analytics:
  • Select gear icon
  • Click Tracking Info
  • Click Tracking Code
  1. Copy the code and store it for later use.

​Step 1: Update your Community Template

  1. ​Ensure that your sandbox has been refreshed before continuing.
  2. Login to your sandbox.
  3. Navigate to your Community Theme tab.
  4. Click the Theme Name for the Community you wish to track.
  5. Make note of the Template Name and store it for later use.
  6. Navigate to Setup and search for Visualforce Pages.
  7. Locate the page that was listed as your Template Name.
  8. Select Edit.
  9. Scroll to the end of the code and paste your Google Analytics tracking code BEFORE the last </body>:

Google Analytics tracking code placement

Note: You must change the beginning of the following line in your Global Site tag from: 
<script async src=...
 
To this:
 <script async='async' src=...

  1. Save your changes.
     

​Step 2: Test the changes in your Sandbox

  1. Login to your Community using an existing test user.
  2. Verify they can create an Appointment, Interview, etc.
  3. Test any additional processes that are important to your institution.
  4. ​Verify that data is displaying in Google Analytics 'Real-Time.'

Step 3: Create and Deploy a Change Set

 

 

  • Was this article helpful?