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

---

Tykače pytać

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

# SunnyGDPR

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

[Sćahnyć](https://downloads.wordpress.org/plugin/sunnygdpr.1.1.0.zip)

 * [Podrobnosće](https://hsb.wordpress.org/plugins/sunnygdpr/#description)
 * [Pohódnoćenja](https://hsb.wordpress.org/plugins/sunnygdpr/#reviews)
 *  [Instalacija](https://hsb.wordpress.org/plugins/sunnygdpr/#installation)
 * [Wuwiće](https://hsb.wordpress.org/plugins/sunnygdpr/#developers)

 [Podpěra](https://wordpress.org/support/plugin/sunnygdpr/)

## Wopisanje

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.

## Fota wobrazowki

[[

[[

## Instalacija

 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.

## HSP

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

## Pohódnoćenja

Za tutón tykač pohódnoćenja njejsu.

## Sobuskutkowarjo a wuwiwarjo

„SunnyGDPR“ je softwara wotewrjeneho žórła. Slědowacy ludźo su k tutomu tykačej 
přinošowali.

Sobuskutkowarjo

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

[Přełožće „SunnyGDPR“ do swojeje rěče.](https://translate.wordpress.org/projects/wp-plugins/sunnygdpr)

### Na wuwiću zajimowany?

[Přehladajće kod](https://plugins.trac.wordpress.org/browser/sunnygdpr/), hladajće
do [SVN-repozitorija](https://plugins.svn.wordpress.org/sunnygdpr/) abo abonujće
[wuwiwanski protokol](https://plugins.trac.wordpress.org/log/sunnygdpr/) přez [RSS](https://plugins.trac.wordpress.org/log/sunnygdpr/?limit=100&mode=stop_on_copy&format=rss).

## Protokol změnow

#### 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**
 *  Last updated **1 měsac**
 *  Active installations **Mjenje hač 10**
 *  WordPress version ** 5.6 abo nowši **
 *  Tested up to **7.1.2**
 *  PHP version ** 7.4 abo nowši **
 *  Language
 * [English (US)](https://wordpress.org/plugins/sunnygdpr/)
 * Tags
 * [cookie banner](https://hsb.wordpress.org/plugins/tags/cookie-banner/)[cookie consent](https://hsb.wordpress.org/plugins/tags/cookie-consent/)
   [GDPR](https://hsb.wordpress.org/plugins/tags/gdpr/)[privacy](https://hsb.wordpress.org/plugins/tags/privacy/)
   [tracking code](https://hsb.wordpress.org/plugins/tags/tracking-code/)
 *  [Rozšěrjeny napohlad](https://hsb.wordpress.org/plugins/sunnygdpr/advanced/)

## Pohódnoćenja

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/sunnygdpr/reviews/)

## Sobuskutkowarjo

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

## Podpěra

Chceće něšto prajić? Trjebaće pomoc?

 [Forum pomocy pokazać](https://wordpress.org/support/plugin/sunnygdpr/)