Skip to main content

pretix-tracking-scripts

PyPI version License codecov

This plugin for pretix enables the addition of tracking scripts, including Google Analytics and Meta Pixel, to your store. It supports cookie consent but does not hide sensitive URLs, unlike the official pretix solution.

Installation

  1. Install the plugin:

    pip install pretix-tracking-scripts
    
  2. Enable the plugin on your event page.

  3. Once enabled, a new Settings link will appear in the event settings side-navigation bar. Use this to configure your tracking scripts:

    • Enter a Google Analytics Measurement ID.
    • Enter a Meta Pixel dataset ID.

    Tracking scripts are only included when a value is provided.

[!IMPORTANT] This plugin does not specify any pretix version constraints. It is intended to remain compatible with future pretix releases, and adding explicit version limits would unnecessarily restrict where it can be used. The plugin has been explicitly tested with pretix 2025.10.1. If you encounter any issues when using it with a later pretix release, please open an issue on this repository.

Development

  1. Ensure you have a working pretix development setup.

  2. Clone this repository.

  3. Install the plugin and dependencies:

    poetry install
    

If Pretix is not running within a virtual Python environment, or if your plugin and Pretix are operating in separate environments, you may want to install this plugin globally using the following command:

pip install -e .

Code Styling

To automate code styling, run the following commands:

poetry run isort .
poetry run black .

Automated Testing

To execute the automated tests, run the following command:

poetry run py.test tests

Metadata

Release files for pretix-tracking-scripts 1.0.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 pretix-tracking-scripts 1.0.2
File Size Uploaded Provenance Actions
pretix_tracking_scripts-1.0.2.tar.gz 9.3 kB Without provenance Details for pretix_tracking_scripts-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pretix-tracking-scripts 1.0.2
File Interpreter ABI Platform Actions
pretix_tracking_scripts-1.0.2-py3-none-any.whl Python 3 none any Details for pretix_tracking_scripts-1.0.2-py3-none-any.whl

Total release size: 21.7 kB

Release files / pretix_tracking_scripts-1.0.2.tar.gz

Download URL pretix_tracking_scripts-1.0.2.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d0c0aea2601ae069e32dc2bfe9f39ccd6f4c557326fc9e90c3a66519104d80f9
BLAKE2b-256 checksum
How to use checksums
edb56445c48fa90aae523e51989423a44b6b7eb649dce89e6c8adea36cc46fc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

Release files / pretix_tracking_scripts-1.0.2-py3-none-any.whl

Download URL pretix_tracking_scripts-1.0.2-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd15a6068334e531ecba4bfb75378757a4a108e484ac9b43e3aa7471b88268c4
BLAKE2b-256 checksum
How to use checksums
7f02723cd326c8ff1841899b71ed9b6e747526e0a7c16dbea0897e7dbcc79543
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

Security for pretix-tracking-scripts 1.0.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