定制 aimeos/laravel-analytics-matomo 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Open your Matomo instance in a web browser.
  2. Enter your username and password to log in.

2. Access Your User Settings

  1. Click on your username in the top-right corner of the dashboard.
  2. Select “Settings” (or “Personal” depending on Matomo version).

3. Find the API Token

  1. In the Settings page, look for the section labeled “API” or “API Access”.
  2. You will see a field called “Your API token” or token_auth.
  3. 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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-2.1
  • 更新时间: 2025-09-03