aimeos/laravel-analytics-matomo
最新稳定版本:1.0.1
Composer 安装命令:
composer require aimeos/laravel-analytics-matomo
包简介
Matomo Analytics driver for Laravel Analytics Bridge
README 文档
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
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1
- 更新时间: 2025-09-03