Incorporating Google Analytics

If you wish to track your portals using Google Analytics, you can do so with the following code.

Google Analytics
Use the following code inside your Portal Custom Javascript and replace the indicated text with your tracking code. 

(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');

Google Tag Manager
When using Tag Manager you will be asked to insert one piece of code into the Head of your website and another into the Body. 
The code that belongs in the Head can be added to your Portal's Custom Javascript (without the <script> tags), like so:  

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

You then must add the code for your body tag. We recommend pasting this code in your theme's Footer HTML box below the code.

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