Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Crediting a booking to the AI agent that sent it, without cookies

Description and use

TableJourney implemented a cookie‑free attribution system by embedding a unique identifier in partner links via signed redirects and client‑side stamping, enabling accurate commission payouts to agents.

Problem

Ensuring that commission payments for bookings made via partner links can be attributed to the AI agent that generated the link, without relying on browser cookies.

Outcome

TableJourney achieved cookie‑free, end‑to‑end attribution of bookings to AI agents by embedding a unique sub‑id in partner links via signed redirects and client‑side stamping, enabling accurate commission payouts.

Workflow

  • 1. Agent requests a partner key via MCP calls (partner_join → partner_confirm).
  • 2. Agent uses the key to call TableJourney APIs; each returned booking link is a signed redirect (https://tablejourney.com/go/<payload>.<hmac>).
  • 3. The redirect writes the agent’s sub‑id into the partner’s free‑text field (e.g., cmp, campaign, cid).
  • 4. The agent forwards the link to the user unchanged.
  • 5. On the user’s side, if the user shares a page, a ?ref= code is stored in a first‑party cookie for 30 days and used to rewrite partner links on page load.
  • 6. A MutationObserver stamps any partner link added or modified after load.
  • 7. The user clicks the link; the redirect logs the click, writes the sub‑id, and forwards to the partner.
  • 8. Partners report commissions with the sub‑id; TableJourney imports these reports daily and matches sub‑ids to agents for payout.

Evidence

The payload names the key, the kind of link and the destination. The redirect checks the signature, looks up the key's campaign, writes it into that partner's sub-id field and sends a 302.

Source

A person shares any page with ?ref=<code></code> on the end. On arrival, a first‑party cookie set by our server holds the code for 30 days, and the page rewrites every partner link's href on load.

Source

The fix is a MutationObserver that stamps any partner link added to the page or whose href changes.

Source

  • Record date: 2026-11-01T13:14:22.016Z