thelia/matomo-manager-module
最新稳定版本:1.0.1
Composer 安装命令:
composer require thelia/matomo-manager-module
包简介
README 文档
README
This module is made to use the Matomo Tag Manager.
Installation
Composer
Add it in your main thelia composer.json file
composer require thelia/matomo-manager-module:~1.0
Usage
First you need to install an instance of matomo (see here https://github.com/matomo-org/matomo).
Then you need to go to MatomoManager configuration page (https://<your_domain>/admin/module/MatomoManager)
and configure the module with the data your instance matomo gives you.
This will generate both the head script and the body no-script tags and insert them in the main.head-top and
in the main.body-top hooks.
If these hooks are not present in your template, you'll need to add them beforehand.
You must add main.footer-bottom hook or implement a button in all your pages to allow customers to cancel their consent to matomo tracking.
Example :
<a href="javascript:removeConsent()">{intl l="I do not want to be tracked anymore"}</a>
Migration form version 1.0 to 2.0
This module no longer needs the whole script, just add the GTM id in the Thelia administration panel.
The main.head-top hook should be present as it was used in 1.0 but you'll need to check the main.body-top one.
If you had the noscript block in your template, you have to remove it as it will now be handled by this module.
统计信息
- 总下载量: 116
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2023-05-23