承接 vz777/hook-matomo-analytics 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vz777/hook-matomo-analytics

Composer 安装命令:

composer require vz777/hook-matomo-analytics

包简介

README 文档

README

Project Status: Active - The project has reached a stable, usable state and is being actively developed.

This module implements Matomo user and e-commerce tracking into Thelia. It reports the following tracking events using Matomo Tag Manager (MTM):

User Tracking

This module uses the main.body-bottom hook to include the matomo javascript bug into the frontend of a Thelia installation. Most user activities can therefor be tracked. All tracking is done via MTM, allowing the use of custom events and Data Layer variables for more flexible reporting.

E-commerce Tracking

In addition to user tracking, these e-commerce events are tracked through MTM Data Layer events:

  • Product page views (view_item)
  • Category page views (view_item_list)

The Data Layer is compatible with GA4-style structures, exposing product and category information dynamically to MTM.

Have a look at the Matomo e-commerce analytics docs for more information.

Note that the cart and order tracking uses the PHP Client for Matomo Analytics Tracking API to communicate with Matomo. This events are still tracked, even if the Matomo JavaScript tracker is blocked by an ad or privacy blocker.

Installation

Before installing this module, make sure, that e-commerce tracking is enabled in Matomo for the site you want to use. Then configure tag, triggers, Data Layer (for product & category tracking)

Manual Installation

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the folder is HookMatomoAnalytics or
  • use the Install or update a module functionality in the modules section of the Thelia back office

Composer

composer require vz777/hook-matomo-analytics

After finishing the installation, activate the module in the modules section of the back office and fill in Piwik URL and Website ID.

About

This module is a fork of the original work https://github.com/AnimalDesign/thelia-piwik-analytics by ANIMAL.
We thank them for the original implementation and inspiration.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-14