agoat/contao-matomo

Contao 4 的 Matomo 统计

1.3.1 2020-01-06 11:56 UTC

This package is not auto-updated.

Last update: 2024-09-24 10:30:04 UTC


README

Version License Downloads

现在兼容 Contao 4.4 LTS 和 4.8(最新版本)!!

关于

轻松将 Matomo 统计添加到您的 Contao 网站。只需在根页面上激活 Piwik 跟踪并设置所需参数即可。

有关 Matomo 的更多信息,请访问他们的网页。

注意

当将命名从 piwik 更改为 matomo 时,数据库字段的名称也发生了变化。因此,在更新到 1.3.* 时,某些设置可能会丢失!!

要求

Matomo(以前称为 piwik)是一个 'Open Analytics Platform'。跟踪将保存在 Contao 之外。

需要一个公开可用的 Matomo/Piwik 安装(自托管或云托管均可)。

安装

Contao 管理器

搜索该软件包并安装

agoat/contao-matomo

管理版

添加该软件包

# Using the composer
composer require agoat/contao-matomo

注册和配置将由管理插件自动完成。

标准版

添加该软件包

# Using the composer
composer require agoat/contao-matomo

在 AppKernel 中注册该软件包

# app/AppKernel.php
class AppKernel
{
    // ...
    public function registerBundles()
    {
        $bundles = [
            // ...
            // after Contao\CoreBundle\ContaoCoreBundle
            new Agoat\MatomoBundle\AgoatMatomoBundle(),
        ];
    }
}