How to install?
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,],