Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



DateChanges made
19.11.2019

Update documentation for 2.1.0

new in 2.1.0:

  • Layout optimization: the buttons for  "Privacy settings" and "Accept only technically necessare" are now displayed as text links
  • New default texts
  • New plugin configuration for page reload
  • Added missing translations
  • Bug fixes
27.02.2024

Update of the documentation for version 2.4.0

New in version 2.4.0

  • Support for Google Consent Mode v2



Table of Contents


Warning

Note: this software is provided "as is" without any legal gurantee. We are not liable for any legal conformity. Please consult legal support to confirm correct usage for your application scenario.


Description

Cookie Notice

This Shopware Plugin can provide a notice to shop visitors about the usage of cookies (e.g. EU GDPR or privacy compliance, etc.). It provides also privacy-settings for visitors, so they can manually opt-in or opt-out of trackings on your website. Google Analytics is pre configured and our plugin "Facebook Pixel for Shopware" integrates automatically (from version 1.1.3).
Texts, colors and positioning of the cookie notice can easily configured in the plugin settings.

Privatsphäre Einstellungen

From version 1.2.0 you can enable the privacy-settings dialog. It enables visitors to anonymously configure their opt-in / opt-out preferences. From version 1.4.0 you can integrate your own trackings in the privacy-settings.
Via the plugin configuration you can define the default behavior of the trackings. Opt-In tracking is disabled for new visitors per default. Opt-Out: tracking is enabled for new visitors per default.

...

Installation

Installation in the shop

Just install with the plugin manager and customize the configuration options for your needs.

Note

Make sure you clear the Shopware Cache (Frontend and HTTP-Proxy) after the installation.

...

Info

Please note that this can cause errors regarding POST requests.


Text configuration

In order to change the text of notice and button please navigate to the snippet management at Configuration → Snippets.
Search for "MndCookie" and you'll find the relevant snippets:

Select the snippet you want to change and click on the button "Edit selected snippets" from the menu above. You can also use HTML for advanced formatting.


Info

Please note that you'll probably need to clear the Shopware cache again and eventualy the template have to be new compilated, in order to see the changes in the frontend.


Support for Google Consent Mode v2

From version 2.4.0, the plugin supports Google Consent Mode v2, which must be activated in the plugin configuration:


Image Added

Without the visitor's consent, the default value is delivered as follows:


Code Block
gtag('consent', 'default', {
  'analytics_storage': 'denied',
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'wait_for_update': 500
});

As soon as the visitor authorises the setting of all cookies, a corresponding update is sent:

Code Block
gtag('consent', 'update', {
  'analytics_storage': 'granted',
  'ad_storage': 'granted',
  'ad_user_data': 'granted',
  'ad_personalization': 'granted',
  'wait_for_update': 500
});

The cookie types are also taken into account. Individually controlled:

Cookie type: Tracking and analysis → sets the value for analytics_storage depending on the status
Cookie type: Retargeting or remarketing → sets the values for ad_storage, ad_user_data, ad_personalisation depending on the status

Placed Cookies

Cookie nameZweckKommentar
​mnd-ga-opted-inGoogle Analytics Opt-In​valid for 100 years
ga-disable-UA-XXXXXXX-XXGoogle Analytics Opt-Outvalid for 100 years
Will be stored for each Google Analtyics Property ID configured.
<individual name>Opt-In / Opt-Out for individual trackings

valid for 100 years
Will be stored for each cofigured individual tracking

mnd-cookie-accepted- + (shop url without special characters or spaces, e.g. wwwgooglecom) + cookie version (plugin config option)Hides the notice if the visitor already saved the preferred behaviour.validity can be configured in the plugin config, default 31 days


Info

You can find more information about our plugin "Facebook Pixel for Shopware" on its documentation page here: v1.x.x Facebook Pixel (MndFacebookPixel) -EN

Integration into the privacy settings is provided from version 1.1.3

...