=== Surbma | GDPR Proof Cookie Consent & Notice Bar ===
Contributors: Surbma, CherryPickStudios, freemius
Donate link: https://surbma.com/donate/
Tags: gdpr, cookie, cookie compliance, cookie consent, google analytics
Requires at least: 5.4
Tested up to: 6.8
Stable tag: 17.9.1
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This plugin helps your website to comply with GDPR cookie regulations by asking every visitors to accept or decline cookie tracking.

== Description ==

The Surbma | GDPR Proof Cookie Consent & Notice Bar plugin helps your website to comply with GDPR cookie regulations by asking every visitors to accept or decline cookies. If visitor choose to decline, than the tracking codes (Google Anayltics, Facebook Pixel) are not loading. If visitor accepts cookies, than the tracking codes (Google Anayltics, Facebook Pixel) are loading. So visitors can choose to be tracked or not, before they visit any page of the website. They even can change their minds and set again the cookies.

>Demo link for Cookie Snackbar and Cookie Popup:
>[Snackbar & Popup DEMO](https://surbma.com/wordpress-plugins/surbma-gdpr-proof-cookie-consent-notice-bar/)
>Demo link for Cookie Shortcodes:
>[Cookie list & Cookie revoke DEMO](https://surbma.com/privacy-cookie-policy/)

### All In One Tracking & Marketing Solution

This plugin manages its own codes, so you have to remove old Google Analytics and Facebook Pixel codes. It is an easy way to embed your tracking and marketing scripts, without coding and file modifications.

The Surbma | GDPR Proof Cookie Consent & Notice Bar plugin can be used as a simple Cookie Policy plugin, if you don't have any tracking or marketing cookies on your website. Simple and beautiful solution for all websites.

The cookie saved by this plugin is not storing any sensitive personal data, it is storing only two fix values: "yes" or "no". This cookie management is GDPR proof, as it is impossible to identify any user with the cookie data. Cookies will expire after 30 days by default.

### Cache Proof Technology

The Surbma | GDPR Proof Cookie Consent & Notice Bar plugin is the first cookie notice solution, that is compatible with all kind of cache systems. It even works with all managed WordPress hostings' server side cache solutions.

### Limited Liability

>This plugin does not substitute any legal adequacy. Texts, that are displayed in the popup is edited by the user of this plugin and I do not take any responsibility regarding GDPR adequacy or change.

### Free version features

- Google Analytics Cookie Management
- Facebook Pixel Cookie Management
- Snackbar Before Popup
- Simple Cookie Policy Popup
- Hide Decline Button
- Cookie-Free Social Share Buttons
- Cookie Scan Page
- Live Cookie Scan Shortcode
- Cookie Settings Link With Shortcode
- Cookie Policy
- Developer Friendly
- WPML & Polylang Compatible

### Additional features in the Pro version

- 6 Positions For Snackbar
- Full Customizations
- Cookie Policy Link
- Popup Styles
- Popup Themes
- Full Cookie Control
- Google Analytics IP Anonymization
- Google Analytics Tracking Code Customizations
- Facebook Pixel Customer Identifiers Settings
- Location and design settings for the Cookie-Free Social Share Buttons

### Available languages

- English (US)
- Hungarian
- Spanish (Spain)

### Features in details

#### Simple Cookie Policy popup
If you don't have such cookies on your website, that need visitor consent, you can use this plugin as a simple Cookie Policy popup, so you can inform your visitors about the cookies you use. It will show your informations in a beautiful popup and a link to your Cookie Policy page.

#### Hide Decline button
If you only want to show the Accept button, you can hide the Decline button.

#### Cookie-Free Social Share Buttons
You can add Facebook, Google Plus, Twitter, LinkedIn, Pinterest and Email Share Buttons to posts, pages or even custom post types. These share buttons are loading really fast (almost 0 impact in page load time) and they are not using any Cookies on your website. So you can exclude social sharing topic from your Cookie Policy page. Choose if you want to show the buttons before or after the content or both positions. There are pre-defined styles to choose from, but Social Share Buttons can easily changed via CSS.

There is a shortcode also for the social share buttons, that can be used anywhere on your website:

	`[surbma-social-buttons]`

#### Cookie Scan page
This page will display all the saved cookies for you, so you can see, what cookies are used in your website.

#### Live Cookie Scan shortcode
You can display all the actual Cookies, a visitor has right now. It is not a full list of Cookies, that your website is using!

This is the shortcode: `[surbma-live-cookie-scan]`

**It has 1 attribute:**

cookievalue - Show or hide the Cookie values in the list.

**Example:**

    `[surbma-live-cookie-scan cookievalue="false"]`

#### Cookie Settings Link
There is a shortcode, that will place a link in your content. Clicking on the link will open the Cookie Popup again, and users can change their settings about the Cookie trackings.

This is the shortcode: `[surbma-cookie-popup-link]`

**It has 2 attributes:**

class - You can set the class of the link, so you can easily create a button like link.
text - You can change the default text of the link, which is "Open Cookie Settings".

**Examples:**

    `[surbma-cookie-popup-link text="I've changed my mind about Cookie settings."]`
    `[surbma-cookie-popup-link class="button" text="Please show me the Cookie settings again!"]`

#### Cookie Policy
Set your Cookie Policy page, where the popup won't load for visitors. Cookie tracking codes are not loading on this page!

#### Developer Friendly
If you enable debug mode, popup will show always, on every refresh, so you can test how it works.

#### WPML & Polylang Compatible
If you have a multilingual website, you can set the texts for each language with WPML String Translation add-on.

#### Snackbar before Popup
Modest Snackbar before Popup display, so the first time is not that aggressive. The link in the Snackbar opens the Popup. Choose between 6 positions to show the Snackbar.

#### Full Customizations
Every text is customizable, even the button's texts! You can also set the design of the buttons.

#### Cookie Policy Link
Show your Cookie Policy page link in the popup.

#### Popup Styles
There are popup styles to choose the look and feel of the popup: Default, Almost Flat and Gradient. Fit the style to your website easily.

#### Popup Themes
There are popup themes to choose the design, you like. The Full Page Themes are hiding the entire content behind the popup. There are a lot of design settings to make the popup fit your website design. Dark mode is also available.

#### Full Cookie Control
Set cookie expiration for visitors, so the popup won't show again in X days, you set.

#### Google Analytics IP Anonymization
You might need to disable IP Anonymization of the hit sent to Google Analytics. This setting is active by default to ensure the maximum GDPR compliance, but you can disable this option.

#### Google Analytics Tracking Code Customizations
Choose between gtag.js framework or analytics.js library. You can also set, if you want to track logged in users or the admin area.

#### Facebook Pixel Customer Identifiers Settings
Add Facebook Pixel Customer Identifiers to your Facebook Pixel code. Improve the ability to match site visitors to people on Facebook by passing additional site visitor information (such as email address or phone number).

### About Surbma

#### You can find my other plugins and projects on GitHub

[https://github.com/Surbma](https://github.com/Surbma)

Please feel free to contribute, help or recommend any new features for my plugins, themes and other projects.

#### Do you want to know more about me?

Visit my webpage: [Surbma.com](https://surbma.com/)

#### Do you like and use my free plugins?

You can donate me for FREE here: [Surbma.com](https://surbma.com/donate/)

== Installation ==

1. Upload `surbma-gdpr-proof-google-analytics` folder to the `/wp-content/plugins/` directory
2. Activate the GDPR Proof Cookie Consent & Notice Bar plugin through the 'Plugins' menu in WordPress
3. Go to settings page: Settings -> GDPR Proof Cookies
4. Set the Popup content, display options, tracking code settings and approve the Limited Liability option.
5. That's it. :)

== Frequently Asked Questions ==

= Is it really GDPR compatible? =

This plugin shows a simple popup for every new visitors with two options: accept or decline the cookie tracking. If the visitor declines tracking, cookie tracking codes won't activate. This plugin gives you all the tools to make your cookie tracking GDPR proof, but it is your responsibility to use it the right way.

= What does Surbma mean? =

It is the reverse version of my last name. ;)

== Screenshots ==

1. Cookie Popup in front-end
2. Cookie Snackbar in front-end
3. Settings page in admin
4. Cookie scan page in admin
5. Documentation page in admin
6. Pricing page in admin

== Changelog ==

= 17.9.1 =

Release date: 2025-09-26

OTHER

- Removed a Tag from the plugin's header.

= 17.9.0 =

Release date: 2025-09-26

OTHER

- Freemius SDK updated to the latest version.
- Tested with the latest WordPress version.
- Re-compiled files.

= 17.8.2 =

Release date: 2023-07-05

OTHER

- Freemius SDK updated to latest version.

= 17.8.1 =

Release date: 2023-07-05

OTHER

- Re-compiled files.

= 17.8.0 =

Release date: 2023-07-05

OTHER

- Freemius SDK updated to 2.5.9 version.

= 17.7.0 =

Release date: 2023-04-08

OTHER

- Freemius SDK updated to 2.5.6 version.

= 17.6.0 =

Release date: 2023-03-25

OTHER

- Plugin name changed in a notification to the current name.
- Minor code optimizations.
- Tested with WordPress 6.2 version.
- Freemius SDK updated to 2.5.5 version.

FIXES

- Cross Site Scripting (XSS) vulnerability in the shortcode fixed, reported by yuyudhn.

= 17.5.3 =

Release date: 2022-03-03

FIXES

- Minor change for snackbar in css.

OTHER

- Tested with WordPress 5.9 version.
- Freemius SDK updated to 2.4.3 version.

= 17.5.2 =

Release date: 2021-08-13

FIXES

- Popup text will display paragraphs automatically without special html code.
- Popup text will be showed in a box with its own scroll bar, if text is too long. So buttons will be always visible.

OTHER

- Tested with WordPress 5.8 version.

= 17.5.1 =

Release date: 2021-05-18

Maintenance release.

OTHER

- CSS and JS files regenerated.
- Freemius SDK updated to 2.4.2 version.

= 17.5.0 =

Release date: 2020-12-20

OTHER

- Freemius SDK updated to 2.4.1 version.
- Tested with WordPress 5.6 version.
- Version number management by semver.org (again).

= 17.4 =

Release date: 2020-10-10

FIXES

- Dependent files are loading only, if Limited Liability is enabled.
- Social share parameters are escaped properly.
- Social share links are fixed to follow the latest standards. Pinterest and LinkedIn seems removed support for link sharing.
- Email share link opens in new tab.

= 17.3 =

Release date: 2020-10-03

FIXES

- Source JS file fix, so paths are pointing to the right folders.

OTHER

- CSS maps are regenerated.

= 17.2 =

Release date: 2020-10-03

FIXES

- Admin header fix to put the notices in the right place.
- Minor CSS fix for full width Snackbar.

OTHER

- Admin UIkit version updated to 3.5.8 version.
- Freemius SDK updated to 2.4.0.1 version.
- Tested with WordPress 5.5 version.

= 17.0 & 17.1 =

Release date: 2020-02-10

This version has no new feature, but has important changes under the hood. It is safe to update the plugin.

OTHER

- Tested with WordPress 5.3 version.
- Freemius SDK updated to 2.3.2 version.
- Updated to use a new way to deploy it to wp.org repo.

= 16.8 =

Release date: 2019-10-17

Freemius SDK updated to 2.3.1 version.

= 16.7 =

Release date: 2019-10-16

FIXES

- Social share icons paths are fixed.

= 16.6 =

Release date: 2019-10-07

FIXES

- Minor fix for modal header link focus.
- LESS optimizations.

= 16.5 =

Release date: 2019-10-07

Added new shortcode for social share buttons.

ENHANCEMENTS

- New shortcode for social share buttons.
- Social share buttons css is separated from the main css file.
- Enqueued scripts and styles get the version from a global variable to follow the plugin's version.

FIXES

- Modal z-index fixed to cover every layer.
- Buttons hover states fixed.

= 16.4 =

Release date: 2019-07-01

This version is a maintenance release with important fixes. It is safe and recommended to upgrade the plugin on live installs. Changes are valid for free and pro versions also.

FIXES

- Freemius SDK updated to 2.3.0 version.

= 16.2 & 16.3 =

Release date: 2019-06-15

This version is a maintenance release with small fixes and modifications. It is safe to upgrade the plugin on live installs. Changes are valid for free and pro versions also. If you use the social share buttons, note that the design is changed.

ENHANCEMENTS

- Optimized share buttons code and css.
- Genericons removed, new social-logos added.

FIXES

- Snackbar display fixed with debug mode on.
- Freemius SDK integration updated.

OTHER

- Google+ share button removed.
- Added UIkit 2 framework to plugin.

= 16.1 =

- FIX - Security fix.

= 16.0 =

- NEW - New Freemius SDK added with a new subscription account feature.
- FIX - Admin CSS change to fix the background.
- Minor changes in description.
- Tested with WordPress 5.0 version.

= 15.4 =

- Plugin name is changed to GDPR Proof Cookie Consent & Notice Bar
- TWEAK - New main menu name and icon.
- Minor changes in description.

= 15.3 =

- FIX - License validation for Snackbar full width option is fixed.

= 15.2 =

- FIX - Download link in admin now downloads the premium version, not the free version.
- ENHANCED - Added Snackbar texts to WPML & Polylang config file.
- PRO - New Freemius SDK added.

= 15.1 =

- NEW - Added notifications for free and premium users in different situations.
- ENHANCED - A lot of code optimization.

= 15.0 =

- NEW - The long awaited and much requested Snackbar is available in the FREE version!

= 14.0 =

- NEW - Cookie-Free Social Share Buttons! Yes, really Cookie-Free Social Share Buttons!
- ENHANCED - Admin pages show the page titles in the header.
- ENHANCED - Added global sidebar for admin pages.
- TWEAK - The main submenu is renamed.
- FIX - "Settings Saved" bar is displayed, when admin pages are saved.
- FIX - Settings validation is fixed for free version.

= 13.0 =

- PRO - Full width Snackbar.
- TWEAK - New demo links added to the plugin's description.

= 12.2 =

- NEW - Added screenshots to WordPress.org plugin repository.
- ENHANCED - Minor code optimization.

= 12.1 =

- FIX - Popup display is not dependent of the Google Analytics settings anymore. Free all Popup!
- ENHANCED - Code optimization and preparing for custom scripts. The big step is coming.
- PRO & GDPR - New Freemius SDK, that will bring new GDPR compatible features for customers.

= 12.0 =

- NEW - Facebook Pixel has arrived finally. More services are coming soon.
- PRO - Facebook Pixel Customer Identifiers settings.
- PRO - New Popup styles. Fit the style to your website easily.
- FIX - Button alignment is working again.
- FIX - If Decline button is hidden, no JS trigger for that button.
- FIX - Accept button is not triggering Google Analytics send function, as the script is blocked.
- ENHANCED - Cookie set script is modified to create multiple cookies. Preparing for Cookie categories.
- ENHANCED - Minor code optimization.

= 11.2 =

- FIX - Pro features are enabled for trial users also. Sorry!

= 11.1 =

- FIX - Shame on me, new Snackbar didn't see the surbma_gpga cookie. Now it works as expected.

= 11.0 =

- PRO - The long awaited and much requested Snackbar is HERE!
- NEW - Documentation menu with shortcode descriptions and how-tos.
- ENHANCED - Minor changes in admin styles.
- ENHANCED - Minor description changes.

= 10.0 =

- NEW - Shortcode to show the actual Cookies for visitors: [surbma-live-cookie-scan]
- NEW - Hide Decline button, if you don't want to show it.
- PRO - 7 days trial can be selected to try all PRO features.

= 9.1 =

- FIX - Cookie Popup will load on Cookie Policy page with the [surbma-cookie-popup-link] shortcode.
- FIX - Popup close X button format, to prevent underline text decoration.
- ENHANCED - Google Analytics code will load on Cookie Policy page, if tracking is enabled.
- ENHANCED - The whole script is embed in the condition to load or not.

= 9.0 =

- NEW - Cookie Scan page added. This page will display all the saved cookies for you, so you can see, what cookies are used in your website.
- FIX - Some texts were not set for localization. They all fixed.

= 8.0 =

- NEW - The popup is loading now, even if no Google Analytics code has been added. So the plugin is working as a simple cookie policy popup.

= 7.2 =

- NEW - Added Cookie Policy page setting to WPML config, so you can set the page for all languages. The page ID must be used as a "translation".
- ENHANCED - Description text modified.
- FIX - Replaced old plugin names in admin area.
- FIX - Future snackbar script conflict removed.

= 7.1 =

- ENHANCED - Description text modified.

= 7.0 =

- NEW - Changed plugin name: Surbma - GDPR Proof Cookies
- This is the new version of my previous Surbma - GDPR Proof Google Analytics plugin, which will add Google Remarketing, Facebook Pixel, Hotjar and other services. It will be a complete cookie management solution for WordPress.
- NEW - Shortcode, that can be used to give users the possibility to change their settings: [surbma-cookie-popup-link]
- NEW - Upcoming features list in the sidebar to let you know the future of the plugin.
- TWEAK - Modified admin area look. Preparing for the upcoming new features.

= 6.3 =

- FIX - Fixed method to get plugin info. It was generating errors for Pro users.
- TWEAK - New UIkit version added for the admin area.

= 6.2 =

- FIX - Localization fixes.

= 6.1 =

- FIX - Show the popup, when Debug mode is enabled and popup is disabled for logged in users.

= 6.0 =

- NEW - Added popup close without clicking on the buttons: button, ESC, background click.
- NEW - Added popup delay option.
- ENHANCED - Optimized script loading logic.
- ENHANCED - ESC button close is always enabled in Debug mode.
- ENHANCED - Popup is not loading in admin area, only on login page, if admin tracking is enabled.
- TWEAK - Minor admin CSS changes.
- FIX - Corrected modal values.

= 5.1 =

- FIX - Freemius mechanism added to prevent conflicts with premium version.

= 5.0 =

- ENHANCED - Popup buttons are not refreshing the page. Accept button still sends the hit to Google Analytics.
- ENHANCED - Settings page sidebar is updated with Google's latest websites about GDPR.
- TWEAK - General admin notice is removed. A more informational alert is added to the plugin's settings page.
- FIX - Internationalization fixes.
- FIX - Admin URLs are fixed to work with every WordPress configuration.

= 4.3 =

- FIX Unique JavaScript function names to avoid conflicts with other plugins.

= 4.2 =

- FIX Settings validation error.
- ENHANCED Popup load conditions.

= 4.1 =

- FIX Freemius sandbox mode removed.

= 4.0 =

- ENHANCED Debug mode has the option to close popup with ESC or clicking on the background.
- ENHANCED A lot of code optimization.
- FIX Popup related JavaScript codes are reordered.

= 3.2 =

- FIX Localization fixes.

= 3.1 =

- FIX The Limited Liability option notice.
- FIX Text sanitization an validation.
- FIX Minor code fixes.
- CHANGED Removed Affiliate banner from sidebar.

= 3.0 =

- NEW Pro version upgrade feature is available in the plugin's admin menu. Use BEFOREGDPR coupon to get 50% off till May 26, 2018.
- ENHANCED Plugin activation hook.
- ENHANCED Code optimization for settings page.
- ENHANCED Settings page display for Free users.
- FIXED Loading logic for admin and login pages.

= 2.1 =

- Main plugin file is renamed to prepare for merging free and pro versions to one plugin.
- Fix README plugin name.

= 2.0 =

- Added Freemius service to manage premium version and payment system.
- Preparing to merge free and pro codes to one plugin.

= 1.1 =

- Top-Level Menu.
- Preparing the sidebar to have relevant informations.
- Simple versioning.

= 1.0.0 =

- Initial commit.
