Prompt: set up Thrad tracking
- Open your website’s project in your coding agent.
- Paste the prompt.
- Review the changes it shows you, then deploy them.
- 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).
- 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.
Why the agent recommends server events
Why the agent recommends server events
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.What the setup code can do
What the setup code can do
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.What the agent follows
What the agent follows
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.
