Skip to main content

Adds Google Analytics capabilities to Pretix

Project description

This is a plugin for pretix.

Adds Google Analytics capabilities to Pretix.

Just a development version base, do not use in production as-is as it could expose sensitive data & doesn’t support consent.

See pretix-tracking-codes for an officially supported solution.

Kudos to pretix-gtm - this code is inspired by theirs.

Development setup

  1. Make sure that you have a working pretix development setup.

  2. Clone this repository.

  3. Activate the virtual environment you use for pretix development.

  4. Execute python setup.py develop within this directory to register this application with pretix’s plugin registry.

  5. Execute make within this directory to compile translations.

  6. Restart your local pretix server. You can now use the plugin from this repository for your events by enabling it in the ‘plugins’ tab in the settings.

This plugin has CI set up to enforce a few code style rules. To check locally, you need these packages installed:

pip install flake8 isort black

To check your plugin for rule violations, run:

black --check .
isort -c .
flake8 .

You can auto-fix some of these issues by running:

isort .
black .

To automatically check for these issues before you commit, you can run .install-hooks.

License

Copyright 2024 Daniel Malik

Released under the terms of the Apache License 2.0

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

pretix-ga-1.2.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

pretix_ga-1.2.3-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pretix-ga-1.2.3.tar.gz.

File metadata

  • Download URL: pretix-ga-1.2.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pretix-ga-1.2.3.tar.gz
Algorithm Hash digest
SHA256 e68f229876201a74df0ef376afa33383e52dba3b0774412d2e9c6b11009350e2
MD5 7c0133ebcf3fcb8de4bd2e041791566c
BLAKE2b-256 50c44eca411838f33c9013d1f24d4484eb9976d902d723fa5d7f5715b79be126

See more details on using hashes here.

File details

Details for the file pretix_ga-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: pretix_ga-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.9

File hashes

Hashes for pretix_ga-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf00cf1037c4af994ec630556de884e92335c27b653b8f657ee428195ff54c1b
MD5 d8499993bd5b64f7d9d582eb3bc75c0a
BLAKE2b-256 5fbc8f7f3586803800ba6f91cb7392ac39ce89fb1dfe9542d684563b75ca4d71

See more details on using hashes here.

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