GDPRChecker

Home / Knowledge Base / React Audit Evidence Pack Preparation Guide: Build a GDPR-Ready Compliance Record

Website Compliance

React Audit Evidence Pack Preparation Guide: Build a GDPR-Ready Compliance Record

A practical guide for React website owners to prepare a GDPR audit evidence pack. Covers step-by-step implementation, common mistakes, and validation with GDPRChecker scans. Includes a checklist and FAQ to help you document compliance effectively.

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

10 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.

For website owners running React applications, demonstrating GDPR compliance isn’t just about having a privacy policy or a cookie banner. Regulators and partners increasingly expect documented evidence that your consent mechanisms, tag management, and data disclosures work as intended. A React audit evidence pack preparation guide helps you systematically collect and organize the proof that your site respects user choices. This guide focuses on the technical verification steps you can take today, using GDPRChecker’s scanning tools to validate your setup. It provides practical implementation guidance, not legal advice.

What a React Audit Evidence Pack Means for Website Owners

A React audit evidence pack is a structured collection of screenshots, scan reports, configuration exports, and logs that prove your website’s compliance posture at a specific point in time. Because React apps often load tags and scripts asynchronously and manage state on the client side, traditional server-side checks can miss critical consent gaps. Your evidence pack should capture:

  • Consent defaults before any user interaction.
  • Network requests fired on page load, including those from third-party scripts.
  • Banner behavior across different interaction paths (accept all, reject all, granular choices).
  • Tag manager configurations that enforce consent signals.
  • Policy disclosures and their accessibility from every page.

This pack serves as your internal audit trail and can be shared with data protection authorities or commercial partners who need to verify your compliance. GDPRChecker scans help verify pre-consent network requests, banner behavior, and disclosure gaps after changes, making the evidence collection repeatable and less error-prone.

Requirements and Compliance Expectations

Under the GDPR, consent must be freely given, specific, informed, and unambiguous. See EDPB Guidelines 05/2020 on consent. For a React site, this translates into several technical requirements:

  • No pre-consent tracking: Tags like Google Analytics, Meta Pixel, or LinkedIn Insight Tag must not fire before the user has made a choice, unless they are configured to operate in a consent-compliant mode (e.g., Google Consent Mode).
  • Clear affirmative action: Pre-ticked checkboxes or implied consent from scrolling are not valid. The banner must require a deliberate click or tap.
  • Granular options: Users must be able to accept or reject individual purposes (e.g., analytics, marketing, functional) if you process data for multiple purposes.
  • Easy withdrawal: Changing or withdrawing consent should be as easy as giving it, typically via a persistent consent management icon.
  • Documented disclosures: Your privacy policy must list all data recipients, purposes, and legal bases, and be linked from the consent banner.

Regulatory guidance from the European Data Protection Board (EDPB) emphasizes that consent mechanisms must be demonstrably effective. This means you need evidence that your implementation actually prevents non-essential data processing before consent. A React audit evidence pack directly addresses this need by providing timestamped proof of your site’s behavior.

How to Implement a React Audit Evidence Pack Step by Step

Step 1: Map Your Data Flows and Tags

Before you can collect evidence, you need a clear inventory of what runs on your site. In a React app, tags can be loaded via:

  • Direct <script> injections in index.html.
  • Third-party libraries like react-ga, react-gtm-module, or next/script.
  • Tag Manager containers (GTM) that fire tags based on triggers.
  • Dynamic imports or lazy-loaded components that initialize tracking.

Document every tag, its purpose, the data it collects, and the conditions under which it fires. This map will guide your evidence collection.

Step 2: Configure Consent Mode Correctly

If you use Google services, implement Consent Mode v2 to signal user consent choices to Google tags. In a React app, you typically integrate Consent Mode via the gtag API or through GTM. The default consent state must be set to 'denied' for all non-essential purposes before any tags fire. For example:

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('consent', 'default', {
  'ad_storage': 'denied',
  'analytics_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'wait_for_update': 500
});

