Consent Lab Demo
ConsentLab is a lightweight cookie consent manager for Joomla 5 and 6. GDPR and ePrivacy compliant, with script blocking, consent logging, and a fully customisable banner — no external services or subscriptions required.
Key Features
- Cookie categories — Manage categories like Necessary, Analytics, Marketing, and Preferences with descriptions and cookie lists
- Script blocking — Block third-party scripts (Google Analytics, Facebook Pixel, etc.) until the user consents, using a simple
data-consentlabattribute - Consent logging — Full GDPR audit trail recording every consent action with timestamp, IP (optionally anonymised), and categories accepted
- Five banner positions — Bottom bar, top bar, corner left, corner right, or centre modal
- Fully customisable — Configure banner text, colours, button styles, border radius, and toggle to show/hide the Reject All button
- Consent versioning — Increment the version number to force all visitors to re-consent after a policy change
- Automatic log purging — Set retention days for consent log entries to keep your database clean
- Manage preferences link — Use
{consentlab manage}shortcode in articles to let users update their preferences - JavaScript API — Public methods:
ConsentLab.hasConsent(),ConsentLab.showPreferences(),ConsentLab.revokeConsent()
Getting Started
Seeing the Banner (Front-end)
- Click View Front-end Demo — the cookie consent banner appears automatically
- Click Customise to see the category toggles — required categories are locked
- Toggle categories on or off, then click Save Preferences
- Or click Accept All or Reject All for a quick choice
- To see the banner again, clear your cookies or use the "Manage Cookie Preferences" link if available on the page
Managing Cookie Categories (Admin)
- Click Open Admin Panel and log in with the demo credentials
- Go to Components > ConsentLab > Cookie Categories
- Four default categories are pre-installed — click any to edit
- To add a new category, click New and enter a title, alias, description, and cookie names
- Tick Required if the category cannot be opted out of (e.g., strictly necessary cookies)
- Drag to reorder how categories appear in the banner
Blocking Scripts Until Consent
Add data-consentlab="category-alias" to any script tag in your template:
<script data-consentlab="analytics" src="https://www.googletagmanager.com/gtag/js?id=G-XXXXX"></script>
The script will be blocked until the visitor consents to that category. Required categories are never blocked.
Customising the Banner
- Go to Components > ConsentLab > Options
- Display Settings: Set the banner title, description, privacy policy link, position, and whether to show Reject All
- Style Settings: Customise all colours, button styles, and border radius
- Privacy Settings: Set consent expiry days, consent version, IP anonymisation, and log retention
Viewing the Consent Log
- Go to Components > ConsentLab > Consent Log
- Each entry shows the date, consent ID, categories accepted, action taken (accept/reject/save), and IP address
- This log provides the audit trail needed for GDPR compliance