How to Embed the Google Analytics Code Snippet

Share on print
Share on facebook
Share on linkedin
Share on whatsapp
Share on email

Embedding the Google Analytics code snippet into your Appspace Intranet environment allows you to track and analyze user interactions effectively.

This article provides Administrators with an outline for embedding the Google Analytics snippet into the Appspace Intranet site collection, allowing for tracking and analyzing site traffic and user behavior within the Appspace Intranet environment. 

Prerequisites

  • The Global Administrator user role with Windows Server Administrator permissions.

Embed Google Analytics Code Snippet

  1. Within the Style Library of the Appspace Intranet site collection, navigate to the “Beezy > js” folder.
  2. Open the beezy.customization.js file with an editor, and embed the Google Analytics code snippet into the file.
    Note
    Remember to back up the file before performing any version upgrade of the Appspace Intranet.

To properly utilize the beezy.customization.js file, all functions must be encapsulated within specific wrapper functions.

An example of this is provided below:

window.BeezyCustomizations = {
  init : function() {
    BeezyApp.define('myFunction', [], 
      function(myFunction) {
        // Your code
    });
  }
}