GDPRChecker

Home / Knowledge Base / Next.js Audit Evidence Pack Preparation Guide: Build a GDPR‑Ready Compliance Record

Website Compliance

Next.js Audit Evidence Pack Preparation Guide: Build a GDPR‑Ready Compliance Record

A practical guide for Next.js website owners on preparing a GDPR audit evidence pack. Covers mapping tags, configuring consent management, implementing Google Consent Mode v2, closing cookie banner and privacy policy gaps, handling DSARs, and validating compliance with GDPRChecker scans. Includes a detailed implementation checklist and answers to common questions.

Run a free GDPR compliance scanPreview the findings before choosing a CMP.

Author

GDPRChecker Editorial Team

Reviewed by

Privacy & Compliance Research Team

Last updated

July 2026

Reading time

11 min read

Educational guidance for compliance readiness — not legal advice. Requirements vary by jurisdiction and your specific processing activities.

Introduction

Updated for 2026 compliance practices.

If you run a Next.js website, proving GDPR compliance isn’t just about having a cookie banner. Regulators, partners, and even your own internal teams increasingly expect a structured audit evidence pack—a collection of verifiable records that show how your site handles personal data, consent, and disclosures. This Next.js audit evidence pack preparation guide walks you through exactly what to gather, how to validate it, and how to keep it current as your site evolves.

An audit evidence pack is a practical compliance topic for website owners validating consent, tags, and disclosures. It’s the documentation you’ll reach for when a data protection authority asks questions, when a client wants proof of your compliance posture, or when you simply need to confirm that a recent deployment didn’t break your consent setup. By the end of this guide, you’ll have a clear, repeatable process—and you’ll know how to use GDPRChecker to verify each piece.

What a Next.js Audit Evidence Pack Means for Website Owners

For a Next.js site, an audit evidence pack is a snapshot of your compliance configuration at a point in time. It typically includes:

  • Screenshots or recordings of your cookie banner and consent flow
  • Network‑request logs showing what fires before and after consent
  • Tag manager container exports and trigger configurations
  • Privacy policy and cookie policy URLs with timestamps
  • Records of consent‑state changes (e.g., when a user opts in or out)
  • Scanner reports that confirm no unconsented tracking occurs

Because Next.js can render on the server, the client, or both, the evidence needs to cover all rendering paths. A server‑side rendered page might inject analytics scripts before the client‑side consent banner even appears, creating a gap that an audit evidence pack must expose. This guide focuses on the practical steps to close that gap and produce a defensible record.

Requirements and Compliance Expectations

Under the GDPR, consent must be freely given, specific, informed, and unambiguous. For website owners, that translates into several concrete expectations:

  • No pre‑consent tracking: Scripts that set cookies or access device storage (like analytics, advertising, or social media pixels) must not fire until the user has given affirmative consent.
  • Granular choices: Users must be able to accept or reject individual purposes (e.g., analytics, marketing) rather than being forced into an all‑or‑nothing choice.
  • Easy withdrawal: It must be as easy to withdraw consent as it was to give it. A persistent consent management interface is essential.
  • Clear disclosures: Your privacy policy must explain what data you collect, why, how long you keep it, and who you share it with. It must also name specific third‑party services.
  • Demonstrable accountability: You must be able to show, not just claim, that you meet these requirements. That’s where the audit evidence pack comes in.

These expectations are not just theoretical. The European Data Protection Board (EDPB) has repeatedly emphasized that controllers must be able to demonstrate compliance (see EDPB guidelines). For a Next.js site, this means you need evidence that your technical implementation matches your legal promises.

How to Implement a Next.js Audit Evidence Pack Step by Step

Step 1: Map Your Data Flows and Tags

Start by listing every third‑party service that runs on your Next.js site. Common examples include Google Analytics, Google Ads, Meta Pixel, Hotjar, and embedded YouTube videos. For each, document:

  • The exact script or iframe that loads
  • Whether it sets cookies or accesses local storage
  • The purpose of the data collection (analytics, advertising, personalization, etc.)
  • The legal basis you rely on (usually consent)

Next.js makes it easy to inject scripts via next/script or custom _document.js modifications. Audit every instance. Pay special attention to scripts that are loaded in _document.js or _app.js, because they often fire before any consent banner can appear.

Step 2: Configure Your Consent Management Platform (CMP)

A CMP (cookie banner) is the user interface that collects consent. In a Next.js app, you typically load the CMP script early—but you must configure it to block other tags until consent is given. Most CMPs work by:

  • Categorizing tags into purposes (e.g., “analytics”, “marketing”)
  • Firing tags only after the user has granted consent for that category
  • Providing a way to reopen the consent panel to change preferences

