aimeos / laravel-analytics-matomo
Matomo Analytics driver for Laravel Analytics Bridge
dev-master
2025-09-12 08:00 UTC
Requires
- php: ^8.2
- aimeos/laravel-analytics-bridge: ~1.0||dev-master
This package is auto-updated.
Last update: 2025-09-12 08:00:46 UTC
README
Matomo driver for Laravel Analytics bridge.
For API access, you need the API token from Matomo to authenticate API requests and access data programmatically. Follow these steps to retrieve it.
1. Log in to Matomo
- Open your Matomo instance in a web browser.
- Enter your username and password to log in.
2. Access Your User Settings
- Click on your username in the top-right corner of the dashboard.
- Select “Settings” (or “Personal” depending on Matomo version).
3. Find the API Token
- In the Settings page, look for the section labeled “API” or “API Access”.
- You will see a field called “Your API token” or
token_auth
. - Copy the token. It typically looks like a long alphanumeric string.
4. Configure in Analytics Bridge
The ./config/analytics-bridge.php
file already contains:
return [ 'default' => env('ANALYTICS_DRIVER'), 'drivers' => [ 'matomo' => [ 'url' => env('MATOMO_URL'), 'token' => env('MATOMO_TOKEN'), 'siteid' => env('MATOMO_SITEID'), ], /* ... */ ], /* ... */ ];
Add the required key/value pairs to your .env
file:
ANALYTICS_DRIVER="matomo"
MATOMO_URL="..." # including "https://"
MATOMO_TOKEN="..."
MATOMO_SITEID="1" # or other value if you have multiple sites