Skip to content

⚡ Three steps

1️⃣ Click a Deploy button (pick one platform)

PlatformOne-click deployBest for
Cloudflare WorkersDeploy to Cloudflare WorkersDNS already on Cloudflare
VercelDeploy with VercelDon't want to move DNS, CNAME from any provider
NetlifyDeploy to NetlifySame as Vercel
Deno Deploy→ Setup guidePrefer the Deno ecosystem

💡 Not sure which? → Use Vercel (any DNS + simplest one-click)

2️⃣ Bind your own domain

After deploying, point your subdomain (e.g. track.yourdomain.com) to the project you just deployed.

Custom domain setup (covers all four platforms)

3️⃣ Add the domain in the [laifa.xin backend]

Open [laifa.xin backend] → add tracking domain → enter track.yourdomain.com → click verify → ✓

After verification, every tracking link in your emails will use this domain — looking more professional and improving your anti-spam score.


Supported tracking types

TypeHow
📧 Email open tracking1×1 transparent pixel
🔗 Link click tracking302 redirect
📎 Attachment download trackingReverse-proxy the file stream

All three work out of the box with zero extra config.


Configuration (usually leave as-is)

VariableDefaultDescription
BACKEND_HOSTcf-track.laifa.xinTracking backend hostname
BACKEND_PROTOCOLhttp:Backend protocol (colon required)
REDIRECT_TARGEThttps://www.google.comWhere to send rejected requests

The deploy UI on each platform will let you confirm or change these three values; defaults are fine for most users.


License

MIT — see LICENSE.


Contact the author

  • 🌐 Website: laifa.xin
  • 💬 WeChat (please mention "email track" when adding):
Author WeChat

🔧 Technical details

Four-stage filtering logic, anti-Microsoft Defender SafeLinks scanner internals, IP-range refresh workflow, local development, source layout, etc. → architecture.md

Credits

Derived from the email-tracking infrastructure of laifa.xin, open-sourced so users can deploy their own dedicated tracking domain.