Skip to main content

A simple app to add the Matomo JS tracking code to your template. Forked from `django-piwik`.

Project description

A simple app to add the Matomo JS tracking code to your template.

Forked from django-piwik (legacy) by Raphael Jasjukaitis jasjukaitis.

django-piwik is metioned as an official Django plugin for Matomo:


  • Django


Using PyPI you can simply type into a terminal:

pip install django-matomo


easy_install django-matomo


Add matomo to the list of INSTALLED_APPS in your file.

Also MATOMO_SITE_ID (e.g. 51) and MATOMO_URL (e.g. '', 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

Article on Medium (Towards Data Science) on how to upload packages to PyPi.

In short:

python sdist

twine upload dist/*

Version history

  • Main changes were introduced in 0.1 version of the package.

  • Versions up to 0.1.4 are mainly formatting changes for the RST README format.

  • Version 0.1.5 information on uploading to PyPi added to the README. Minor formatting changes.


Copyright 2022 Mikolaj Buchwald <>

as django-piwik: Copyright 2013 Raphael Jasjukaitis <>

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

django-matomo-0.1.5.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page