PHPackages                             vz777/hook-matomo-analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. vz777/hook-matomo-analytics

ActiveThelia-module

vz777/hook-matomo-analytics
===========================

04PHP

Since Nov 14Pushed 6mo agoCompare

[ Source](https://github.com/vz777/thelia-matomo)[ Packagist](https://packagist.org/packages/vz777/hook-matomo-analytics)[ RSS](/packages/vz777-hook-matomo-analytics/feed)WikiDiscussions vz777-patch-1 Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Matomo Analytics integration for Thelia E-Commerce
==================================================

[](#matomo-analytics-integration-for-thelia-e-commerce)

[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](https://camo.githubusercontent.com/be48b0fc9cc48ea43f28c3fa9b40f1f996876ec42208998c0d372c71c2854167/687474703a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f6163746976652e737667)](http://www.repostatus.org/#active)

This module implements [Matomo](http://matomo.org) user and e-commerce tracking into [Thelia](http://thelia.net). It reports the following tracking events using Matomo Tag Manager (MTM):

User Tracking
-------------

[](#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
-------------------

[](#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](http://piwik.org/docs/ecommerce-analytics) for more information.

Note that the cart and order tracking uses the [PHP Client for Matomo Analytics Tracking API](https://github.com/matomo-org/matomo-php-tracker) to communicate with Matomo. This events are still tracked, even if the Matomo JavaScript tracker is blocked by an ad or privacy blocker.

Installation
------------

[](#installation)

Before installing this module, make sure, that [e-commerce tracking is enabled](http://piwik.org/docs/ecommerce-analytics/#enable-ecommerce-tracking) in Matomo for the site you want to use. Then configure [tag, triggers, Data Layer](https://ronan-hello.fr/series/matomo/ecommerce-matomo-tag-manager) (for product &amp; category tracking)

### Manual Installation

[](#manual-installation)

- Copy the module into &lt;thelia\_root&gt;/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)

`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
-----

[](#about)

This module is a fork of the original work  by [ANIMAL](http://animal.at).
We thank them for the original implementation and inspiration.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance47

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3d314eb558149d90ad75f71d3b39c4e95f12bfea221fb77d45edf4e46440f9b?d=identicon)[vz777](/maintainers/vz777)

---

Top Contributors

[![madc](https://avatars.githubusercontent.com/u/343392?v=4)](https://github.com/madc "madc (16 commits)")[![vz777](https://avatars.githubusercontent.com/u/16600297?v=4)](https://github.com/vz777 "vz777 (1 commits)")

### Embed Badge

![Health badge](/badges/vz777-hook-matomo-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/vz777-hook-matomo-analytics/health.svg)](https://phpackages.com/packages/vz777-hook-matomo-analytics)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
