Custom Consent Management Plugin
Built a customizable, legally compliant consent management system with cross-domain support, replacing a paid vendor solution and implementing Google consent mode v2.
- Role: Frontend | WordPress Developer | Digital Analyst
- Type: Compliance | Tracking Infrastructure
- Impact: ~$8K/year saved | Compliance risk removed | Unified GTM consent
The Context
Marketing sites lacked a compliant consent management solution, exposing the company to legal consent risks. The available vendor alternative cost approximately $8K/year and limited customization, analytics flexibility, and cookie control.
The alternative vendor also blocked Google Tag Manager on page load instead of setting it necessary. This prevented any tracking scripts from running and allowing Google Tag Manager to filter tags based off consent.
Blocking these tags on page load significantly impacted tracking and analytics for all campaign data.
The Challenge
The existing setup created several constraints:
- No consistent consent handling across marketing properties
- Legal/compliance exposure due to inconsistent tracking behavior
- Vendor solution lacked customization and GTM integration flexibility
- No cross-domain persistence of consent state
The Approach
Consent System Architecture
Extended Silktide’s consent script into a reusable WordPress plugin, enabling a maintainable implementation across multiple marketing sites. It also was easy to configure in Google Tag Manager for use within landing pages outside of WordPress.
First-Party Consent Storage
Refactored consent logic to store user preferences in first-party cookies, ensuring persistence and compatibility with analytics and tracking systems. Storing first party vs third party also made the consent plugin work better with data privacy laws.
GTM Consent Mode Integration
Integrated consent state with Google Consent Mode V2 inside GTM, enabling consent-aware tracking behavior across marketing tags.
Cross-Domain Consent Support
Implemented cross-domain cookie handling to ensure consistent consent behavior across landing pages and related marketing domains.
Administrative Configuration System
Built admin-level controls for banner styling, language configuration, and placement customization, enabling non-technical teams to manage consent UI behavior.
Future-Ready Tracking Architecture
Structured the system to support future server-side tracking initiatives, ensuring long-term scalability beyond client-side consent management.