Title: SunnyGDPR
Author: sunnywebstudio
Published: <strong>12. August 2026</strong>
Last modified: 24. August 2026

---

Plugins suchen

![](https://ps.w.org/sunnygdpr/assets/icon-256x256.png?rev=3643546)

# SunnyGDPR

 Von [sunnywebstudio](https://profiles.wordpress.org/sunnywebstudio/)

[Herunterladen](https://downloads.wordpress.org/plugin/sunnygdpr.1.1.0.zip)

 * [Details](https://de.wordpress.org/plugins/sunnygdpr/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/sunnygdpr/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/sunnygdpr/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/sunnygdpr/#developers)

 [Support](https://wordpress.org/support/plugin/sunnygdpr/)

## Beschreibung

SunnyGDPR provides a simple, ultra-fast, and compliant cookie banner for your WordPress
website.

Unlike heavy, resource-intensive GDPR „all-in-one“ plugins that try to catch, block,
and analyze every single request on the fly, SunnyGDPR follows a smart, developer-
friendly logic:

As a site owner or developer, you already know exactly which scripts require consent
before firing (such as Google Analytics, Yandex Metrika, Facebook Pixel, or ad tracking
codes). In version 1.1, SunnyGDPR introduces a dedicated field in the admin settings
where you can paste these conditional scripts.

### How it works:

 1. **Before consent:** Tracking codes and analytical scripts remain completely omitted
    from the HTML output.
 2. **Upon consent:** The user accepts the GDPR terms, a consent cookie is written 
    for 1 year, and the page automatically reloads to inject and execute the approved
    scripts.
 3. **If declined:** The user is redirected to an isolated static HTML page (`cookie-
    declined.html`), preventing unnecessary server and database queries.

No overhead, no bloat, and zero impact on your site speed.

#### Key Features

 * **Lightweight & Blazing Fast:** Built with pure Vanilla JS and clean CSS without
   external dependencies.
 * **Conditional Script Output:** Inject tracking, analytics, or marketing scripts
   only after explicit user consent.
 * **One-Year Consent Cookie:** Remembers user choice for 365 days (`sunnygdpr_consent`).
 * **Autonomous Decline Handler:** Static HTML page for declined users to save server
   resources.
 * **Fully Customizable:** Easily edit consent texts, button labels, and code snippets
   from WP Admin.
 * **Clean Uninstall:** Automatically removes all stored settings upon uninstallation.

## Screenshots

[[

[[

## Installation

 1. Upload the `sunnygdpr` folder to your `/wp-content/plugins/` directory (or upload
    the `.zip` file via WP Admin).
 2. Activate the plugin through the ‚Plugins‘ menu in WordPress.
 3. Go to **Settings -> SunnyGDPR** to configure your banner text, redirect settings,
    and conditional tracking scripts.

## FAQ

### Does this plugin affect site speed?

No. Unlike complex GDPR plugins that parse and block requests dynamically, SunnyGDPR
only injects scripts after consent. It relies on pure JavaScript and lightweight
PHP, causing virtually zero performance overhead.

### How do I add my Google Analytics or tracking pixels?

Go to **Settings -> SunnyGDPR** and paste your script tags into the designated post-
consent code field. The plugin will automatically hold back these scripts until 
the visitor clicks „Accept“.

### Where are the plugin settings stored?

All options are saved under a single array key `sunnygdpr_options` in your WordPress
options table.

### What happens when a user declines cookies?

The user is redirected to a static HTML page (`cookie-declined.html`) located inside
the plugin directory. They will not be able to browse the site until they accept
the cookie policy.

## Rezensionen

Zu diesem Plugin liegen noch keine Rezensionen vor.

## Mitwirkende und Entwickler

„SunnyGDPR“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ sunnywebstudio ](https://profiles.wordpress.org/sunnywebstudio/)

[Übersetze „SunnyGDPR“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/sunnygdpr)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/sunnygdpr/), 
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/sunnygdpr/) an oder
abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/sunnygdpr/)
per [RSS](https://plugins.trac.wordpress.org/log/sunnygdpr/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 1.1.0

 * **New Feature:** Added a dedicated field in Admin Settings to inject scripts (
   analytics, ads, tracking pixels) strictly after user consent.
 * **Performance:** Optimized consent logic — automatic page reload upon consent
   to deliver accepted scripts with 1-year cookie storage.
 * **Refinement:** Minor UI improvements in the admin panel and updated plugin description.

#### 1.0.0

 * Initial official release.

## Meta

 *  Version **1.1.0**
 *  Zuletzt aktualisiert **vor 4 Tagen**
 *  Aktive Installationen **weniger als 10**
 *  WordPress-Version ** 5.6 oder höher **
 *  Getestet bis **7.1**
 *  PHP-Version ** 7.4 oder höher **
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/sunnygdpr/)
 * Schlagwörter
 * [cookie banner](https://de.wordpress.org/plugins/tags/cookie-banner/)[cookie consent](https://de.wordpress.org/plugins/tags/cookie-consent/)
   [GDPR](https://de.wordpress.org/plugins/tags/gdpr/)[privacy](https://de.wordpress.org/plugins/tags/privacy/)
   [tracking code](https://de.wordpress.org/plugins/tags/tracking-code/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/sunnygdpr/advanced/)

## Bewertungen

Es wurden noch keine Rezensionen eingereicht.

[Deine Rezension](https://wordpress.org/support/plugin/sunnygdpr/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/sunnygdpr/reviews/)

## Mitwirkende

 *   [ sunnywebstudio ](https://profiles.wordpress.org/sunnywebstudio/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/sunnygdpr/)