Google Analytics:

Google Analytics is a web analytics service offered by Google that tracks and reports website traffic.

To Setup Google Analytics:

    1.Log in to your Gmail account or create a new one

    2. Go to and click Sign Up

Choose “Website” and fill out the details:

  • Enter an account name & your portal name
  • For the website URL choose https:// and enter for the URL
  • Select an Industry Category and your timezone
  • Click Get Tracking ID & accept terms & conditions.

The next page should look like this:

    3. Copy the following code and paste into you Portal’s Custom Javascript box. 

            Replace the “ENTER-TRACKING-CODE-HERE text with your own Tracking ID. 


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



ga('create', 'ENTER-TRACKING-CODE-HERE', 'auto');

ga('require', 'displayfeatures');

ga('send', 'pageview');

    4. You should now be able to view traffic on your portal in your Google Analytics account. 

Please note:
The new default for Google Analytics has changed from UA to GA4

If you are using the new GA4 tracking, the above will not work. Simply paste the following into your Custom Javascript and replace "code-here" with your unique tracking code.

$('head').append("<script async src=''></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}gtag('js', new Date());gtag('config', 'code-here');</script>");

Google Tag Manager:

Google Tag Manager is a tag management system that allows you to create and monitor tags on a user interface.

To Setup Google Tag Manager:

    1.Go to

    2. Sign up for a free account:

  • Enter account name & country
  • Enter for container name
  • Choose Web
  • Accept terms & conditions

    3. Install Tag Manager:

  • Copy the code for the <head> of the page and paste without the <script> tags into the Portal's Custom Javascript. 

        Ours looked like this:


new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],




  • We then need to add the script to the body tag. 

            We chose to add it to the bottom of the footer file (Theme > Footer HMTL)  to reduce page bloat upon load. 

            Under our closing footer tag, we pasted the code so it looked like this:


<noscript><iframe src=""

height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>

    4. You should now be able to view traffic on your portal in your Google Tag Manager account.