Django app to track webtraffic serverside with Matomo API
Project description
Django Matomo API Tracking
This django app enables server side traffic tracking. The code is greatly inspired by the Django Google Analytics app.
Installation
- Install
django-matomo-api-trackingfrom pypi usingpip install django-matomo-api-tracking
Setup / Configuration
-
add
matomo_api_trackingto yourINSTALLED_APPSsetting. -
add a new variable
MATOMO_API_TRACKINGto your settings to configure the behaviour of the app:MATOMO_API_TRACKING = { 'url': 'https://your-matomo-server.com/matomo.php', 'site_id': <your_site_id>, # 'ignore_paths': ["/debug/", "/health/"], # 'token_auth': "", # e.g. "33dc3f2536d3025974cccb4b4d2d98f4" # 'timeout': 8, }
-
enable the middleware by adding the matomo_api_tracking middleware to the list of enabled middlewares in the settings:
MIDDLEWARE = [ ... 'matomo_api_tracking.middleware.MatomoApiTrackingMiddleware', ]
In the settings part, the ignore_path can be used to entirely skip certain
paths from being tracked. If you specify an token_auth, the app will also send
the client's IP address (cip parameter). But this is not required. Additionally,
you can specify a timeout for the requests for middleware sent tracking data.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_matomo_api_tracking-0.2.0.tar.gz.
File metadata
- Download URL: django_matomo_api_tracking-0.2.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c50a0669541c361a2b3d2c2e0597561af9a781ac1101f1dd588f6ee8b76e836
|
|
| MD5 |
d429a09de74331dc5677dddd8d117ed0
|
|
| BLAKE2b-256 |
df2df4e6d88c2c24680ec21af79980abec49d3ddaaf494d22feec9e2a27eb296
|
Provenance
The following attestation bundles were made for django_matomo_api_tracking-0.2.0.tar.gz:
Publisher:
ci.yaml on DessimozLab/django-matomo-api-tracking
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_matomo_api_tracking-0.2.0.tar.gz -
Subject digest:
8c50a0669541c361a2b3d2c2e0597561af9a781ac1101f1dd588f6ee8b76e836 - Sigstore transparency entry: 541233388
- Sigstore integration time:
-
Permalink:
DessimozLab/django-matomo-api-tracking@d7406acd64c3c71e4cdc4f2598bb63119d582d3a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/DessimozLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@d7406acd64c3c71e4cdc4f2598bb63119d582d3a -
Trigger Event:
push
-
Statement type:
File details
Details for the file django_matomo_api_tracking-0.2.0-py3-none-any.whl.
File metadata
- Download URL: django_matomo_api_tracking-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a710bf2e53d75a3996d7c41614630ab7a33d54e5bec7a69014d9428479714409
|
|
| MD5 |
d20d889ba4a862452506396e21c0fdde
|
|
| BLAKE2b-256 |
c5a04e8b21b0167bd4d30bcb8865fc8b8378b43913fb4aa4f009e094cba34838
|
Provenance
The following attestation bundles were made for django_matomo_api_tracking-0.2.0-py3-none-any.whl:
Publisher:
ci.yaml on DessimozLab/django-matomo-api-tracking
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
django_matomo_api_tracking-0.2.0-py3-none-any.whl -
Subject digest:
a710bf2e53d75a3996d7c41614630ab7a33d54e5bec7a69014d9428479714409 - Sigstore transparency entry: 541233390
- Sigstore integration time:
-
Permalink:
DessimozLab/django-matomo-api-tracking@d7406acd64c3c71e4cdc4f2598bb63119d582d3a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/DessimozLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@d7406acd64c3c71e4cdc4f2598bb63119d582d3a -
Trigger Event:
push
-
Statement type: