Overview
Nomos (Greek for law or custom) is a lightweight, robust, and accessible solution for GDPR/CCPA compliance. Engineered with modern web standards, it entirely offloads animations to the browser layout engine and provides deep integration with Google Consent Mode v2. Unlike bloated alternatives, Nomos relies on zero heavy frameworks, inherits your theme's native button styling, and protects user privacy right out of the box.
Architectural Rationale:
Most cookie consent plugins inject massive client-side JavaScript frameworks (React, Vue, jQuery) and block initial rendering, destroying Core Web Vitals and causing significant cumulative layout shift (CLS). Nomos solves this by utilizing CSS-native modal dialogs and @starting-style, offloading animations entirely to the browser layout engine. It configures Google Consent Mode v2 defaults instantly and updates dataLayer records with zero external runtime dependencies.
Developer Integration
// Developer filter: Customize cookie banner options in functions.php
add_filter('nomos_banner_settings', function($settings) {
$settings['delay_until_interaction'] = true;
$settings['auto_decline_bots'] = true;
$settings['default_consent_mode'] = 'denied';
return $settings;
});
WP-CLI: $ wp nomos export-logs --format=csv > consent-audit.csv
Deployment Notes
Nomos complies with strict German and Austrian data protection authority standards (DSGVO / TKG 2021). Its tracker scanner can be triggered directly in WP-Admin or scheduled via cron.