Code BLACKGO: cookie banner free for a year. Create an account →

Publications / Guides

Cookie banner in Joomla 4, 5 and 6 – installation and settings

Installing a cookie banner in Joomla as a system plugin, settings after installation, gzip compression and cache, and a checklist – so that scripts really wait for consent.

Author: Anna.K Published: 3 min read

Cookie banner in Joomla 4, 5 and 6 – installation and settings

In Joomla you install the consetgo cookie banner as a regular extension. A system plugin loads the consent module at the start of processing every page, so it blocks scripts added by the template, modules and other extensions before the page reaches the browser. Without consent only necessary things work – session, login, forms; analytics, pixels, maps and videos wait for the visitor’s choice.

Requirements

Joomla 4, 5 or 6 and PHP 7.2 or newer.

Installation step by step

  1. Download the file consetgo-joomla.zip from your consetgo account.
  2. In Joomla go to System → Install → Extensions → Upload Package File and choose the file.
  3. The “System - consetgo Cookie Consent” plugin enables itself, and the module goes to the consent folder in the site root.
  4. Open the consent panel at your-site/consent/panel.php.

Full instructions: consetgo for Joomla.

Settings after installation

  1. Scan. In the Scanner tab enable scan mode and go through a few pages – the home page, an article, the contact form. The browser scan also shows tags added by Google Tag Manager.
  2. Categories. In the Services and categories tab check the assignments; assign unrecognised addresses in the Scanner tab. Rules: how to assign cookie categories to services.
  3. Design. In the Banner appearance tab set the colours and the button order.
  4. Policy. Paste the table from the Cookie policy tab into the site’s privacy policy.

What to watch out for in Joomla

Gzip compression

The plugin turns off gzip compression in the Joomla settings, because the module has to see the page code. The server can still do the compression (most hosting providers do it by themselves).

Cache

The module processes the page in PHP. If the server or CDN serves ready pages from the cache without running PHP, the module panel shows “Limited mode — scripts are not blocked.” After installation clear the Joomla cache and the CDN, and exclude pages served from the server cache.

Analytics in the template

Many templates have a field for the Google Analytics or Google Tag Manager code. The code can stay there – the module will find it and block it until consent. Do not add the same code a second time in the module panel.

Checklist

  • The consent/panel.php panel opens, the system plugin is enabled.
  • In a private window the banner shows on the home page and on subpages.
  • Before a decision and after refusal: no _ga, _fbp cookies and no requests to analytics and advertising services.
  • Forms and login work after clicking “Reject all”.
  • No “limited mode” message in the module panel.

Step-by-step test: How to check whether a site sets cookies before consent. When the banner does not show: a list of common causes.

Questions and answers

Why is gzip compression in Joomla turned off after installation?

The module has to see the finished page code to block scripts before they are sent to the browser. The server can still do the compression – the site will not be slower if your hosting compresses responses.

Does the Joomla administrator panel change?

No. The plugin works on the site pages; the consent settings are in a separate module panel at your-site/consent/panel.php.

Read also

How should a proper cookie banner work?

How should a proper cookie banner work?

Guides

The banner should offer a real choice, and the website should carry it out: a refusal that is easy to find, separate purposes, scripts blocked after refusal and a permanent link for changing the decision. A short checklist using GA4, Meta Pixel and GTM as examples.

· 3 min read

How to choose a cookie consent management tool – 8 criteria

How to choose a cookie consent management tool – 8 criteria

Guides

Eight questions worth asking before you choose a cookie consent tool: blocking before consent, Consent Mode v2, consent log, languages, CMS integration, where the data is stored, price and support. Plus: free or paid module.

· 6 min read