What the agent does
When the production site launches I will post on several launch sites and social networks on the same day. I need to know which of them sent the people who signed up, not only how many visitors arrived. Set up analytics with the analytics tool this project already uses (or tell me the options if there is none), capture UTM parameters and referrers, and store the first touch with each new account.
1. Check what is there
Find any existing analytics script, event calls, cookie or consent banner, and where sign-up completes on the server. Tell me what is tracked today and what is missing.
2. Pageviews and the events that matter
Make sure pageviews are recorded on every page, including client-side route changes. Add events for the steps of the launch funnel: sign-up started, sign-up completed, and the first meaningful action in the product (name it with me). Use the tool's documented API, and keep event names short and consistent (
signup_completed, notUser Signed Up!).3. Capture where each visitor came from
- On the first page view of a visit, read
utm_source,utm_medium,utm_campaign,utm_contentandutm_term, plusdocument.referrer, and keep them (a first-party cookie orlocalStorage, 30 days) until sign-up. - When an account is created, save that first touch on the user record (new nullable columns or a small table), so I can count signups by source in the database even if an ad blocker hid the analytics event.
- Treat referrers from AI assistants as their own source: chatgpt.com, chat.openai.com, perplexity.ai, claude.ai, gemini.google.com, copilot.microsoft.com. Store them as, for example,
ai:perplexity.
- On the first page view of a visit, read
4. Respect consent and privacy
If the site shows a consent banner, analytics that set cookies must wait for consent; the first-touch capture should only store the UTM and referrer values, never personal data. Update the privacy policy's list of tools if a new one is added, and show me the wording.
5. Give me launch links
Write a short table of UTM links I can use on launch day, one per channel (each launch site, X, LinkedIn, Reddit, Hacker News, my newsletter), with
utm_sourceset to the channel andutm_campaign=launch. Explain how to see signups by source in the analytics tool this project already uses (or tell me the options if there is none) and with one database query.
Done means
- Pageviews are recorded on every page, including client-side navigation.
- Sign-up started and completed events fire once each, with consistent names.
- The first UTM source and referrer are saved on every new account.
- AI assistant referrers are recorded as their own sources.
- I have a table of launch-day UTM links and a query that counts signups by source.
Questions
Why store the source on the account and not only in analytics?
Ad blockers and privacy browsers hide a large share of analytics events from technical audiences, which is exactly who launch sites send. A value saved with the account in your own database is not blocked.
Why split out AI assistants?
More and more visitors arrive from ChatGPT, Perplexity, Claude and Gemini. Lumped in with 'referral' you cannot see that channel grow; split out, you can see which answers send you people.
Do I need a cookie banner for this?
That depends on the analytics tool and where your users are. Cookieless tools need less; the prompt tells the agent to respect whatever consent setup you have and to show you any privacy policy change.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.