=== Aiara Cookie Consent === Contributors: sidoraag Tags: cookie, consent, gdpr, cookie-banner, privacy Requires at least: 6.0 Tested up to: 7.0 Stable tag: 1.1.1 Requires PHP: 8.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html GDPR- and Swiss FADP-compliant cookie consent banner via Aiara. Enter your Domain ID and you're done. Consent Mode v2, script blocking. == Description == **Aiara Cookie Consent** connects your WordPress website to **Aiara** — the Swiss solution for cookie consent, privacy policy and legal notice by Sidora AG. The plugin embeds the Aiara cookie banner seamlessly: you simply enter your Domain ID, and everything else is managed centrally in your Aiara account. = Features = * **Cookie banner** — GDPR- and Swiss FADP-compliant banner with four layouts (bar, modal, corner, inline) * **Google Consent Mode v2** — full compatibility with Google Ads and Google Analytics * **Multilingual** — automatic language detection (German, French, Italian, English) * **Lightweight** — under 15 KB, no dependencies, no performance impact * **Script blocking** — automatically blocks tracking scripts until consent is given * **Consent logging** — complete proof-of-consent documentation through your Aiara account * **Central management** — banner design, cookie database and legal texts are maintained in the Aiara dashboard = Requirements = An active **Aiara account** is required to operate this plugin (paid service). Sign-up and pricing at [aiara.ch/pricing](https://www.aiara.ch/pricing). == External services == This plugin is a connector to the cloud service **Aiara** (operated by Sidora AG, Switzerland). Without this service the plugin has no function. The following connections to `https://www.aiara.ch` are made: 1. **Loading the banner script (front end, for your website visitors)** On every public page the script `https://www.aiara.ch/banner/banner.iife.js` is loaded. This script renders the cookie banner, manages consent, and blocks or unblocks tracking scripts. Your configured **Domain ID** and the **API base URL** are passed as attributes. In order to load the script, the **visitor's IP address** is transmitted to aiara.ch — as with any externally embedded resource. Visitors' consent choices are logged through the Aiara service. 2. **Connection test (admin, only on your action)** When you click "Test connection" in the plugin, WordPress sends your **Domain ID** to `https://www.aiara.ch/api/v1/banner/{domain-id}` and receives the associated hostname in return, in order to verify the configuration. No other data is transmitted automatically. Use of the Aiara service is subject to the following terms: * Terms and Conditions: [https://www.aiara.ch/agb](https://www.aiara.ch/agb) * Privacy Policy: [https://www.aiara.ch/datenschutz](https://www.aiara.ch/datenschutz) == Installation == 1. Upload the plugin or search for "Aiara Cookie Consent" in the WordPress plugin directory. 2. Activate the plugin. 3. Go to **Aiara** in the sidebar. 4. Enter your Domain ID (found in the [Aiara dashboard](https://www.aiara.ch/client/domains)). 5. Click "Save settings". The cookie banner now appears automatically on every page of your website. == Frequently Asked Questions == = Do I need an Aiara account? = Yes. The plugin embeds the Aiara cloud service and has no function without an active account. Sign up at [aiara.ch/pricing](https://www.aiara.ch/pricing). = Where do I find my Domain ID? = In the [Aiara dashboard](https://www.aiara.ch/client/domains) under your domain, in the "Embed script" tab. = Does the plugin work with WordPress Multisite? = Yes. Settings are stored per site, so every site in the network enters its own Domain ID under **Aiara** in its own site admin. Note that each site needs its own domain in your Aiara account, because the banner configuration is bound to the registered hostname. = Does the plugin work with caching plugins? = Yes. The banner script is loaded client-side and manages the consent state via cookies. It is fully compatible with WP Super Cache, W3 Total Cache, LiteSpeed Cache and other caching solutions. = Does the plugin support Google Consent Mode v2? = Yes. The Aiara banner integrates Google Consent Mode v2 automatically. No additional configuration is required. = Can I categorize scripts manually? = Yes. Add the `data-cookie-category` attribute to your script tags: `` Available categories: `analytics`, `marketing`, `functional`. = Is Aiara suitable for Switzerland? = Yes. Aiara was built specifically for Swiss companies and meets both the revised Swiss Federal Act on Data Protection (revFADP) and the EU GDPR. == Screenshots == 1. Aiara admin page in WordPress 2. Cookie banner on the website 3. Cookie settings in the banner 4. Connection test in the plugin == Changelog == = 1.1.1 = * Multisite: uninstall now removes plugin options on every site in the network (previously only on the main site) * Documentation: added Multisite FAQ = 1.1.0 = * Front-end script is now enqueued through the WordPress script queue (`wp_enqueue_script`) * All admin messages are fully translatable (i18n) * Added translation template (.pot) * Cleanup and preparation for release on the WordPress plugin directory = 1.0.0 = * Initial release * Cookie banner integration via the Aiara service * Dedicated branded admin page * Connection test for API validation * Enable/disable toggle * Google Consent Mode v2 support * Script blocking documentation == Upgrade Notice == = 1.1.1 = Multisite cleanup fix: uninstalling now removes options on all network sites. = 1.1.0 = Cleaner script embedding and full translatability. Recommended update.