A simple app to add the Matomo JS tracking code to your template. Forked from `django-piwik`.
Project description
# Django-Matomo
A simple app to add the Matomo JS tracking code to your template.
Forked from [django-piwik](https://github.com/jasjukaitis/django-piwik) (legacy) by Raphael Jasjukaitis [jasjukaitis](https://github.com/jasjukaitis).
django-piwik is metioned as an official Django plugin for Matomo: https://matomo.org/integrate/
## Requirements
Django
## Installation
Using PyPI you can simply type into a terminal:
` pip install django-matomo ` or
` easy_install django-matomo `
## Configuration
Add matomo to the list of INSTALLED_APPS in your settings.py file.
Also MATOMO_SITE_ID (e.g. 51) and MATOMO_URL (e.g. 'http://matomo.example.com/', please don’t forget the trailing slash!) are required.
In the template, put {% load matomo_tags %} to the top and add {% tracking_code %} before the </body> tag.
That’s it. Happy tracking!
## Uploading to PyPi
Instructions at [this(https://towardsdatascience.com/how-to-upload-your-python-package-to-pypi-de1b363a1b3) Medium post by [Giorgos Myrianthous](https://gmyrianthous.medium.com/).
In short:
`bash python setup.py sdist twine upload dist/* `
## Author(s)
Copyright 2022 Mikolaj Buchwald <mikolaj.buchwald@gmail.com>
as django-piwik: Copyright 2013 Raphael Jasjukaitis <webmaster@raphaa.de>
Released under the BSD license.
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
File details
Details for the file django-matomo-0.1.2.tar.gz
.
File metadata
- Download URL: django-matomo-0.1.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e5af3fa95d6a65cd55ce6d0493fe0142455c81fc5efa2a90af48989bda801b6 |
|
MD5 | ba85d70febb4345e3ecac7d35228b15a |
|
BLAKE2b-256 | 95017934ed98008094417ac4e2137fbdf4129eed998d4492fd33c61f71e32df8 |