Cookie compliance integration for Joomla

Nelson
Written by NelsonLast updated 1 day ago

There are two ways to install CookieScript on Joomla:

  1. By using the CookieScript plugin (recommended)

  2. By editing your template

We recommend using the plugin: you don't need to edit any template files, and CookieScript stays installed when you update or change your template.

Note: Use only one method to install CookieScript. If you switch from one method to another, remove the previous code first.

Method 1: Installing CookieScript via the Joomla plugin

The CookieScript plugin is free and available in the Joomla Extensions Directory. It works with Joomla 3, 4, 5 and 6.

  1. Download the CookieScript plugin from the Joomla Extensions Directory.

  2. Log in to your Joomla administrator panel.

  3. Go to System > Install > Extensions and upload the plugin package. In Joomla 3, go to Extensions > Manage > Install.

    image.png
    image.png
  4. Go to System > Manage > Plugins (in Joomla 3, Extensions > Plugins), search for CookieScript, and make sure the plugin is enabled. Click the plugin name to open its settings.

    image.png
    image.png
  5. In your CookieScript account, open your banner and go to Install.

  6. Configure geo-targeting (if needed).

  7. Select Script tag and click Copy code.

    image.png
  8. Return to the CookieScript plugin settings in Joomla, paste the copied code, and click Save & Close.

    image.png

All done! CookieScript is now installed on Joomla and ready to use.

Method 2: Installing CookieScript by editing your template

To add the CookieScript code to your template manually, follow these steps:

  1. In your CookieScript account, open your banner and go to Install:

    image.png
  2. Configure geo-targeting (if needed).

  3. Select Script tag and click Copy code.

  4. Log in to your Joomla administrator panel.

  5. Open the Template Manager.

  6. Select the Styles tab.

  7. Find the [Active template name] - Default style and click it.

  8. Open the Custom code tab.

  9. Paste the copied CookieScript code into the Before </head> field.

    joomla..png
  10. Click Save & Close.

CookieScript is now installed on Joomla and ready to use.

Note: If the banner doesn't appear after installation, check whether a caching plugin or browser extension is preventing it from showing.

Did this article help you solve your issue?