=== Consentico ===
Contributors: mamunitiw
Tags: cookie notice, gdpr, cookie consent, ccpa, cookie bar
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Consentico is a simple GDPR & CCPA cookie consent bar. Accept/decline buttons, privacy policy link, GA consent management, and acceptance statistics.

== Description ==

**Consentico** is a lightweight cookie consent bar plugin for WordPress. It helps you comply with GDPR and CCPA by informing visitors about cookie usage and collecting their consent — simply and beautifully.

= ✨ Features =

* **Accept & Decline buttons** — give visitors full control
* **Privacy Policy link** — link directly from the notice
* **Remembers choice** — stored in browser cookie (30 days to 1 year)
* **Accept/Decline statistics** — track how many visitors accept vs decline in the admin panel
* **Google Analytics consent** — optionally block GA until user accepts
* **Slide or fade animation** — smooth entrance effect
* **Top or bottom position** — your choice
* **Fully customizable** — colors, text, buttons all configurable
* **Responsive** — looks great on all screen sizes
* **Lightweight** — under 5KB total (CSS + JS)
* **No jQuery** — pure vanilla JavaScript
* **GDPR & CCPA friendly**
* **WordPress 6.9 compatible**
* **PHP 8.x compatible**

= ⚙️ Admin Settings =

All settings under **Settings → Consentico**:

* **General** — Enable/disable, position (top/bottom), cookie expiry, animation, show on pages
* **Content** — Cookie message, accept/decline text, privacy policy link
* **Design** — Background color, text color, opacity, accept button color, border radius
* **Compliance** — Google Analytics ID, block GA until accepted

= 📊 Statistics =

The admin panel shows real-time accept/decline counts and acceptance rate. Reset anytime with one click.

== Installation ==

1. Upload the plugin to `/wp-content/plugins/consentico/` or install via **Plugins → Add New**.
2. Activate the plugin.
3. The cookie bar appears automatically on your site.
4. Go to **Settings → Consentico** to customize.

== Frequently Asked Questions ==

= Does it work without any configuration? =
Yes! The cookie bar appears automatically with sensible defaults as soon as you activate the plugin.

= Is it GDPR compliant? =
Consentico provides the UI for cookie consent. For full GDPR compliance, you should also have a Privacy Policy page and use the Google Analytics blocking feature to prevent tracking before consent.

= Does it use jQuery? =
No. Consentico uses pure vanilla JavaScript — no jQuery dependency, faster loading.

= How is the user's choice stored? =
The choice is stored in a browser cookie for the duration you set (default 1 year). The bar won't appear again until the cookie expires.

= Can I block Google Analytics until the user accepts? =
Yes. Enter your GA4 Measurement ID and enable "Block Until Accepted" in the Compliance tab.

== External Services ==

This plugin optionally connects to Google's servers to load Google Analytics when a GA4 Measurement ID is configured by the site administrator.

**Google Analytics / Google Tag Manager**

* **What it does:** Loads the Google Analytics tracking script from `https://www.googletagmanager.com`.
* **When it connects:** Only when a GA4 Measurement ID is entered in Settings → Consentico → Compliance. If "Block Until Accepted" is enabled, the script loads only after the visitor clicks Accept.
* **What data is sent:** Standard analytics data (page views, events) as defined by Google Analytics. No additional data is sent by this plugin.
* **Google's Terms of Service:** https://marketingplatform.google.com/about/analytics/terms/us/
* **Google's Privacy Policy:** https://policies.google.com/privacy

If no GA ID is configured, no connection to Google's servers is made by this plugin.

== Screenshots ==

1. Admin Settings — General tab
2. Admin Settings — Design tab
3. Frontend — Cookie bar bottom position (dark theme)
4. Frontend — Cookie bar top position (light theme)

== Changelog ==

= 1.0.0 =
* Initial release
* Accept and decline buttons
* Privacy policy link
* Cookie expiry control (30/60/90/180/365 days)
* Slide and fade animations
* Top and bottom position
* Show on all / front page / specific pages
* Google Analytics consent management
* Accept/decline statistics with reset
* Responsive design
* Pure vanilla JS — no jQuery

== Upgrade Notice ==

= 1.0.0 =
Initial release.
