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.
EU-based Microsoft 365 tenants?
In EU-based Microsoft 365 tenants, admins often enforce stricter security policies due to:
- GDPR compliance
- Data residency rules (e.g., avoiding U.S.-hosted services)
- Content Security Policy (CSP) headers or Tenant-level controls
These can prevent:
- External scripts (like those from
www.googletagmanager.com
orwww.google-analytics.com
) from loading. - Requests from being sent out to Google domains.
Possible Blocking Mechanisms can include:
- Content Security Policy (CSP) - prevents browser from loading GTM/GA scripts
- Firewall / Endpoint Protection - blocks outbound calls to Google services
- Tenant App Policies (via Intune, DLP) - may restrict browser script behavior
- Microsoft Defender for Endpoint - flags GA/GTM scripts as tracking attempts
- Browser Extensions on managed devices - may block analytics tags completely
What You Can Do
If you’re working on an EU-based tenants, consider these steps:
Check If GTM/GA Loads:
Open DevTools > Network tab. Reload page and filter for:
www.googletagmanager.com
www.google-analytics.com
If blocked, you may see:
- CSP errors in the Console (e.g.,
Refused to load script
). - Network requests canceled or blocked.
Talk to the Microsoft 365 Admin:
Ask:
- Is there a CSP or script restriction on external sources?
- Are external tracking scripts allowed under compliance policy?
- Can they whitelist GTM/GA domains if needed?
Use Region-Friendly Analytics Tools (Optional):
Some EU organizations avoid Google tools altogether. Alternatives:
- SharePoint built-in analytics
- Microsoft Clarity