Package

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-consentlab attribute
  • 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)

  1. Click View Front-end Demo — the cookie consent banner appears automatically
  2. Click Customise to see the category toggles — required categories are locked
  3. Toggle categories on or off, then click Save Preferences
  4. Or click Accept All or Reject All for a quick choice
  5. To see the banner again, clear your cookies or use the "Manage Cookie Preferences" link if available on the page

Managing Cookie Categories (Admin)

  1. Click Open Admin Panel and log in with the demo credentials
  2. Go to Components > ConsentLab > Cookie Categories
  3. Four default categories are pre-installed — click any to edit
  4. To add a new category, click New and enter a title, alias, description, and cookie names
  5. Tick Required if the category cannot be opted out of (e.g., strictly necessary cookies)
  6. 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

  1. Go to Components > ConsentLab > Options
  2. Display Settings: Set the banner title, description, privacy policy link, position, and whether to show Reject All
  3. Style Settings: Customise all colours, button styles, and border radius
  4. Privacy Settings: Set consent expiry days, consent version, IP anonymisation, and log retention

Viewing the Consent Log

  1. Go to Components > ConsentLab > Consent Log
  2. Each entry shows the date, consent ID, categories accepted, action taken (accept/reject/save), and IP address
  3. This log provides the audit trail needed for GDPR compliance
This is a demo site. Changes are reset periodically.
Login: demo / demo#1234
Admin
Next reset: --:--:--
Get the extensions

We use cookies

We use cookies to enhance your browsing experience and analyse site traffic. Please choose which cookie categories you consent to.