When you set up your CMP, verify that its default state is “no consent” for all non‑essential categories. This is often called “prior blocking” or “default deny.” If your CMP loads tags by default and only removes them after an opt‑out, you’re not compliant.

Step 3: Implement Google Consent Mode v2 (If Using Google Services)

If you use Google Analytics, Google Ads, or Floodlight, Google Consent Mode v2 is a critical piece of the puzzle. It allows Google tags to adjust their behavior based on the user’s consent state without dropping all data. For example, when a user denies analytics consent, Google Analytics can still send a cookieless ping for basic measurement, but it won’t set cookies.

To implement Consent Mode v2 in Next.js:

  1. Load the Google tag (gtag.js) with the default consent state set to denied for all relevant consent types (ad_storage, analytics_storage, ad_user_data, ad_personalization).
  2. Update the consent state when the user interacts with your CMP.
  3. Verify that the consent state is correctly communicated to Google’s servers.

Google’s own documentation on Consent Mode and Consent Mode and Analytics provides the technical details. For a deeper walkthrough, see our Google Consent Mode v2 guide.

Step 4: Close the Cookie Banner Gap

The cookie banner gap occurs when the banner is present but doesn’t actually block tags. Common causes in Next.js:

  • Tags are hardcoded in _document.js and fire before the CMP script loads.
  • The CMP is loaded asynchronously, and tags fire in the brief window before the CMP initializes.
  • Server‑side rendered pages include analytics scripts that execute immediately on the client.

To close this gap, you must ensure that all non‑essential tags are either:

  • Loaded through the CMP’s tag manager (so the CMP controls when they fire), or
  • Wrapped in a condition that checks the consent state before executing.

For Next.js specifically, consider using the next/script component with the strategy="afterInteractive" attribute for CMP scripts, and ensure that all other tracking scripts are loaded with a strategy that respects consent. However, even afterInteractive can be too early if the CMP hasn’t set the consent state yet. A more robust approach is to use a custom consent‑aware wrapper that only injects scripts after consent is granted.

Step 5: Close the Google CMP Gap

Even with Consent Mode v2, there’s a gap if your CMP doesn’t properly signal consent to Google. Google requires that consent signals be sent in a specific format and that the CMP is integrated correctly. If you’re using a CMP that isn’t a Google‑certified CMP (note: GDPRChecker does not claim to be a Google Certified CMP), you must manually ensure that the consent updates are pushed to Google’s API.

To verify this, use your browser’s developer tools to inspect the network requests to region1.google-analytics.com and stats.g.doubleclick.net. Look for the gcs parameter in the query string. A value of G100 means no consent has been granted; G111 means full consent. If you see G111 before the user has interacted with the banner, you have a gap.

Step 6: Close the Privacy Policy Gap

Your privacy policy must accurately reflect what your Next.js site actually does. A common gap is listing a service in your policy but not having it in your CMP, or vice versa. Another is failing to update the policy when you add a new third‑party script.

As part of your audit evidence pack, capture a timestamped copy of your privacy policy (e.g., via the Wayback Machine or a PDF printout) and cross‑reference it with the tags you found in Step 1. Every tag that sets cookies or processes personal data should be disclosed. If you’re unsure what qualifies as personal data, our What is GDPR guide explains the broad definition.

Step 7: Close the DSAR Gap

A Data Subject Access Request (DSAR) is when a user asks what personal data you hold about them. Your Next.js site must be able to respond to these requests. The evidence pack should include a record of how you handle DSARs: where the data is stored, how you retrieve it, and how you verify the requester’s identity.

For a typical Next.js site, personal data might be in:

  • Server‑side logs (IP addresses, user agents)
  • Analytics databases
  • Form submissions (contact forms, newsletter sign‑ups)
  • Cookies and local storage

Document your process for each. Even if you use a third‑party service, you are still the controller and must be able to facilitate the request.

Common Mistakes and How to Avoid Them

Mistake 1: Assuming the Banner Alone Is Enough

A cookie banner is just the front door. Without proper tag blocking, it’s an empty gesture. Always verify that your banner actually prevents tags from firing until consent is given. Use GDPRChecker’s scanner to check for pre‑consent network requests.

Mistake 2: Ignoring Server‑Side Rendering

Next.js’s SSR can inject tracking scripts into the initial HTML. If those scripts execute before the CMP loads, you have a compliance gap. Review your _document.js and any custom server code that might add scripts.

Mistake 3: Not Testing the Reject Flow

Many teams test only the “Accept All” path. The “Reject All” or “Save Settings” path is equally important. When a user rejects all non‑essential cookies, your site should not fire any marketing or analytics tags. Test this thoroughly with browser dev tools and a scanner.

Mistake 4: Forgetting About Iframes

