Administrators can install Google Analytics to track how their users are behaving on the site.
Installation:
To activate Google Analytics script on your intranet pages, you need to:
-
Install Origami Analytics app (solution file named sp-chrome.sppkg) in your tenant described here:
Installing Origami (Using App Catalog) -
Navigate to each site collection for which you need to send page usage data to Google Analytics and click [*] → Add an app
-
Add an app called Origami Google Analytics Embed and Alert Solution as shown below:
-
Navigate to [*] → Site contents and find the list called Config. This list was automatically created as part of step 3 above.
-
Open the Config list and create a new item in the list with the following values:
Title: TrackingCode
Value: GTM-********
NOTE: Above value of GTM-******** is your Google Tag Manager tracking code. Here is a quick walkthrough (you’ll need to as far as this section: Install the container ) to associate your Google Analytics with a Google Tag Manager.
- Save the new list item and your tracking should be set up. Please note that Google might take up to 48 hours to show data in your Google Console.