Skip to content
Kokumi

Campaign links

Live

Mint branded /go/<channel>/<slug> redirects on your own domain, capture all five UTM parameters without cookies, and separate human edge clicks from link-preview bots and mobile drop-offs.

GET and POST /api/v1/campaigns, /go/:channel/:slug, kokumi campaigns, kokumi link add|list|archive, and Dashboard Campaigns view.

Be a disciplined operator without third-party shortener rent

Dark-social apps like X, Slack, Discord, and WhatsApp strip referrers and pre-fetch every pasted URL. First-party /go/<channel>/<slug> links live on your own Worker and D1 database at $0 monthly cost, recording human clicks before browsers drop parameters while keeping preview bots out of click counts.

  • Isolates Twitterbot, Slackbot-LinkExpanding, Discordbot, LinkedInBot, WhatsApp, and facebookexternalhit into preview_bots.
  • Validates target destinations at both write time and redirect time against relative paths or ALLOWED_ORIGINS.
  • Sets Cache-Control: no-store, private and X-Robots-Tag: noindex on every 302 redirect.
sh
kokumi link add x/launch --target /posts/launch --utm-source x --utm-medium social --utm-campaign dec-launch

Do clean URL sharing with zero-cookie _k scrubbing

Instead of leaving ?utm_source=... query soup in the address bar where copy-paste shares leak tags across channels, /go/<channel>/<slug> passes a tiny ?_k=<channel>/<slug> correlation token. The page beacon reads it once, hydrates canonical UTMs server-side, and scrubs _k immediately via history.replaceState.

  • Zero cookies set and RAW_IP_OPT_IN=false stays untouched.
  • Preserves existing query parameters and #hash fragments while scrubbing _k from the URL bar.
  • Captures utm_source, utm_medium, utm_campaign, utm_content, and utm_term on organic UTM landings too.
sh
kokumi campaigns --since 14d --channel x --format markdown

Have edge-vs-beacon drop-off visibility in one ledger

Comparing pre-JS edge clicks against JS-verified beacon landings exposes slow landing pages and in-app webview drops immediately. Any link with at least 5 edge clicks and a landing rate below 65% is flagged in the Dashboard Campaigns panel and Markdown proof exports.

  • Inspect active and archived links plus organic 5-field UTMs in GET /api/v1/campaigns.
  • Export deterministic Markdown and JSON campaign proof with zero em dashes.
  • Quarantine visitor-written UTM strings inside {"untrusted": ...} wrappers in CLI JSON.