A lightweight tracking pixel proxy for Umami Analytics
753
A lightweight tracking pixel proxy for Umami Analytics - track analytics without JavaScript.
docker run -e UMAMI_BASE_URL=http://umami:3000 -p 3001:3001 lunyaadev/umami-pixel:latest
| Variable | Description |
|---|---|
UMAMI_BASE_URL | Base URL of your Umami instance |
TRUSTED_PROXY_IPS | Comma-separated list of allowed proxy IPs / CIDRs |
PROXY_IP_HEADER | Header name to extract client IP from |
ALLOWED_WEBSITE_IDS | WebsiteIds allowed to proxy (all if not set) |
GET /:responseType/:websiteId/*
:responseType:
pxl (returns a 1x1 transparent PNG)req (returns 204):websiteId: Your Umami website UUID*: Path and query parameters (UTM, event, etc.)| Parameter | Description |
|---|---|
utm_source | UTM campaign source |
utm_medium | UTM campaign medium |
utm_campaign | UTM campaign name |
utm_content | UTM content |
utm_term | UTM term / keyword |
event | Custom event name |
title | Page or event title |
tag | Custom tag for the event |
Any other parameters will be passed through to Umami as custom data fields.
<img src="<your-url>" />

Track usage of CLI tools, installation scripts, or update checks.
curl -s <your-url>
1. Basic tracking pixel request
GET /pxl/6ef5243a-6b17-11f0-b571-325096b39f47
6ef5243a-6b17-11f0-b571-325096b39f47.2. Tracking pixel with UTM parameters
GET /pxl/6ef5243a-6b17-11f0-b571-325096b39f47?utm_source=blog&utm_medium=footer&utm_campaign=release-v1
3. Custom event tracking (no pixel)
GET /req/6ef5243a-6b17-11f0-b571-325096b39f47?event=Signup
Signup for the specified website.4. Tracking with additional custom data
GET /pxl/6ef5243a-6b17-11f0-b571-325096b39f47?event=Purchase&value=99¤cy=USD
Purchase event with extra data (value and currency).5. Tracking a specific page path
GET /pxl/6ef5243a-6b17-11f0-b571-325096b39f47/products/123?utm_source=ad
/products/123 with UTM source ad.GPL-3.0-or-later
Content type
Image
Digest
sha256:5d19250ca…
Size
68.5 MB
Last updated
about 1 year ago
docker pull lunyaadev/umami-pixel