How to Embed the Google Analytics Code Snippet

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

Gain a comprehensive understanding of your Appspace Intranet’s performance by seamlessly integrating Google Analytics. This powerful tool empowers you to track user behavior, measure content engagement, and gather valuable data-driven insights to optimize your intranet strategy. 

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
    });
  }
}