vz777 / hook-matomo-analytics
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 3
Type:thelia-module
pkg:composer/vz777/hook-matomo-analytics
Requires
- matomo/matomo-php-tracker: ~3.3.2
- thelia/installer: ~1.1
This package is not auto-updated.
Last update: 2025-11-14 21:36:35 UTC
README
This module implements Matomo user and e-commerce tracking into Thelia. It reports the following tracking events:
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. This includes Content Tracking and User ID Tracking for logged in customers.
E-commerce Tracking
Additional to the user tracking, these e-commerce events are tracked:
- Tracking Ecommerce Orders & Items Purchased
- Tracking Add to Cart & Items Added to the Cart
- Tracking Product Page Views & Category Page Views
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.
Manual Installation
- Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the folder is
HookPiwikAnalyticsor - use the
Install or update a modulefunctionality 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
„We build it“ — ANIMAL