{"id":351285,"date":"2026-08-12T13:52:18","date_gmt":"2026-08-12T13:52:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/sunnygdpr\/"},"modified":"2026-08-24T19:29:50","modified_gmt":"2026-08-24T19:29:50","slug":"sunnygdpr","status":"publish","type":"plugin","link":"https:\/\/hr.wordpress.org\/plugins\/sunnygdpr\/","author":23505528,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.0","stable_tag":"1.1.0","tested":"7.1","requires":"5.6","requires_php":"7.4","requires_plugins":null,"header_name":"SunnyGDPR","header_author":"SunnyWebStudio, Aleksei Sukhoverkhov","header_description":"High-performance engine for GDPR","assets_banners_color":"fed530","last_updated":"2026-08-24 19:29:50","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/sunnywebstudio.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":88,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"sunnywebstudio","date":"2026-08-12 13:52:10"},"1.1.0":{"tag":"1.1.0","author":"sunnywebstudio","date":"2026-08-24 19:29:50"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":3643546,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1560x500.jpg":{"filename":"banner-1560x500.jpg","revision":3643546,"resolution":"1560x500","location":"assets","locale":"","width":1560,"height":500}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":3643546,"resolution":"1","location":"assets","locale":"","width":1875,"height":825},"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":3643546,"resolution":"2","location":"assets","locale":"","width":1188,"height":156}},"screenshots":[]},"plugin_section":[],"plugin_tags":[20272,16626,131785,396,3336],"plugin_category":[54],"plugin_contributors":[264132],"plugin_business_model":[],"class_list":["post-351285","plugin","type-plugin","status-publish","hentry","plugin_tags-cookie-banner","plugin_tags-cookie-consent","plugin_tags-gdpr","plugin_tags-privacy","plugin_tags-tracking-code","plugin_category-security-and-spam-protection","plugin_contributors-sunnywebstudio","plugin_committers-sunnywebstudio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sunnygdpr\/assets\/icon-256x256.png?rev=3643546","icon_2x":"https:\/\/ps.w.org\/sunnygdpr\/assets\/icon-256x256.png?rev=3643546","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/sunnygdpr\/assets\/screenshot-1.jpg?rev=3643546","caption":""},{"src":"https:\/\/ps.w.org\/sunnygdpr\/assets\/screenshot-2.jpg?rev=3643546","caption":""}],"raw_content":"<!--section=description-->\n<p>SunnyGDPR provides a simple, ultra-fast, and compliant cookie banner for your WordPress website.<\/p>\n\n<p>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:<\/p>\n\n<p>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.<\/p>\n\n<h3>How it works:<\/h3>\n\n<ol>\n<li><strong>Before consent:<\/strong> Tracking codes and analytical scripts remain completely omitted from the HTML output.<\/li>\n<li><strong>Upon consent:<\/strong> 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.<\/li>\n<li><strong>If declined:<\/strong> The user is redirected to an isolated static HTML page (<code>cookie-declined.html<\/code>), preventing unnecessary server and database queries.<\/li>\n<\/ol>\n\n<p>No overhead, no bloat, and zero impact on your site speed.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Lightweight &amp; Blazing Fast:<\/strong> Built with pure Vanilla JS and clean CSS without external dependencies.<\/li>\n<li><strong>Conditional Script Output:<\/strong> Inject tracking, analytics, or marketing scripts only after explicit user consent.<\/li>\n<li><strong>One-Year Consent Cookie:<\/strong> Remembers user choice for 365 days (<code>sunnygdpr_consent<\/code>).<\/li>\n<li><strong>Autonomous Decline Handler:<\/strong> Static HTML page for declined users to save server resources.<\/li>\n<li><strong>Fully Customizable:<\/strong> Easily edit consent texts, button labels, and code snippets from WP Admin.<\/li>\n<li><strong>Clean Uninstall:<\/strong> Automatically removes all stored settings upon uninstallation.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>sunnygdpr<\/code> folder to your <code>\/wp-content\/plugins\/<\/code> directory (or upload the <code>.zip<\/code> file via WP Admin).<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to <strong>Settings -&gt; SunnyGDPR<\/strong> to configure your banner text, redirect settings, and conditional tracking scripts.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20affect%20site%20speed%3F\"><h3>Does this plugin affect site speed?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt id=\"how%20do%20i%20add%20my%20google%20analytics%20or%20tracking%20pixels%3F\"><h3>How do I add my Google Analytics or tracking pixels?<\/h3><\/dt>\n<dd><p>Go to <strong>Settings -&gt; SunnyGDPR<\/strong> 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\".<\/p><\/dd>\n<dt id=\"where%20are%20the%20plugin%20settings%20stored%3F\"><h3>Where are the plugin settings stored?<\/h3><\/dt>\n<dd><p>All options are saved under a single array key <code>sunnygdpr_options<\/code> in your WordPress options table.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20a%20user%20declines%20cookies%3F\"><h3>What happens when a user declines cookies?<\/h3><\/dt>\n<dd><p>The user is redirected to a static HTML page (<code>cookie-declined.html<\/code>) located inside the plugin directory. They will not be able to browse the site until they accept the cookie policy.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li><strong>New Feature:<\/strong> Added a dedicated field in Admin Settings to inject scripts (analytics, ads, tracking pixels) strictly after user consent.<\/li>\n<li><strong>Performance:<\/strong> Optimized consent logic \u2014 automatic page reload upon consent to deliver accepted scripts with 1-year cookie storage.<\/li>\n<li><strong>Refinement:<\/strong> Minor UI improvements in the admin panel and updated plugin description.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial official release.<\/li>\n<\/ul>","raw_excerpt":"Lightweight, high-performance GDPR cookie consent banner with zero frontend dependencies and post-consent code injection.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/351285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=351285"}],"author":[{"embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sunnywebstudio"}],"wp:attachment":[{"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=351285"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=351285"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=351285"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=351285"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=351285"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/hr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=351285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}