=== BBI Cookie Privacy Control ===
Contributors: bbibrandboost
Tags: cookies, gdpr, consent, privacy, accessibility
Stable tag: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An accessibility-first cookie consent manager with consent-based analytics and marketing integrations.

== Description ==

BBI Cookie Privacy Control helps site owners run analytics and marketing tools only after user consent, while keeping the consent experience keyboard-friendly and accessible.

It includes:

* Consent-gated Google Analytics, GTM, and Meta Pixel support.
* Google Consent Mode v2 defaults and consent updates.
* Consent categories (necessary, analytics, marketing) with preference modal.
* Accessible banner, modal, and reopen controls.
* Branding and layout controls for banner appearance.
* Manual cookie declaration rows for consent table transparency.
* Core consent storage and preference persistence.

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/, or install from the Plugins screen.
2. Activate BBI Cookie Privacy Control.
3. Open Cookie Consent in wp-admin and configure integrations and display settings.

== Screenshots ==

1. Admin settings screen with integrations and branding controls.

== Frequently Asked Questions ==

= Does this plugin hold built-in tracking tags until consent? =

Yes. Built-in optional integrations (such as analytics and marketing tags) are held until a visitor grants consent for that category.

= What should I set up first? =

Start with three steps: add your analytics IDs, choose banner colors and button position, then save your settings.

= What does each cookie category mean? =

Essential cookies keep the site working. Analytics cookies help you understand site usage. Marketing cookies help show relevant ads.

= Where are visitor choices stored? =

Consent choices are saved in the visitor browser using the bbibcpc_consent key.

== Privacy ==

Consent choices are stored locally in the visitor's browser under the `bbibcpc_consent` key.

When optional integrations are configured, this plugin can load Google Analytics, Google Tag Manager, and Meta Pixel only after the visitor grants consent for the relevant category. When those integrations run, data may be transmitted directly from the visitor browser to those third-party services under your site configuration and privacy policy.

This plugin also applies Google Consent Mode defaults locally when Google integrations are enabled. Google integration scripts are loaded only after the visitor grants consent for the relevant category.

Site owners are responsible for disclosing these services in their privacy policy and for configuring them in compliance with applicable data protection requirements.

== External services ==

This plugin can connect to external services only when the site owner configures those integrations in plugin settings.

Google Analytics (Google LLC):
Used for website analytics and measurement.
When loaded: only after Analytics consent is granted by the visitor.
Data sent: page and browser interaction data from the visitor browser, according to the site owner's GA setup.
Terms: https://policies.google.com/terms
Privacy: https://policies.google.com/privacy

Google Tag Manager (Google LLC):
Used to load and manage analytics/marketing tags configured by the site owner.
When loaded: only after Analytics consent is granted by the visitor.
Data sent: browser and page request metadata needed to fetch GTM container resources.
Terms: https://policies.google.com/terms
Privacy: https://policies.google.com/privacy

Meta Pixel (Meta Platforms, Inc.):
Used for marketing attribution and ad performance tracking.
When loaded: only after Marketing consent is granted by the visitor.
Data sent: page-view and event data from the visitor browser, according to the site owner's Meta configuration.
Terms: https://www.facebook.com/legal/terms
Privacy: https://www.facebook.com/privacy/policy

== Internationalization ==

The plugin text domain is bbi-cookie-privacy-control and translations are loaded from /languages.

To generate or refresh the POT template, run WP-CLI from the plugin root:

wp i18n make-pot . languages/bbi-cookie-privacy-control.pot --domain=bbi-cookie-privacy-control

== Changelog ==

= 1.0.0 =
* Initial public release with accessibility-first consent UI, consent-gated integrations, and admin controls.
