Documentation Center

Verifying the Google Analytics module installation

View the Web site footer to confirm the Google Analytics module installation was successful by checking script code has been added.

Procedure

  1. Open a browser and navigate to a page in the Example Site that includes the Footer Page such as the Web site's home page.
  2. View the Page Source.
  3. Find the following code block to confirm successful installation:
    <script>
      (function (b, o, i, l, e, r) {
     b.GoogleAnalyticsObject = l; b[l] || (b[l] =
     function () { (b[l].q = b[l].q || []).push(arguments); }); b[l].l = +new Date;
     e = o.createElement(i); r = o.getElementsByTagName(i)[0];
     e.src = '//www.google-analytics.com/analytics.js';
     r.parentNode.insertBefore(e, r);
     }(window, document, 'script', 'ga'));
     ga('create', 'SiteKey'); ga('send', 'pageview');
    </script>

    where SiteKey is the value of your Google Analytics site key you specified in Content Manager.