This snippet must run before any other tracking code. In React, you can place it in the <head> of your index.html or use a dedicated script that loads synchronously. After the user grants consent, update the consent state accordingly. Your evidence pack should include a scan showing that no Google cookies are set before consent.

Step 3: Implement a GDPR-Compliant Consent Banner

Choose a Consent Management Platform (CMP) that integrates well with React. The banner must:

  • Block all non-essential scripts until consent is obtained.
  • Offer a “Reject All” button that is as prominent as “Accept All”.
  • Provide a link to the privacy policy and cookie policy.
  • Store consent choices in a cookie or localStorage and respect them on subsequent visits.

In React, you can use a CMP that exposes a JavaScript API to control script loading. For custom implementations, use React state to conditionally render tracking components only after consent. For example:

{consent.analytics && <AnalyticsTracker />}

Your evidence pack must include screenshots of the banner in its default state, after rejection, and after acceptance, plus a scan confirming that rejected categories do not load.

Step 4: Close the Cookie Banner Gap

The cookie banner gap occurs when a banner is present but does not actually prevent tracking scripts from loading. In React, this can happen if:

  • Scripts are loaded in index.html before the CMP script.
  • Tags are fired via GTM triggers that ignore consent signals.
  • Third-party libraries initialize tracking in their constructors before consent is checked.

To close this gap, audit your bundle and network requests. Use GDPRChecker to scan your site and identify any requests that fire before consent. Your evidence pack should include a scan report showing zero non-essential requests on the first page load.

Step 5: Close the Google CMP Gap

Even with a CMP, Google tags may fire if Consent Mode is not properly integrated. The Google CMP gap refers to scenarios where Google tags do not respect the consent signals sent by your CMP. To close it:

  • Verify that your CMP is registered as a Google CMP partner if you use Google’s consent management requirements.
  • Ensure that Consent Mode defaults are set to denied and that your CMP updates them only after user interaction.
  • Test with Google Tag Assistant or GDPRChecker to confirm that gcs and gcd parameters reflect the correct consent state.

Your evidence pack should include a screenshot of the consent state in Tag Assistant and a GDPRChecker scan showing no Google requests before consent.

Step 6: Close the Privacy Policy Gap

The privacy policy gap exists when your policy is incomplete, hard to find, or not linked from the consent banner. Your React app should:

  • Have a dedicated privacy policy page accessible from every page (e.g., in the footer).
  • List all third-party data processors, the purposes of processing, and the legal basis.
  • Be linked directly from the consent banner.
  • Be kept up to date as you add new tags or features.

Your evidence pack should include a screenshot of the banner with the policy link visible, and a copy of the policy itself.

Step 7: Close the DSAR Gap

Data Subject Access Requests (DSARs) require you to provide users with a copy of their personal data. In a React app, personal data may be scattered across analytics databases, CRM systems, and server logs. To close the DSAR gap:

  • Document where personal data is stored for each tag.
  • Implement a process to retrieve and compile data upon request.
  • Provide a clear contact method for DSARs in your privacy policy.

Your evidence pack should include your DSAR procedure document and proof that the contact method works (e.g., a test email).

Step 8: Assemble the Evidence Pack

Once all gaps are closed, compile your evidence pack. A typical pack includes:

  • Scan reports: GDPRChecker scans showing pre-consent and post-consent network activity.
  • Screenshots: Banner default state, after reject, after accept, privacy policy link.
  • Configuration exports: GTM container export, CMP settings, Consent Mode code snippet.
  • Policy documents: Current privacy policy, cookie policy, DSAR procedure.
  • Test logs: Results of manual rejection and acceptance tests.

Date and version everything. Repeat the process after any significant change to your React app or tag setup.

Common Mistakes and How to Avoid Them

1. Assuming the Banner Alone Is Enough

A common mistake is believing that installing a consent banner automatically makes the site compliant. In reality, the banner must actively control script execution. Without proper integration, tags may fire regardless of user choice. Always verify with a scanner.

2. Ignoring Pre-Consent Network Requests

React’s dynamic nature can mask early network requests. For example, a component that initializes a tracking library in useEffect may fire before the consent state is resolved. Use GDPRChecker to catch these requests and refactor your code to gate them behind consent.

