Server side Matomo tracker using PHP class PiwikTracker: https://matomo.org/docs/tracking-api/
Requirements
- Must have a running and configured matomo server.
Installation
-
Install the plugin Acte.MatomoPhpTracker
-
Go to System Settings Matomo and set:
- Matomo server url
- Website id
- Access token
-
Add ServerSide component in a page or layout
Description
Server side Matomo tracker using php class PiwikTracker: https://matomo.org/docs/tracking-api/
- Read advantages and inconvenients of a server side tracking system on http://matomo.org
- Tracking is automatically disabled when backend user is connected.
- If Rainlab.User is installed, user id will be passed to Matomo.
Settings
Set url, siteid and token from your matomo analytics server.
Usage
- Simply add ServerSide component to your layout or page.
To know more about PHP Tracker PHP class:
Bugs/Improvement
Please report and post improvement ideas.
-
This plugin has not been reviewed yet.
-
1.0.3 |
Updated tracker to version 3.0 and added consent mode. Thanks to DavidHemmerle. Jan 26, 2021 |
---|---|
1.0.2 |
Added ApiTracker middleware. Moved serverSide component logic to classes/TrackerHelper.php Jan 01, 2020 |
1.0.1 |
Initialize plugin. Jan 07, 2019 |