webexmachina / contao-matomo-analytics
Contao Matomo Analytics Bundle
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:CSS
Type:contao-bundle
Requires
- php: ^8.2
- contao/core-bundle: 5.*
- webexmachina/contao-utils: ^2.2
Requires (Dev)
- contao/contao-rector: dev-main
- contao/easy-coding-standard: @stable
- contao/manager-plugin: @stable
- phpstan/phpstan: @stable
- rector/rector: @stable
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
This package is auto-updated.
Last update: 2025-06-09 13:24:40 UTC
README
The Contao Matomo Analytics Bundle integrates Matomo (formerly Piwik) analytics directly into your Contao CMS backend using an external instance.
Warning
This bundle is not compatible with Contao 4
Features
- Automatically add the tracking code: No need to manually add the tracking code to your website.
- Seamless Matomo Integration: Connect your Contao website to your Matomo analytics instance
- Backend Dashboard: View key analytics metrics directly in your Contao backend
- Support for Multiple Websites : Each root page can be associated with a different Matomo instance and/or website.
Requirements
- PHP 8.2 or higher
- Contao 5.x
- A running Matomo instance with API access
- Matomo API token with sufficient permissions
Installation
Via Composer (recommended)
composer require webexmachina/contao-matomo-analytics
Via Contao Manager
- Search for "contao matomo analytics" in the Contao Manager
- Click on "Add"
- Apply the changes and update the database
Via ZIP file
- Download the latest release from the GitHub repository
- Extract the ZIP file
- Copy the extracted files to the
vendor/webexmachina/contao-matomo-analytics
directory of your Contao installation - Update the composer.json file manually or run the Contao Install Tool
Configuration
- Log in to your Contao backend
- Navigate to a root page in the page structure and click on the pen icon.
- Configure the Matomo analytics settings for the page:
- Matomo URL: The URL of your Matomo instance (e.g., https://analytics.example.com)
- Matomo API Key: Your Matomo API authentication token
- Save the configuration, after the refresh, the list will propose all the available websites choose one and save.
Usage
Once configured, you can access the analytics dashboard for each root page by:
- Navigating to the page structure in the Contao backend
- Clicking on the "Analytics" icon next to the page
The dashboard provides:
- Overview of key metrics for the last 30 days
- Detailed breakdown of visitor information
- Device and language statistics
- Conversion and referrer data
- A link to the full Matomo dashboard for more detailed analysis
GDPR compliance
This bundle is only compatible with Matomo, once set up. It will always activate audience tracking.
The bundle assumes that the Matomo instance is configured to respect the privacy of European users. When a Matomo instance is correctly configured, the use of a cookie banner is not an obligation.
Matomo : Analytics without consent or cookie banner
Known Issues
I don't see the button in the list of root page actions.
Disable your ad blocker.
Support
If you encounter any issues or have feature requests, please create an issue on the GitHub repository.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.