Matomo Widget for Statamic
Installation
Install via the Control Panel or via composer
composer require jeroenpeters1986/statamic-matomo-widget
Add environment variables
Add the following to your .env
file:
MATOMO_URL=https://your-matomo-urlMATOMO_SITE_ID=1MATOMO_API_TOKEN=your-token-auth
Enable Widget
Add widget to control panel configuration config/statamic/cp.php
file.
e.g:
[ 'type' => 'matomo', 'width' => 50,],
Do your own customizations
You can publish the config file with the following command:
php artisan vendor:publish --tag=statamic-matomo-widget
This will create a config/statamic-matomo-widget.php
file where you can customize the widget.
Support
I love to share with the community. Nevertheless, coding/learning/updating takes a lot of work, time and effort. You can contact me through my personal site https://jeroenpeters.com/contact, or if you have any issues with this package, please create an issue on GitHub.
If you like my software, feel free to buy me a coffee or two with Ko-Fi
Changelog
1.0.2
Updated docs, reverted the viewNamespace, merged config
1.0.1
Added loading-stuff
1.0.0
First version
License
This plugin is published under the MIT license.
Other..
Disclaimer
This add-on is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Matomo / Piwiki, or any of its subsidiaries or its affiliates. This add-on merely enables users to easily access their stats.
Requirements
- PHP 7.4 or 8.0
- Laravel 7 or 8
- Statamic 3.3+ (also includes Statamic v4 and v5)
I chose not to enforce these requirements in the composer.json, as it will probably stay compatible with newer versions of Statamic.