<head> section.default and update events automatically.| Property | Value |
|---|---|
| Module Name | NexaGuard CMP |
| Package | Privacy |
| Description | Integrates NexaGuard Consent Management Platform into Drupal for GDPR and Google Consent Mode v2 compliance. |
| Core compatibility | Drupal 9, 10, 11 |
| License | GPL-2.0-or-later |
| Maintainer | NexaGuard Inc. |
| Project URL | https://www.drupal.org/project/nexaguard_cmp |
/modules/custom/nexaguard_cmp or /modules/contrib/nexaguard_cmp.drush cr or via the admin interface).<head> of all public pages:gtag('consent', 'default') and gtag('consent', 'update') events based on user consent.loader.js is loaded from https://cmp.nexaguard.com and consent events are triggered.gtag('consent', 'update') events after user action.?nxg_debug=1 to your site URL.https://example.com/?nxg_debug=1| Feature | Description |
|---|---|
| Anonymous Users Only | Displays the banner only to logged-out visitors. |
| Exclude Admin Routes | Prevents CMP injection on /admin/* pages. |
| Debug Mode | Adds CMP overlay for consent diagnostics. |
| Custom Asset URLs | Allows custom CMP endpoints for testing or staging environments. |
| Issue | Cause | Solution |
|---|---|---|
| CMP banner not visible | Missing or invalid Settings ID | Verify the ID in NexaGuard CMP configuration |
| CMP script duplicated | Cached theme injection | Clear caches and verify only one <script> appears |
| Consent Mode inactive | gtag or Tag Manager misconfigured | Enable Google Consent Mode v2 option |
| Admin pages affected | Exclude Admin Routes disabled | Enable the exclude admin option under configuration |
default and update signals function as required.