Skip to main content

Return to TX Community

Liaison

Adding your Google Analytics Tracking Code to your Community Template

How to setup Google Analytics for TargetX Online Application

Back to:
Obtaining a Google Analytics Tracking Code
Proceed to Next Step:
Configuring Google Tag Manager
  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>:

Placement of Google Analytics Tracking Code

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.

  • Was this article helpful?