Skip to content

A privacy policy and cookie banner that match the code

List what the code really collects and shares, then make the policy and the cookie banner match it.

  • Free, no sign-up
  • 1 to 2 hours with an agent
  • By Devvrat Hans
  • Version 1.0, updated Oct 26, 2026

1Your site and stack

Optional. The prompt adapts as you type; leave a field blank and the agent works it out.

2Copy it into your agent

privacy-and-cookies.md62 lines, about 938 tokens

Paste into any coding agent: Claude Code, Cursor, Codex, Copilot, Windsurf or Cline.

# A privacy policy and cookie banner that match the code

Most privacy policies are copied templates that do not match what the site does. When the production site launches publicly, people (and regulators) can check. Inventory what the code actually collects, stores and sends to third parties, then make the privacy policy and cookie consent describe exactly that, and make consent actually control the scripts.

Site: not given. Find the production URL in the project config, or ask me.

## Ground rules

1. Read before you write. Explore the parts of the codebase this job touches and tell me what is already in place.
2. Plan, then stop. Give me a numbered plan: what you will change, in which files, and why. Wait for my approval before editing anything.
3. Fix things at their source (the shared layout, the config, the generator), not with one-off patches page by page.
4. Keep the project's conventions: its framework APIs, file layout, naming and code style. Add no new dependency without asking.
5. Where something is already done well, say so and leave it alone.

## You will not

- Edit `.env` files, secrets or API keys, or print their values.
- Deploy, push, merge or publish anything.
- Delete data, or run migrations or scripts against a production database.
- Add tracking, third-party scripts or links to any site I did not ask for.
- Change copy, design or behaviour that this job does not need.
- Publish policy wording I have not approved.
- Present the draft as legal advice.

## Your stack

- Framework: Work out the framework, router and build output from the project files (package.json, lockfiles, framework config) before planning, and say which you found.
- Host: Work out where the site is hosted from the config files (vercel.json, netlify.toml, wrangler config, Dockerfile, fly.toml) and say which you found.

## Steps

### 1. Inventory the data

From the code, list every piece of personal data collected (account fields, analytics, IP addresses, payment details, uploads, support messages), where it is stored, how long it is kept, and every third party it is sent to (analytics, email, payments, error tracking, AI APIs, embeds). Include cookies and local storage keys with what sets them.

### 2. Compare with the policy

Read the current privacy policy and cookie policy and list every mismatch: data collected but not mentioned, third parties missing, retention periods that are wrong, claims the code contradicts. Show me the list before changing any wording.

### 3. Make consent real

Scripts and cookies that need consent where the site's users are (analytics with cookies, ads, some embeds) must not load until the visitor agrees, and rejecting must be as easy as accepting. Strictly necessary cookies (sessions, security) need no consent. Remember the choice and let visitors change it from the footer.

### 4. Update the policies

Draft updated policy text that matches the inventory, in plain words, with a last-updated date, and generated where possible from the same list of third parties so it stays in sync. I approve the wording; this is not legal advice and I may have it reviewed.

## Done means

- [ ] Every piece of personal data, cookie and third party in the code is listed.
- [ ] Every mismatch between the policy and the code is listed and fixed in an approved draft.
- [ ] Consent-requiring scripts load only after consent, and rejecting is as easy as accepting.
- [ ] The policies have a last-updated date and visitors can change their choice from the footer.

## Report back

When you finish, give me:

- what you changed, file by file;
- anything you skipped, and why;
- anything I must do by hand (DNS records, dashboards, accounts, deploys);
- how to check each change on the live site.

One-line version

For agents that can read a URL. It fetches this prompt with your settings applied.

Read https://abacklaunch.com/prompts/privacy-and-cookies.md and follow it for this project.

3Check the result

When the changes are live, run these free checks. Add your site URL above and each one opens already running on it.

This prompt will not

  • Edit .env files, secrets or API keys, or print their values.
  • Deploy, push, merge or publish anything.
  • Delete data, or run migrations or scripts against a production database.
  • Add tracking, third-party scripts or links to any site I did not ask for.
  • Change copy, design or behaviour that this job does not need.
  • Publish policy wording I have not approved.
  • Present the draft as legal advice.

It reads your code first, shows you a plan, and waits for your approval before it changes anything.

What you get

  • An inventory of the personal data, cookies and third parties in your code
  • A list of where your policy and your code disagree
  • Consent that really controls the scripts
  • Policy drafts that match what the code does

How to use this prompt

  1. 1

    Describe your stack

    Add your site, framework and host. The prompt adapts; blank fields are left for the agent to work out.

  2. 2

    Paste it into your agent

    Open your project in Claude Code, Cursor, Codex, Copilot, Windsurf or Cline, and paste the prompt or the one-line version.

  3. 3

    Approve the plan

    The agent reads your code, shows you a plan with the files it will touch, and waits. Change anything you disagree with.

  4. 4

    Check the result

    When the changes are live, run the free checks below on your site to confirm each fix.

What the agent does

Most privacy policies are copied templates that do not match what the site does. When the production site launches publicly, people (and regulators) can check. Inventory what the code actually collects, stores and sends to third parties, then make the privacy policy and cookie consent describe exactly that, and make consent actually control the scripts.

  1. 1. Inventory the data

    From the code, list every piece of personal data collected (account fields, analytics, IP addresses, payment details, uploads, support messages), where it is stored, how long it is kept, and every third party it is sent to (analytics, email, payments, error tracking, AI APIs, embeds). Include cookies and local storage keys with what sets them.

  2. 2. Compare with the policy

    Read the current privacy policy and cookie policy and list every mismatch: data collected but not mentioned, third parties missing, retention periods that are wrong, claims the code contradicts. Show me the list before changing any wording.

  3. 3. Make consent real

    Scripts and cookies that need consent where the site's users are (analytics with cookies, ads, some embeds) must not load until the visitor agrees, and rejecting must be as easy as accepting. Strictly necessary cookies (sessions, security) need no consent. Remember the choice and let visitors change it from the footer.

  4. 4. Update the policies

    Draft updated policy text that matches the inventory, in plain words, with a last-updated date, and generated where possible from the same list of third parties so it stays in sync. I approve the wording; this is not legal advice and I may have it reviewed.

Done means

  • Every piece of personal data, cookie and third party in the code is listed.
  • Every mismatch between the policy and the code is listed and fixed in an approved draft.
  • Consent-requiring scripts load only after consent, and rejecting is as easy as accepting.
  • The policies have a last-updated date and visitors can change their choice from the footer.

Questions

Is this legal advice?

No. The prompt makes your policy describe what your code really does, which is the part templates get wrong. For legal review of the wording, ask a lawyer.

Do I need a cookie banner?

It depends on where your visitors are and what you load. Strictly necessary cookies never need consent; analytics and ads cookies usually do in the EU and UK. Cookieless analytics can remove the need for a banner.

Why does reject have to be as easy as accept?

European regulators treat hidden or harder reject options as invalid consent. One click either way is the safe design.

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.

Launch your startup on Aback Launch

Get a launch page that search engines and AI assistants can read, a place in the weekly launch list, and a review by a real person. Free to join.