Add Analytics Tracking

In Site Builder, you can add a snippet of JavaScript tracking code to a site or page for web analytics tracking, making it easier to integrate with external analytics providers like Google, Adobe, or Oracle Infinity.

To add analytics tracking to a site:

  1. Open a site for editing.
  2. Click Settings icon in the sidebar and then click Analytics icon Analytics.
  3. Click the switch to enable analytics tracking.
  4. In the JavaScript Tracking Snippet box, add a new snippet or edit existing script.

    Your administrator may have supplied a code snippet for your environment. If so, that will show in the box. You can customize the script or add your own. If you edit the administrator supplied snippet, a message says that the script has been modified. To remove your customizations: Restore to Latest Tenant Script.

    Here's an example of a Google Analytics tracking snippet:

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src=""></script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'UA-85172963-3');

You must save and publish this change, and, if necessary, bring the site online before analytics are collected for the site.

Viewing Analytics Data

After you publish the site and bring it online, you can view the tracked analytics data on the vendor’s site, such as Google Analytics. If you used a snippet for Oracle Infinity analytics tracking, go to the Oracle Infinity home page and click Analytics to view the data and select or create reports.