https://github.com/catalyst/moodle-tool_webanalytics
A Moodle admin tool adding Web Analytics to your Moodle site.
https://github.com/catalyst/moodle-tool_webanalytics
Last synced: 11 months ago
JSON representation
A Moodle admin tool adding Web Analytics to your Moodle site.
- Host: GitHub
- URL: https://github.com/catalyst/moodle-tool_webanalytics
- Owner: catalyst
- Created: 2018-05-15T04:30:46.000Z (about 8 years ago)
- Default Branch: MOODLE_401_STABLE
- Last Pushed: 2025-01-15T04:36:07.000Z (over 1 year ago)
- Last Synced: 2025-04-27T14:38:58.936Z (about 1 year ago)
- Language: PHP
- Homepage: https://moodle.org/plugins/tool_webanalytics
- Size: 171 KB
- Stars: 7
- Watchers: 32
- Forks: 11
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/catalyst/moodle-tool_webanalytics/actions/workflows/ci.yml?branch=MOODLE_401_STABLE)
# Web Analytics
A Moodle admin tool adding Web Analytics to your Moodle site.
## Branches
| Moodle version | Branch | PHP |
| ----------------- | ------------------- |-----------|
| Moodle 4.1 + | `MOODLE_401_STABLE` | 7.4+ |
| Moodle 3.5 - 4.0 | `master` | 7.2+ |
## Install instructions
1. Copy the code to admin/tool/webanalytics directory of your Moodle instance
2. Visit the notifications page and install the plugin
3. Visit a plugin configuration page and add instances of required Web Analytics Tool
## The plugin features the following options
- multiple unlimited instances of different types of analytics in one Moodle site
- exclude tracking of admin users
## Supported Web Analytics Tools
The plugin currently supports following analytics tools.
### Matomo (formerly Piwik)
- Set the Site ID
- Choose whether you want image fallback tracking
- Enter the URL to your Matomo install excluding http/https and trailing slashes
- Choose whether you want to track admins (not recommended)
- Choose whether you want to send Clean URLs (recommended): Matomo will aggregate Page Titles and show a nice waterfall cascade of all sites,
- Set alternative piwik.js URL for any purpose
including categories and action types
- Optional tracking for User ID
- User ID could be id or username
### Google Universal Analytics
- Plugin modifies the page speed sample to have 50% of your visitors samples for page speed instead of 1% making it much more useful
- Set your Google tracking ID
- Choose whether you want to track admins (not recommended)
- Choose whether you want to send Clean URLs (not recommended): Google analytics will no longer be able to use overlays and linking back to your Moodle site
- Choose whether you want to send User ID reference
- Choose whether you want to anonymize the IP address of the hit sent to Google Analytics
### Google Tag Manager
- Tag Manager adds Analytics page view tags, AdWords Conversion Tracking tags, and others in the Tag Manager user interface.
- Set your Tag Manager Container ID tracking ID
- Choose whether you want to track admins
### Google Legacy Analytics (soon deprecated by Google)
- Plugin modifies the page speed sample to have 50% of your visitors samples for page speed instead of 1% making it much more useful
- Set your Google tracking ID
- Choose whether you want to track admins (not recommended)
- Choose whether you want to send Clean URLs (not recommended): Google analytics will no longer be able to use overlays and linking back to your Moodle site
## Developer notes
All Web Analytics tools has implemented as Moodle subplugins. If you require to support a new web analytics tool, then add a new subplugin to "tool" folder. See existing subplugins as a code example.
# Crafted by Catalyst IT
This plugin was developed by Catalyst IT Australia:
https://www.catalyst-au.net/

# Contributing and Support
Issues, and pull requests using github are welcome and encouraged!
https://github.com/catalyst/moodle-tool_webanalytics/issues
If you would like commercial support or would like to sponsor additional improvements
to this plugin please contact us:
https://www.catalyst-au.net/contact-us