Project Launcher

Smart Redirects

Create trackable links that carry UTM parameters to any destination

URL parameters are automatically forwarded. Example: /r/my-slug?utm_source=tiktok β†’ destination.com/page?utm_source=tiktok
Loading…
Database setup (run once in Supabase)
CREATE TABLE IF NOT EXISTS redirects (
  id          UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  slug        TEXT UNIQUE NOT NULL,
  destination TEXT NOT NULL,
  label       TEXT,
  clicks      INTEGER DEFAULT 0,
  created_at  TIMESTAMPTZ DEFAULT now(),
  updated_at  TIMESTAMPTZ DEFAULT now()
);

CREATE OR REPLACE FUNCTION increment_redirect_clicks(redirect_id UUID)
RETURNS void LANGUAGE SQL SECURITY DEFINER AS $$
  UPDATE redirects SET clicks = clicks + 1, updated_at = NOW()
  WHERE id = redirect_id;
$$;