nexaguard-cmp (stable 0.2.1), aligned with the production CMP engine.<head>| Property | Value |
|---|---|
| Plugin Name | NexaGuard CMP |
| Slug | nexaguard-cmp |
| Stable tag | 0.2.1 |
| Requires WordPress | 5.8+ |
| Tested up to | 6.8 |
| Requires PHP | 7.4+ |
| Listing | wordpress.org/plugins/nexaguard-cmp |
Plugins -> Add New.NexaGuard CMP.Plugins -> Add New -> Upload Plugin.NexaGuard CMP in WP admin and set:App ID (settings-id) (required)Auto-inject CMP Script (recommended ON)Enable Google Consent Mode v2 (ON to inject consent default head stub)Debug Mode (temporary QA mode)Consent Model (WP Consent API):optin (EU-style default)optout (US-style default)assets_url and api_url are fixed by plugin runtime and not user-editable.<head> (early): Consent Mode stub initializes dataLayer/gtag, sets developer_id.<id>, and pushes one guarded gtag('consent','default', denied...).wp-consent-bridge.js enqueues first.loader.js) enqueues after bridge and receives attributes (including id="nexaguard-cmp" and data-settings-id).Enable Google Consent Mode v2 is OFF, head stub is skipped and loader receives data-consent-mode="off".window.NXG_WPConsentAPI.set(category, value)window.NXG_WPConsentAPI.setAll(map)window.NXG_WPConsentAPI.acceptAll()window.NXG_WPConsentAPI.rejectAll()nexaguard:consent (bulk map)nexaguard:consent:category (single category)functionalpreferencesstatisticsstatistics-anonymousmarketinganalytics_storage -> statisticsad_storage -> marketingad_user_data -> marketingad_personalization -> marketing[nexaguard_cmp] -> ensures loader enqueue[nexaguard_preferences] -> renders privacy settings linkcmp-block -> server-rendered loader enqueue pathconsent default call on load (when consent mode enabled)wp_has_consent(...)| Issue | Likely cause | Fix |
|---|---|---|
| Banner not visible | missing App ID or caching | set App ID, reset consent, purge cache/CDN |
| Duplicate banner | manual loader + plugin both active | keep a single integration path |
| WP categories not updating | bridge/API not available | check typeof NXG_WPConsentAPI and ensure WP Consent API functions are present |
| No Consent Mode default | option disabled or script ordering conflict | enable Enable Google Consent Mode v2 and verify head output |
nexaguard_cmp_options (single-site or multisite per site).