PHPackages                             cv-chameleon/laravel-matomo-tracker - 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. cv-chameleon/laravel-matomo-tracker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cv-chameleon/laravel-matomo-tracker
===================================

A Laravel facade/wrapper for the matomo/matomo-php-tracker for server side Matomo tracking.

1.0.1(1y ago)25.0k2[1 PRs](https://github.com/cv-chameleon/laravel-matomo-tracker/pulls)PHP

Since Sep 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/cv-chameleon/laravel-matomo-tracker)[ Packagist](https://packagist.org/packages/cv-chameleon/laravel-matomo-tracker)[ Docs](https://github.com/cv-chameleon/laravel-matomo-tracker)[ RSS](/packages/cv-chameleon-laravel-matomo-tracker/feed)WikiDiscussions main Synced 1mo ago

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

LaravelMatomoTracker
====================

[](#laravelmatomotracker)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3044ce0ff37a8ee46dda324868cc5091f2beb876944f233135fb11e9ce99b638/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63762d6368616d656c656f6e2f6c61726176656c2d6d61746f6d6f2d747261636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cv-chameleon/laravel-matomo-tracker)[![Total Downloads](https://camo.githubusercontent.com/95ad73e29bc7b0e1dc7b36b14af1325ccb6d728f22b832dcee6ebf06d22e04a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63762d6368616d656c656f6e2f6c61726176656c2d6d61746f6d6f2d747261636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cv-chameleon/laravel-matomo-tracker)

About
-----

[](#about)

The `cv-chameleon\laravel-matomo-tracker` Laravel package is a wrapper for the `piwik\piwik-php-tracker`. The Piwik php tracker allows serverside tracking.

Features
--------

[](#features)

- LaravelMatomoTracker Facade
- Queued tracking requests in Laravel queue

Feel free to suggest new features.

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

[](#installation)

Via Composer

Require the `cv-chameleon\laravel-matomo-tracker` package in your `composer.json` and update your dependencies:

```
$ composer require cv-chameleon/laravel-matomo-tracker
```

Publish the config file (optional)

Run `php artisan vendor:publish` to publish the config file if needed.

```
$ php artisan vendor:publish
```

Update your `.env`

Add these variables to your `.env` file and configure it to fit your environment.

```
[...]
MATOMO_URL="https://your.matomo-install.com"
MATOMO_SITE_ID=1
MATOMO_AUTH_TOKEN="00112233445566778899aabbccddeeff"
MATOMO_QUEUE="matomotracker"
MATOMO_QUEUE_CONNECTION="default"
[...]
```

That's it!

Usage
-----

[](#usage)

You can use the facade to track.

```
LaravelMatomoTracker::doTrackPageView('Page Title')
```

### Tracking

[](#tracking)

#### Basic functionality

[](#basic-functionality)

Please see the  page for basic method documentation.

Additionally there are some Methods to simplyfy the usage:

```
// instead of using
LaravelMatomoTracker::doTrackAction($actionUrl, 'download') // or
LaravelMatomoTracker::doTrackAction($actionUrl, 'link')

// you can use this
LaravelMatomoTracker::doTrackDownload($actionUrl);
LaravelMatomoTracker::doTrackOutlink($actionUrl);
```

#### Queues

[](#queues)

For queuing you can use these functions.

```
LaravelMatomoTracker::queuePageView(string $documentTitle)
LaravelMatomoTracker::queueEvent(string $category, string $action, $name = false, $value = false)
LaravelMatomoTracker::queueContentImpression(string $contentName, string $contentPiece = 'Unknown', $contentTarget = false)
LaravelMatomoTracker::queueContentInteraction(string $interaction, string $contentName, string $contentPiece = 'Unknown', $contentTarget = false)
LaravelMatomoTracker::queueSiteSearch(string $keyword, string $category = '',  $countResults = false)
LaravelMatomoTracker::queueGoal($idGoal, $revencue = 0.0)
LaravelMatomoTracker::queueDownload(string $actionUrl)
LaravelMatomoTracker::queueOutlink(string $actionUrl)
LaravelMatomoTracker::queueEcommerceCartUpdate(float $grandTotal)
LaravelMatomoTracker::queueEcommerceOrder(float $orderId, float $grandTotal, float $subTotal = 0.0, float $tax = 0.0, float $shipping = 0.0,  float $discount = 0.0)
LaravelMatomoTracker::queueBulkTrack()
```

For setting up queues, find the documentation on .

### Settings

[](#settings)

Have a look in the  page for basic settings documentation.

Additionaly these settings are available:

```
LaravelMatomoTracker::setCustomDimension(int $id, string $value) // only applicable if the custom dimensions plugin is installed on the Matomo installation
LaravelMatomoTracker::setCustomDimensions([]) // array of custom dimension objects {id: , value: } // bulk insert of custom dimensions and basic type checking
LaravelMatomoTracker::setCustomVariables([]) // array of custom variable objects {id: , name: , value: , scope: } // bulk insert of custom variables and basic type checking
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please report in the issue tracker.

License
-------

[](#license)

BSD-3-Clause. Please see the [license file](license.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~279 days

Total

2

Last Release

678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/206afe6870aef9d93415e951d18591f1ffc3db2d47640e4a1be0a731edff3ee9?d=identicon)[cv-chameleon](/maintainers/cv-chameleon)

---

Top Contributors

[![cv-chameleon](https://avatars.githubusercontent.com/u/5821549?v=4)](https://github.com/cv-chameleon "cv-chameleon (6 commits)")[![Shonetow](https://avatars.githubusercontent.com/u/4283547?v=4)](https://github.com/Shonetow "Shonetow (1 commits)")

---

Tags

laravelpiwikserver side trackingMatomo PHP TrackerPiwik PHP Tracker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cv-chameleon-laravel-matomo-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/cv-chameleon-laravel-matomo-tracker/health.svg)](https://phpackages.com/packages/cv-chameleon-laravel-matomo-tracker)
```

###  Alternatives

[alfrasc/laravel-matomo-tracker

A Laravel facade/wrapper for the matomo/matomo-php-tracker for server side Matomo tracking.

1923.9k](/packages/alfrasc-laravel-matomo-tracker)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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