Adds scripts for analytics and conversion tracking to pretix.
Project description
pretix-tracking-scripts
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
-
Install the plugin:
pip install pretix-tracking-scripts
-
Enable the plugin on your event page.
-
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
-
Ensure you have a working pretix development setup.
-
Clone this repository.
-
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0c0aea2601ae069e32dc2bfe9f39ccd6f4c557326fc9e90c3a66519104d80f9
|
|
| MD5 |
d0020a4d9d0c73329c65c024edd2fcf8
|
|
| BLAKE2b-256 |
edb56445c48fa90aae523e51989423a44b6b7eb649dce89e6c8adea36cc46fc4
|
File details
Details for the file pretix_tracking_scripts-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pretix_tracking_scripts-1.0.2-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.11.14 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd15a6068334e531ecba4bfb75378757a4a108e484ac9b43e3aa7471b88268c4
|
|
| MD5 |
11d4f6b04c90b6ebc9b8917536de29b9
|
|
| BLAKE2b-256 |
7f02723cd326c8ff1841899b71ed9b6e747526e0a7c16dbea0897e7dbcc79543
|