Skip to content
mike@portfolio:~$

~/work/trackingmd.md

$ cd ..

trackingmd.com

A multi-tenant affiliate/publisher marketing SaaS — first-party click tracking, publisher lifecycle, Stripe billing, and AI fraud detection.

Founder & Lead Engineer · 2025

LaravelPHPNext.jsReactTypeScriptPostgreSQLRedisAWSStripeDocker

# trackingmd.com →

Tracking MD is everything a modern publisher (affiliate) program needs to run at scale, built as a single multi-tenant platform.

The problem

Affiliate attribution has traditionally leaned on third-party cookies — exactly the thing browsers have spent years dismantling. Programs also need publisher onboarding, tiered commissions, payouts with tax compliance, and fraud controls, and most teams stitch these together from half a dozen tools.

What I built

  • First-party click tracking that survives third-party-cookie loss: UUIDv7 click_id attribution, server-to-server postbacks with idempotent retries, and deep-link passthrough.
  • Publisher lifecycle: invite / approve / suspend flows and tiered percentage or flat commissions.
  • Billing & payouts: Stripe subscription billing plus publisher payouts (Stripe Connect, PayPal, bank) with 1099 tax handling, backed by a double-entry financial ledger.
  • AI fraud detection (“AI Guardian”): a rules-based scoring layer with automatic suspension of suspicious traffic.
  • Enterprise integrations: webhooks with circuit breakers, real-time updates over WebSockets, and Slack/Teams notifications.

How it’s built

A schema-per-tenant Laravel backend (physical tenant isolation) with a Next.js front end, PostgreSQL and Redis, deployed on AWS. Type-safety is enforced end-to-end: the API contract is generated from the backend and the front-end types are checked against it in CI, so a shape change can’t silently break a client.

[0]