kowal.info

Cookie Consent

Composer kowal/module-cookieconsent · Version 1.1.5

Product page

Cookie Consent — kowal.co

Description

Display a cookie preference banner and pass consent settings to Google’s data layer. Shoppers can reopen their preferences on the storefront.

For whom

For teams managing the banner and Google tag loading across language-specific store views.

Features

  • Choose a banner layout, language, palette and button colours.
  • Link to the privacy policy and reopen saved preferences.
  • Configure the Google tag and Google Tag Manager container separately.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-cookieconsent
bin/magento module:enable Kowal_CookieConsent
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

  1. Select the store view under Stores → Configuration → General → Cookie Consent Configuration and enable Module Status.
  2. Enter the website name and privacy policy URL. Set the language and Consent type, choose a layout and check button readability.
  3. If the Google tag is already present, select Google Tag ID is already installed. Enter the GTM container ID only if this module should embed it.

Requirements / notes

The existing Google tag setting controls loading of gtag.js. The GTM container is loaded separately when its ID field is populated.

FAQ

How can shoppers change a saved choice?

The Update cookie preferences link reopens the preferences panel. Check that the link is reachable in the mobile theme as well.

Verify the installation

bin/magento module:status Kowal_CookieConsent

In a fresh browser session, check the language and policy link. Reject optional categories, reopen preferences and change the selection. In tag preview, compare the consent state before and after the change.

Components included in Cookie Consent