Skip to main content
Your coding agent (Claude Code, Cursor, Codex and others) can install the Thrad tag, wire your conversions and add server events for you. Copy the prompt, paste it in, and review what it changes. The quickest way to get the prompt is from the Thrad platform: open your ad account’s Attribution page and press Copy prompt. Your tag ID is already filled in, along with a setup code that lets the agent check your live site with Thrad. Or copy this one and swap in your tag ID:
Prompt: set up Thrad tracking
  1. Open your website’s project in your coding agent.
  2. Paste the prompt.
  3. Review the changes it shows you, then deploy them.
  4. Tell the agent once it’s live. If your prompt came from the platform, the agent asks Thrad to check your site and tells you whether it passed. Otherwise, run the site check on the Attribution page (or under Setup → Confirm your tracking if your page still has tabs).
  5. The agent recommends server events and asks whether to add them. If you say yes, it adds them, then asks you to create a server token in Thrad.
The tag reports purchases from your shopper’s browser. Ad blockers, browser tracking limits and shoppers who close the tab early stop some of those reports, so those sales aren’t credited to your ads. With server events, your server reports each order too. Thrad matches the two by order ID, so nothing is counted twice.The agent can’t create the server token for you, and it never asks for it. When it’s done, open the Attribution page, choose Create server token (or Create token under Setup → Send conversions from your server if your page still has tabs), and save the token as THRAD_SERVER_TOKEN wherever your server keeps secrets. The agent’s code reads it from there. Never paste the token into the chat.Said “not now”? Ask your agent to add server events any time, or see Server events.
The setup code starts with tsc_ and expires after 24 hours. It only lets the agent run Thrad’s site check on your ad account’s own websites and read the result. It stops working if you lose edit access to the account. It can’t change your account, read your reports, or send events. If it expires, copy a fresh prompt.
The prompt points your agent at a skill: a Markdown file with everything it needs to integrate Thrad correctly. It’s fetched fresh each time, so it never goes stale.The agent only edits your code. It never deploys. For Google Tag Manager, Shopify admin and site builders, it writes the snippets and tells you where to paste them.
Prefer to do it by hand? Install the tag yourself.