Skip to main content

datasette-matomo

PyPI Changelog Tests License

Datasette plugin that adds Matomo Web Analytics JavaScript tracking code to a Datasette application.

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-matomo

Usage

Make your configuration available to the Datasette process as environment variables:

DATASETTE_MATOMO_SERVER_URL=https://example.com/
DATASETTE_MATOMO_SITE_ID=1

The server URL must include a final slash.

If you use datasette publish:

datasette publish heroku example.db --install datasette-matomo \
    --plugin-secret datasette-matomo server_url http://example.com/ \
    --plugin-secret datasette-matomo site_id 1

Note: not all datasette publish providers currently support the --plugin-secret option.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-matomo
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for datasette-matomo 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-matomo 0.1.2
File Size Uploaded Provenance Actions
datasette-matomo-0.1.2.tar.gz 7.4 kB Without provenance Details for datasette-matomo-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-matomo 0.1.2
File Interpreter ABI Platform Actions
datasette_matomo-0.1.2-py3-none-any.whl Python 3 none any Details for datasette_matomo-0.1.2-py3-none-any.whl

Total release size: 14.8 kB

Release files / datasette-matomo-0.1.2.tar.gz

Download URL datasette-matomo-0.1.2.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e7ff3231be1672ec91b11cf5b41b2b6e48fe0d6ec89837c2824d5bbc38518262
BLAKE2b-256 checksum
How to use checksums
e366d788d8600d7e8e22a0fc877394ad97024528403699f2fecb77f1160bb809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / datasette_matomo-0.1.2-py3-none-any.whl

Download URL datasette_matomo-0.1.2-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb749fdb1d342cdcce6014a25f1db78ab319e849eabc40c717d6d9b7b36eea0e
BLAKE2b-256 checksum
How to use checksums
b19cb92a45e0053ea330f84fa64908aebcbb0e5a754e6dbf5cb0b333060c00ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for datasette-matomo 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page