Sharepoint Online for MTM
Adding Matomo Tag Manager to SharePoint Online can be a real challenge, especially without an SPFx developer. We have built an open-source SPFx extension that allows you to deploy Matomo Tag Manager on SharePoint Online in minutes at site or tenant level.
Matomo connector for Sharepoint
Plug & Play
This SPFx Application Customizer injects your Matomo Tag Manager container on every modern SharePoint Online page, no custom development needed.
SPA-safe injection
The extension handles SharePoint’s client-side navigation gracefully, preventing double injection so your tracking data stays accurate.
Flexible deployment
Deploy at tenant level for a global rollout, or at site-collection level to use different Matomo containers per site. Classic pages are also supported.
The easiest way to install Matomo on Sharepoint
Clone the repository, build the package, and deploy it with the included PnP PowerShell scripts.
You will just need to provide your Matomo container URL for your visitor tracking to begin across all modern SharePoint pages.
- Support for Matomo Tag Manager containers
- Modern pages via SPFx Application Customizer (SPFx 1.20)
- Classic pages via a separate ScriptLink deployment
- Site-level or tenant-wide deployment
- Includes PnP PowerShell deployment & removal scripts
Multiple deployment options to fit your environment
Choose the deployment method that best suits your SharePoint architecture. The included PowerShell scripts handle the full lifecycle, from app catalog setup to clean removal.
- Site-level deployment (One container per site)
- Tenant-wide deployment (same container across all sites)
- Classic pages deployment (ScriptLink, no SPFx required)
- Built-in Entra ID app registration guidance
- Full troubleshooting documentation
Content Security Policy ready
The extension comes with clear documentation to whitelist your Matomo domain in SharePoint’s Content Security Policy settings, ensuring the tracking container loads without being blocked by the browser.
- CSP troubleshooting guide included
- Admin Center and PowerShell instructions
- Works behind Matomo OnPremise or Cloud URLs
The open-source SharePoint extension for Matomo
Our extension is designed to be the simplest way to bring Matomo Tag Manager into the SharePoint Online ecosystem.
Deploy your Matomo Tag Manager container on modern SharePoint pages with a single PowerShell command. Whether you target a single site or your entire tenant, the included scripts handle everything, app catalog provisioning, package upload, and activation.
No SPFx expertise required to deploy. The project includes step-by-step documentation covering Entra ID app registration, permissions, deployment, removal, and troubleshooting. Classic pages are covered too with a dedicated script.