PHPackages                             animal/hook-piwik-analytics-module - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. animal/hook-piwik-analytics-module

ActiveThelia-module[Utility &amp; Helpers](/categories/utility)

animal/hook-piwik-analytics-module
==================================

1.0.0(9y ago)2303[1 issues](https://github.com/AnimalDesign/thelia-piwik-analytics/issues)MITPHP

Since Apr 12Pushed 9y ago2 watchersCompare

[ Source](https://github.com/AnimalDesign/thelia-piwik-analytics)[ Packagist](https://packagist.org/packages/animal/hook-piwik-analytics-module)[ RSS](/packages/animal-hook-piwik-analytics-module/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

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

[](#piwik-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 [Piwik](http://piwik.org) user and e-commerce tracking into [Thelia](http://thelia.net). It reports the following tracking events:

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

[](#user-tracking)

This module uses the `main.body-bottom` hook to include the piwik javascript bug into the frontend of a Thelia installation. Most user activities can therefor be tracked. This includes [Content Tracking](http://piwik.org/docs/content-tracking/) and [User ID Tracking](http://piwik.org/docs/user-id/) for logged in customers.

E-commerce Tracking
-------------------

[](#e-commerce-tracking)

Additional to the user tracking, these e-commerce events are tracked:

- Tracking Ecommerce Orders &amp; Items Purchased
- Tracking Add to Cart &amp; Items Added to the Cart
- Tracking Product Page Views &amp; Category Page Views

Have a look at the [Piwik 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 Piwik Analytics Tracking API](https://github.com/piwik/piwik-php-tracker) to communicate with Piwik. This events are still tracked, even if the Piwik 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 Piwik for the site you want to use.

### 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 `HookPiwikAnalytics` **or**
- use the `Install or update a module` functionality in the modules section of the Thelia back office

### Composer

[](#composer)

`composer require animal/hook-piwik-analytics-module`

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)

„We build it“ — [ANIMAL](http://animal.at)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~208 days

Total

2

Last Release

3522d ago

Major Versions

0.1.0 → 1.0.02016-11-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/198047?v=4)[animal](/maintainers/animal)[@animal](https://github.com/animal)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/animal-hook-piwik-analytics-module/health.svg)

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

PHPackages © 2026

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