3. Misconfiguring Consent Mode Defaults

Setting Consent Mode defaults to 'granted' or omitting them entirely is a critical error. This causes Google tags to fire with full data collection before consent. Always set defaults to 'denied' and update only after user choice.

4. Forgetting About Server-Side Rendering (SSR)

If you use Next.js or another SSR framework, tags can fire on the server before React even hydrates. Ensure that any tracking code is client-side only and gated by consent. Use dynamic imports with ssr: false for tracking components.

5. Not Testing the Reject Flow

Many teams test only the “Accept All” path. The reject flow is equally important. Verify that rejecting all cookies actually prevents non-essential scripts from loading and that the site remains functional.

6. Overlooking Policy Updates

Adding a new marketing pixel without updating the privacy policy creates a disclosure gap. Make policy updates part of your development workflow.

How to Validate with GDPRChecker

GDPRChecker provides automated scans that are essential for building your React audit evidence pack. Here’s how to use it effectively:

  1. Pre-change baseline scan: Before making any changes, scan your site to document the current state. This becomes your “before” evidence.
  2. Post-change verification scan: After implementing consent controls, scan again to confirm that pre-consent requests are blocked.
  3. Banner behavior checks: Use the scanner to verify that the banner appears correctly and that rejecting cookies stops non-essential tags.
  4. Disclosure gap detection: GDPRChecker can identify missing policy links or incomplete disclosures.
  5. Scheduled re-scans: Set up regular scans to catch regressions after deployments.

Include the scan reports in your evidence pack as timestamped proof of compliance. For a deeper dive into specific compliance areas, explore our related guides:

Ready to build your evidence pack? Run your first GDPRChecker scan now and start closing compliance gaps with confidence.

Implementation Checklist

Use this checklist to ensure your React audit evidence pack is complete:

  1. Map all tags and data flows in your React application.
  2. Set Google Consent Mode defaults to denied before any tags fire.
  3. Implement a consent banner that blocks non-essential scripts by default.
  4. Verify that the banner offers a prominent “Reject All” button.
  5. Test that rejecting cookies prevents all non-essential network requests.
  6. Confirm that the privacy policy is linked from the banner and accessible site-wide.
  7. Update the privacy policy to list all data processors and purposes.
  8. Document your DSAR procedure and test the contact method.
  9. Run a GDPRChecker pre-consent scan and save the report.
  10. Run a post-consent scan after acceptance and rejection, and save both reports.
  11. Export your GTM container and CMP configuration as JSON or screenshots.
  12. Compile all evidence into a dated, versioned pack and store it securely.

FAQ

What is React audit evidence pack preparation guide?

A React audit evidence pack preparation guide is a practical compliance topic for website owners validating consent, tags, and disclosures. It helps you collect scan reports, screenshots, and configuration exports to prove your React site respects user choices under GDPR.

Do I need React audit evidence pack preparation guide for GDPR?

While not a legal requirement, preparing an evidence pack is a best practice for demonstrating accountability. It provides documented proof that your consent mechanisms work, which can be crucial during audits or partner reviews.

How do I implement React audit evidence pack preparation guide?

Start by mapping your tags, configuring Consent Mode defaults to denied, implementing a blocking consent banner, and closing gaps in cookie banners, Google CMP integration, privacy policies, and DSARs. Then compile scans and screenshots into a dated pack.

How can I verify React audit evidence pack preparation guide with a scanner?

Use GDPRChecker to scan your site before and after consent. The scanner checks for pre-consent network requests, banner behavior, and disclosure gaps. Include these timestamped reports in your evidence pack as objective proof.

What are common React audit evidence pack preparation guide mistakes?

Common mistakes include assuming a banner alone ensures compliance, ignoring pre-consent network requests, misconfiguring Consent Mode defaults, forgetting SSR implications, not testing the reject flow, and overlooking policy updates after adding new tags.

Next step

Run a GDPRChecker scan to validate consent behavior, trackers, and disclosures after you implement the checklist above.

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