Embedded content like YouTube videos or Google Maps often sets cookies. If you embed them directly, they may fire before consent. Use a two‑click solution or a consent‑aware wrapper that only loads the iframe after consent.

Mistake 5: Neglecting Post‑Change Scans

Every time you deploy a new feature, add a script, or update your CMP configuration, the compliance landscape can shift. Make post‑change scans part of your deployment pipeline. GDPRChecker can be automated to run after each deployment, giving you a fresh audit evidence pack.

How to Validate with GDPRChecker

GDPRChecker scans help verify pre‑consent network requests, banner behavior, and disclosure gaps after changes. Here’s how to integrate it into your Next.js audit evidence pack preparation:

  1. Run a baseline scan: Before making any changes, scan your site to see the current state. The report will show which tags fire before consent, whether your banner appears correctly, and if your privacy policy is detected.
  2. Address the gaps: Use the scan results to close the gaps identified in the steps above.
  3. Re‑scan and compare: After making changes, run another scan. The difference between the two reports is your evidence of improvement.
  4. Schedule recurring scans: Compliance is not a one‑time event. Set up weekly or monthly scans and save the reports as part of your ongoing audit evidence pack.
  5. Export and store: GDPRChecker allows you to export scan reports as PDFs. Timestamp and store these alongside your other evidence.

For a complete checklist of what to look for, see our Website GDPR Audit Checklist.

Implementation Checklist

Use this checklist to build your Next.js audit evidence pack. Tick off each item as you complete it.

  1. Map all third‑party tags and their purposes.
  2. Document the legal basis for each tag (consent, legitimate interest, etc.).
  3. Configure your CMP to block all non‑essential tags by default.
  4. Implement Google Consent Mode v2 if using Google services.
  5. Verify that no analytics or marketing tags fire before consent (use browser dev tools and GDPRChecker).
  6. Test the full consent flow: Accept All, Reject All, and granular preferences.
  7. Confirm that the consent state is correctly communicated to Google (check the gcs parameter).
  8. Cross‑reference your privacy policy with the tags actually running on your site.
  9. Capture a timestamped copy of your privacy policy and cookie policy.
  10. Document your DSAR handling process.
  11. Run a GDPRChecker scan and save the report.
  12. Schedule recurring scans and add them to your evidence pack.

FAQ

What is Next.js audit evidence pack preparation guide?

It’s a practical compliance topic for website owners validating consent, tags, and disclosures. This guide shows you how to collect verifiable records—like scanner reports, consent logs, and policy snapshots—that prove your Next.js site meets GDPR requirements.

Do I need Next.js audit evidence pack preparation guide for GDPR?

Yes, if you operate a Next.js website that processes personal data of EU residents. The GDPR requires demonstrable accountability, and an audit evidence pack is the standard way to show regulators, partners, or clients that you have implemented appropriate technical and organizational measures.

How do I implement Next.js audit evidence pack preparation guide?

Follow the step‑by‑step process in this guide: map your tags, configure your CMP with default deny, implement Google Consent Mode v2 if applicable, close the cookie banner and privacy policy gaps, document your DSAR process, and validate everything with a scanner like GDPRChecker.

How can I verify Next.js audit evidence pack preparation guide with a scanner?

Use GDPRChecker to scan your site before and after changes. The scanner checks for pre‑consent network requests, banner behavior, and disclosure gaps. Compare scan reports to confirm that no unconsented tracking occurs, and save the reports as evidence.

What are common Next.js audit evidence pack preparation guide mistakes?

Common mistakes include assuming the banner alone is sufficient, ignoring server‑side rendered scripts, not testing the reject flow, forgetting about iframes, and neglecting post‑change scans. Each of these can leave your site non‑compliant despite having a visible cookie banner.

Keeping Your Evidence Pack Current

A Next.js audit evidence pack is not a one‑and‑done document. Your site changes, third‑party services update their scripts, and regulatory guidance evolves. Make evidence collection part of your development workflow:

  • Run a GDPRChecker scan after every major deployment.
  • Review your tag map quarterly.
  • Update your privacy policy whenever you add or remove a service.
  • Retest consent flows after any CMP or tag manager configuration change.

For more detailed guidance on specific compliance areas, explore our related guides:

Ready to build your Next.js audit evidence pack? Start by scanning your site with GDPRChecker. Our scanner identifies pre‑consent requests, banner issues, and disclosure gaps in minutes, giving you the first piece of evidence for your pack. Run your first scan now.

This guide is technical implementation guidance for website owners. It is not legal advice.

GDPRChecker guides are educational resources and do not constitute legal advice. Use them to understand technical and operational privacy requirements, and consult qualified counsel for legal interpretation.

Check Your Website in Under 60 Seconds

  • Sign in required
  • GDPR-focused checks
  • Cookie banner detection
  • Privacy policy verification