pagemachine/typo3-matomo-tracking

Server-side Matomo Tracking in TYPO3 with emphasis on privacy: consentless tracking, GDPR/TDDDG-compliant, respects DNT/GPC

Installs: 304

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 2

Type:typo3-cms-extension

1.6.2 2025-04-24 07:17 UTC

README

Server-side tracking of TYPO3 events (e.g. page views) in Matomo.

Installation

composer require pagemachine/typo3-matomo-tracking

Setup

  1. Fill the matomo_tracking Extension Configuration:
  2. Set the Matomo site ID (matomoTrackingSiteId) in the settings of each TYPO3 site

It is recommended to configure a sane HTTP timeout like 3 seconds. This ensures pages load quickly in case a Matomo instance is not responding. Tracking will be skipped in this case.

Page view tracking

By default page views will be tracked with the final page title and the current URL. The previous URL (referrer) will also be tracked if possible.

Download tracking

Clicks on file links can be tracked as downloads. This optional feature must be enabled explicitly in the Extension Configuration through the Track downloads (features.downloadTracking) option.

This will rewrite all file links to an internal handler which tracks the request and redirects to the actual files. This should be tested well before using it in production, especially in relation to other TYPO3 packages which adjust file URLs.

Action/attribute adjustments

Actions are tracked in Matomo with suitable attributes. To adjust or override these, you can add custom action factories.