Add Matomo Web Analytics tracking code to Datasette
Project description
datasette-matomo
Add Matomo Web Analytics JavaScript tracking code to Datasette.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datasette-matomo-0.1.0.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for datasette_matomo-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1142ed75241bfec536ef68b069c78c74d2815027c7c38c9804fc67853a58c0a |
|
MD5 | ca188c3e3803fde0ab3b204d6ef2bc6a |
|
BLAKE2b-256 | d778fa4cde66583c6d964c1813eb8174d1d6a26a59241da8cce3b6900f9ad4e8 |