Skip to main content

Adds scripts for analytics and conversion tracking to pretix.

Project description

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

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_tracking_scripts-1.0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pretix_tracking_scripts-1.0.2-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file pretix_tracking_scripts-1.0.2.tar.gz.

File metadata

  • Download URL: pretix_tracking_scripts-1.0.2.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for pretix_tracking_scripts-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d0c0aea2601ae069e32dc2bfe9f39ccd6f4c557326fc9e90c3a66519104d80f9
MD5 d0020a4d9d0c73329c65c024edd2fcf8
BLAKE2b-256 edb56445c48fa90aae523e51989423a44b6b7eb649dce89e6c8adea36cc46fc4

See more details on using hashes here.

File details

Details for the file pretix_tracking_scripts-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pretix_tracking_scripts-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bd15a6068334e531ecba4bfb75378757a4a108e484ac9b43e3aa7471b88268c4
MD5 11d4f6b04c90b6ebc9b8917536de29b9
BLAKE2b-256 7f02723cd326c8ff1841899b71ed9b6e747526e0a7c16dbea0897e7dbcc79543

See more details on using hashes here.

Supported by

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