Loi 25 Cookie ConsentWordPress Plugin
The most complete WordPress plugin for Quebec's Law 25 compliance. Script blocking, Google Consent Mode v2, 3 banner styles, bilingual, zero dependencies.
v2.0.0 — Free & Open Source
Loi 25 Cookie Consent
v2.0Live Preview
Customize the banner and see the result in real time.
This website uses cookies to improve your experience. In compliance with Quebec's Law 25, we ask for your consent.
Install in 3 Steps
Install the plugin
Download and activate through the WordPress dashboard or upload the folder.
Configure
Go to Settings → 🍪 Loi 25 and customize your banner.
Done!
The banner appears automatically for new visitors.
Features
Script Vault
Paste your Google Analytics, Meta Pixel, or Hotjar. Scripts only load after consent. No coding required.
Google Consent Mode v2
Automatic integration with Google Ads & Analytics. Manages ad_storage, analytics_storage, ad_user_data, and ad_personalization.
3 Banner Styles
Full-width bar, centered popup, or corner widget. Choose the perfect style for your site.
Glassmorphism
Modern frosted glass effect with background blur. Works best with dark theme.
Bilingual FR/EN
Auto-detection from WordPress locale. Customizable text in both languages.
Consent Statistics
Dashboard widget with accept/reject rates. Track your site's compliance.
Brand Color Picker
Color picker to match the banner with your website's brand.
Re-consent Button
Floating 🍪 icon so visitors can change their cookie choice anytime.
Smooth Animations
Slide or fade transitions for a premium user experience.
Custom CSS
Full styling control for power users. Target #loi25-banner.
Clean Uninstall
All data (settings and statistics) is completely removed when uninstalled.
Ultra Lightweight
Under 10KB of vanilla JavaScript. Zero dependencies, no jQuery, no external scripts.
Script Vault — The Killer Feature
Most cookie consent plugins just show a banner. This plugin actually blocks your tracking scripts until consent.
Simply paste your Google Analytics, Meta Pixel, Hotjar, or any tracking code into the Script Vault tab in settings. The scripts will only load after the visitor clicks "Accept All".
<!-- Paste in Script Vault tab --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXX"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-XXXXX'); </script>
Consent Statistics
WordPress dashboard widget to track your visitors' choices.
🍪 Loi 25 — Consent Statistics
Frequently Asked Questions
Need help with Loi 25 compliance?
Rayels Consulting offers full Loi 25 compliance audits and implementation for Quebec businesses.
Contact UsHow would you like to proceed?
Book a call
Let's discuss your needs directly. It's the fastest way to validate your project.
Send a Message
Describe your project in a few lines and I will reply within 24 hours via email.