Compliance: privacy, consent, accessibility and form checks
For people running migrations (freelancers, agencies, developers). Moving your own site? See the plain-language version.
wp2next compliance looks for gaps in a site's privacy pages, cookie banner, accessibility, form
consent wording and security settings, then writes a report you can act on. It works on the old
WordPress site (to see what's missing before you start) and on the new Next.js site (as a check before
launch).
This is not legal advice. The scan finds things to fix and questions to answer. It can't tell you whether a law applies to a business. That depends on facts like revenue, how many people's data the site collects, where visitors live and what the business does. When it matters, ask a lawyer. The report never says a site "is compliant", and you shouldn't say that to a client either.
Facts on this page were checked in December 2026 against the linked sources. Laws and vendor rules change often. Anything marked unverified wasn't confirmed against an official source; check it before you rely on it.
What it checks
| Area | What the scan does | What you still do by hand |
|---|---|---|
| Privacy pages | Looks for links to a privacy policy, terms, cookie policy and accessibility statement, and checks the privacy link is in the footer on every page | Read the policies; make sure they're accurate |
| Trackers vs policy | Lists every known tracker the pages load (Google, Meta, LinkedIn, TikTok, Clarity, Hotjar, HubSpot, and more) and checks the privacy policy names them | Confirm generic wording covers the rest |
| Cookie banner (CMP) | Detects the consent banner product and its site ID. For EU/UK/Swiss visitors, loads each page fresh and checks no tracking cookies are set before anyone clicks | Click Accept, Reject and Settings and check tags follow each choice |
| Google Consent Mode | Checks the consent default comes before Google tags and sets all four values | — |
| US "Do Not Sell or Share" | If ad pixels load, checks for a "Do Not Sell or Share" or "Your Privacy Choices" link | Decide whether the business is covered |
| Global Privacy Control (GPC) | Reloads pages with the browser's GPC privacy signal on and checks ad pixels stop | — |
| Accessibility | Runs axe-core against WCAG 2.2 AA on every scanned page | Keyboard and screen-reader passes, captions, zoom (the checklist in the report) |
| Forms | Phone fields: call/text consent wording, no pre-ticked boxes. Email sign-ups: a separate consent box. A privacy link near every form. reCAPTCHA disclosure | Confirm how phone numbers and emails are used. If leads go to HubSpot as marketing contacts, approve the exact consent wording the form shows (the same text is sent to HubSpot) |
| Industry | Adds checklist items for health, legal, finance, real estate, alcohol/cannabis, education, nonprofits and sites for children. For health, flags trackers on appointment and patient pages | Answer the industry questions |
| Security | HTTPS, redirect from http, HSTS, security headers, mixed content, cookie flags (skipped on local hosts) | Where form data is stored and who can read it |
| Copyright | Flags an out-of-date year in the footer | — |
When to run it
- Before the migration (baseline). wp2next offers it in phase 1 against your Local copy of the WordPress site. The report is a to-do list for the new site: missing pages, a banner plugin that won't survive the move, trackers nobody mentioned.
- Before launch (the gate). wp2next runs it in phase 12 against the new site's production
deployment (the
your-project.vercel.appaddress) with tracking switched on, while your domain still shows WordPress. Until launch, wp2next keeps analytics off withNEXT_PUBLIC_DISABLE_ANALYTICS, and with it off there is no banner and no tracker to test. So the first cutover step turns tracking on for production only: publish the tag container (if you use Google Tag Manager), remove that setting from Vercel's Production environment, keep the site hidden from search engines, and redeploy. Then the scan runs through your secret store so it can get past Vercel's login screen (next section). If you scan a build with tracking off, the report says so as a high finding and the gate can't pass. Launch when there are no open high-severity findings, or the client has accepted each remaining one in writing. The same gate also checks that the internal pages/brand/and/components/can't be found by search engines. - Right after launch. Once DNS points at Vercel, run it once more on the real domain
(
--label postlaunch). That is what visitors actually see. - Any time after changing tracking, the cookie banner or forms, and before
wp2next handoff.
Scanning a protected Vercel deployment
New Vercel projects put every deployment address behind a Vercel login by default, including the
your-project.vercel.app production address; only your own domain is public (checked 2026-12,
docs (external site)). The scanner notices the login page and stops
with instructions instead of scanning it. To let it in:
- In Vercel: Project → Settings → Deployment Protection → Protection Bypass for Automation → add a secret (docs (external site), checked 2026-12).
- Save it in your secret store:
secrets.py put VERCEL_AUTOMATION_BYPASS_SECRETand paste it at the hidden prompt. Don't paste it into chat. - Run the scan through your secret store,
secrets.py run -- node … compliance-scan.mjs …(your AI tool does this for you). The scanner sends the secret only to your site's own address, never to Google, Meta or any other service the page loads, and never prints it or puts it in the report.
After DNS moves to Vercel, your own domain is public, so the post-launch scan needs no secret. If the
secret was ever shared, regenerate it when you hand the site over (wp2next handoff does).
How to run it
In your AI tool:
wp2next compliance https://mysite.local/ # the WordPress copy in Local
wp2next compliance https://my-site.vercel.app/ # the new site on Vercel
wp2next compliance all # every page in the sitemap(/wp2next compliance … in Claude Code and Cursor, $wp2next compliance … in Codex.) It runs in the
background while you keep working, and tells you when the report is ready.
It needs Playwright (a headless browser) and axe-core. In a wp2next project these are added to
apps/web the first time; your AI tool asks before installing. To run the script yourself:
# inside the project
pnpm --filter @<code>/web add -D playwright @axe-core/playwright
pnpm --filter @<code>/web exec playwright install chromium
python3 <skill folder>/scripts/secrets.py run -- node <skill folder>/scripts/compliance-scan.mjs --modules apps/web \
--base https://my-site.vercel.app --regions us,eu-uk --label prelaunch# inside the project
pnpm --filter @<code>/web add -D playwright @axe-core/playwright
pnpm --filter @<code>/web exec playwright install chromium
py -3 "<skill folder>\scripts\secrets.py" run -- node "<skill folder>\scripts\compliance-scan.mjs" --modules apps/web `
--base https://my-site.vercel.app --regions us,eu-uk --label prelaunchsecrets.py run -- hands the Vercel bypass secret to the scanner without showing it; leave it out
when you scan your own public domain or the Local copy.
Useful options: --ignore-https-errors for Local's self-signed certificates, --max 50 to scan more
pages (default 25), --industry health, --urls <file or sitemap URL>. A misspelled region or
industry stops the scan with a message, so a typo can't skip checks.
Reports land in .compliance/reports/ in the project, named by date (for example
2026-12-01-prelaunch.md), with a .json copy for tools.
Reading the report
The report has four parts:
- Executive summary: counts by severity and the high findings to fix first, which consent banner was found, and which trackers load.
- Needs your answers: questions only the business can answer. The answers change which rules
apply, so record them (
wp2next.json→compliance.regionsandcompliance.industry) and run the scan again. - Automated findings: a table with severity, what was found, the evidence (page, cookie or request), the rule it relates to, a suggested fix, and whether a person needs to decide.
- Manual checklist: the checks no tool can do for you.
Severity:
- High: fix before launch, or get a written decision. Examples: tracking cookies set before an EU visitor agrees; ad pixels ignoring the GPC signal where a state law requires honoring it; a pre-ticked "text me" box; an image or control a screen reader can't use at all.
- Medium: missing required links, a policy that doesn't match the trackers, missing security headers.
- Low / info: good practice and the scan's own limits.
"Needs human" means the finding depends on facts the scan can't know. "Your form collects phone numbers without consent wording" is only a problem if those numbers are used for marketing calls or texts. Ask, then fix or record the answer.
Things that catch people out
- WordPress-only cookie banners disappear at launch. Complianz and similar plugins (Cookie Notice, GDPR Cookie Compliance, Real Cookie Banner, Borlabs) live inside WordPress (each one except Complianz is unverified). Their banner, cookie scan, consent records and generated policy pages go with it. Move the policy text into the new site, export consent records if the client needs them, and pick a hosted banner. Termly, CookieYes and Cookiebot have free tiers (checked 2026-12: Termly (external site), CookieYes (external site), Cookiebot (external site)). Returning visitors will see the new banner once; that's expected.
- Ad pixels count as "sharing" under California law. If the site runs Meta, TikTok, LinkedIn or Google Ads tags and the business is covered by CCPA, it needs a "Do Not Sell or Share My Personal Information" (or "Your Privacy Choices") link and must honor GPC (11 CCR §7015 (external site)). Most small businesses are under the thresholds (over $26.6M revenue, or 100,000+ consumers' data bought, sold or shared per year, among others). Ask; don't assume.
- About two dozen US states now have privacy laws, and most of them use thresholds (often 100,000
residents' data a year; some 35,000 or lower). Texas and Nebraska have no volume threshold but
exempt small businesses as the SBA defines them. A table is in the skill's
references/compliance-checklist.md. Sources: Enzuzo tracker, Sep 2026 (external site), MultiState, Oct 2026 (external site). Both are secondary sources, so check the statute before telling a client they're in or out. - EU, UK and Swiss visitors need consent before tracking cookies. If the site has visitors there, it needs a consent banner and Google Consent Mode v2, with everything denied until the visitor agrees (Google consent guide (external site)).
- Phone fields and texting. Marketing calls or texts made with an autodialer or prerecorded message need prior express written consent under the TCPA. Business texting also needs opt-in wording on the form: program name, message frequency, "Msg & data rates may apply", STOP/HELP, and privacy/terms links (the exact wording mobile networks require is unverified). The FCC's "one-to-one consent" rule was struck down and removed in 2025 (Goodwin (external site)).
- Accessibility. US private businesses have no specific federal web rule, but lawsuits are common and WCAG conformance is the usual defense. Government bodies have a DOJ rule (WCAG 2.1 AA) with deadlines pushed to about April 2027/2028 (Federal Register, Apr 2026 (external site)). The European Accessibility Act has applied to consumer e-commerce and other listed services in the EU since June 2025, with an exemption for very small service businesses (CCPC guidance (external site)). wp2next targets WCAG 2.2 AA. Automated tools catch only part of WCAG, so do the manual keyboard and screen-reader checks.
- Health sites. Don't run ad pixels or session recording on appointment, patient-portal or condition pages. Federal guidance on tracking public pages was partly struck down in 2024 (MoFo (external site)), but logged-in pages, appointment forms and state health-data laws (Washington, Nevada) still carry risk.
What the scan can't do
- The EU check uses a German browser language and timezone, not an EU internet address. A banner that decides by IP address may behave differently for real EU visitors. Check through an EU VPN or the banner's preview mode.
- It sees each page as it first loads. It doesn't click the banner, open menus or submit forms.
- Banner detection relies on known script and cookie names, which are unverified. Confirm the banner product and ID in the client's account.
- It doesn't read your emails (unsubscribe links, postal address) or your form back end.
Related
- Tracking and search: analytics, consent banners and Consent Mode setup.
- Handoff: the final report goes into
HANDOFF.mdfor the client. - Troubleshooting.