Skip to main content

An overview map of the catchment area of previous orders. Measured by postcode

Project description

Pretix Sales Map Plugin

A powerful geographic analytics and visualization plugin for pretix. This plugin allows you to visualize where your attendees are coming from, track sales growth over time, and analyze regional market penetration.

✨ Features

  • 📍 Automatic Geocoding: Automatically converts attendee addresses to map coordinates upon payment.
  • 🗺️ Interactive Map: Switch between Pin View (with clustering), Heatmap, and Density Grid.
  • 📈 Sales Analytics: Track total revenue, average travel distance, and top regions (cities/items).
  • ⏱️ Timeline Animation: Play back the history of your sales to see geographic growth over time.
  • ★ Marketing Milestones: Define important dates (e.g., newsletters) in the UI to see their impact on the timeline.
  • 🔄 Event Comparison: Overlay data from previous events to compare reach and performance.
  • ⚠️ Quality Control: Dedicated view for orders with failed geocoding to manage data issues.
  • 🌙 Nightly Sync: Automated background task to retry failed geocoding attempts.
  • 🔘 Manual Trigger: Admin button to re-run geocoding for all orders of an event.

🚀 Installation & Setup

To use this plugin with your local pretix instance (C:\Users\SCJA03\Desktop\Programmieren\pretix):

1. Register the Plugin

Open your terminal, navigate to this directory, and ensure your pretix virtual environment is active.

python setup.py develop

2. Run Migrations

Apply the database changes for geodata and milestones:

# From your pretix/src directory
python manage.py migrate

3. Configuration

Add a User-Agent for the geocoding service in your pretix.cfg:

[pretix_mapplugin]
nominatim_user_agent = YourProjectName/1.0 (contact@yourdomain.com)

4. Enable the Plugin

  1. Log in to your Pretix Control Panel.
  2. Go to Organizer Settings > Plugins and enable Map-Plugin.
  3. In your specific Event > Settings > Plugins, also enable Map-Plugin.

🛠️ Usage

  • Map View: Navigate to Sales Map > Map View in the event sidebar.
  • Milestones: Go to Sales Map > Milestones to add marketing dates.
  • Revenue Weighting: Use the toggle button on the map to see "where the money comes from" instead of just "where the people are".

🚀 Starting the Application (Development)

  1. Pretix Server:
    cd C:\Users\SCJA03\Desktop\Programmieren\pretix\src
    python manage.py runserver
    
  2. Celery Worker:
    cd C:\Users\SCJA03\Desktop\Programmieren\pretix\src
    celery -A pretix.celery_app worker -l info
    
    Note: If you don't have a broker like Redis or RabbitMQ running, the plugin will automatically fall back to synchronous geocoding (eager mode) if configured in pretix.cfg.

🛡️ Requirements

  • pretix >= 2.7
  • geopy
  • A running Celery worker (essential for background geocoding)

Developed by MarkenJaden. Released under 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_map-0.1.5.tar.gz (720.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_map-0.1.5-py3-none-any.whl (740.3 kB view details)

Uploaded Python 3

File details

Details for the file pretix_map-0.1.5.tar.gz.

File metadata

  • Download URL: pretix_map-0.1.5.tar.gz
  • Upload date:
  • Size: 720.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pretix_map-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0084468badcbd4149c00c777e777de0c8f3b9016fc64423d8fb6d68b4c94b869
MD5 a1fafb3b8b247f2711588d74e79de2f2
BLAKE2b-256 fd4a10d7fb93911c344fa4b2563a2a43790d63cfccad262e56bce581f4e83aa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for pretix_map-0.1.5.tar.gz:

Publisher: publish.yml on MarkenJaden/pretix-map

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pretix_map-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pretix_map-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 740.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pretix_map-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 299aef3a4bcb28c8421dc2b759275d960862e5c44b5577e4b43ee3c6d537633d
MD5 f7b7859457da9ad1248c58f5a9bbe342
BLAKE2b-256 0fa70b66867f2886f5e580c15e583d4f378f7e743bea7f1414ef4454b4dc2a1c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pretix_map-0.1.5-py3-none-any.whl:

Publisher: publish.yml on MarkenJaden/pretix-map

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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