- [Case Studies](https://www.mergado.com/category/case-studies)
- [eCommerce tips](https://www.mergado.com/category/ecommerce-tips)
- [Online Store Solutions and Platforms](https://www.mergado.com/category/online-store-solutions-and-platforms)
- [Mergado Pack](https://www.mergado.com/category/mergado-pack)
- [Mergado tips](https://www.mergado.com/category/mergado-tips)
- [Mergado News](https://www.mergado.com/category/mergado-news)
- [eCommerce News](https://www.mergado.com/category/ecommerce-news)
- [How to use Mergado](https://www.mergado.com/category/how-to-use-mergado)
- [Interviews with e‑commerce gurus](https://www.mergado.com/category/interviews-e-commerce-gurus)
- [Extensions](https://www.mergado.com/category/apps-bidding-image-marketing-and-more)
- [Expansion with Mergado](https://www.mergado.com/category/expansion-with-mergado)
- [Mergado Lifestyle](https://www.mergado.com/category/mergado-lifestyle)
 



 

 1. [  Home  ](https://www.mergado.com/)
2. [     Mergado Blog  ](https://www.mergado.com/blog)
3. [     Mergado Pack  ](https://www.mergado.com/category/mergado-pack)
4. <a class="flex items-center gap-2 hover:underline" href="" itemid="" itemprop="item" itemscope="" itemtype="https://schema.org/Thing">    **ePrivacy Cookies 2022 and Mergado Pack for PrestaShop** </a>
 
  

 

#  **ePrivacy Cookies 2022 and Mergado Pack for PrestaShop** 

 

 

 [    ![](https://www.mergado.com/sites/default/files/perm/user-avatar/23021961102131189073595481259913287n.jpg)   Lukáš Horák  ](https://www.mergado.com/blog/lukas-horak) [Mergado Pack](https://www.mergado.com/category/mergado-pack) 

2. 2. 2022

2 minutes read

 

 

 

 

 

  ![ePrivacy Cookies 2022 and Mergado Pack for PrestaShop](https://www.mergado.com/sites/default/files/field/image/presta-cookies.png)  

Before Christmas, we brought you instructions on how the users of the [Mergado Pack for WooCommerce](https://www.mergado.com/blog/cookies-2022) will **prepare their website for the amendment to the Electronic Communications Act for 2022**. In this article, we describe how to solve this situation at [PrestaShop](https://pack.mergado.com/prestashop).



 

 

 
                function tableOfContents() {
                  return {
                    headings_menu: [],
                    heading_active: '', // Added to track the active section
                    shouldBeSticky: false,

                    generateToC() {
                      const headings = document.querySelectorAll('.js-article-full-headings h2, .js-article-full-headings h3');
                      let headingMap = {};

                      headings.forEach((heading) => { // Use an arrow function to maintain `this` context
                        // Normalize heading text to remove diacritics, then replace non-alphanumeric characters with dashes
                        var normalizedText = heading.textContent.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); // Remove diacritics
                        var id = heading.id ? heading.id : normalizedText.trim().toLowerCase()
                          .split(' ').join('-').replace(/[^a-z0-9\-]/ig, ''); // Updated regex to replace non-alphanumeric characters
                        headingMap[id] = headingMap[id] !== undefined ? ++headingMap[id] : 0;

                        // Use the updated `id` with diacritics removed for the heading id and the TOC
                        const finalId = headingMap[id] ? `${id}-${headingMap[id]}` : id;
                        this.headings_menu.push({
                          id: finalId,
                          title: heading.textContent,
                          level: heading.tagName.toLowerCase(), // Track heading level
                          active: false, // Initially set active to false
                        });
                        heading.id = finalId;
                      });
                    },

                    checkStickyNeeded() {
                      const ul = this.$el.querySelector('ul');
                      if (ul) {
                        this.shouldBeSticky = ul.scrollHeight < window.innerHeight;
                      }
                    },

                    setActiveHeading() {
                      // disabled not working with active state on click
                      // add @scroll.window="setActiveHeading()" to the parent div

                      // const headings = document.querySelectorAll('.js-article-full-headings h2');
                      // let activeHeading = '';
                      // let closestHeadingDistance = Infinity;

                      // headings.forEach((heading) => {
                      //   const rect = heading.getBoundingClientRect();
                      //   const offset = rect.top - window.innerHeight / 2; // Consider heading in the middle of the screen as active

                      //   if (offset < 0 && Math.abs(offset) < closestHeadingDistance) {
                      //     activeHeading = heading.id;
                      //     closestHeadingDistance = Math.abs(offset);
                      //   }
                      // });

                      // // Update the active state in headings_menu
                      // if (activeHeading !== this.heading_active) {
                      //   this.headings_menu = this.headings_menu.map(item => ({
                      //     ...item,
                      //     active: item.id === activeHeading,
                      //   }));
                      //   this.heading_active = activeHeading;

                      // }
                    },

                    setActiveItem(clickedId) {
                      this.headings_menu.forEach(item => {
                        item.active = (item.id === clickedId);
                      });
                      this.heading_active = clickedId; // Optionally update the heading_active property if used
                    },
                  };
                }
               1. <a :class="{ 'border-r-[3px] border-secondary': item.active, 'text-sm': item.level === 'h3' }" :href="'#' + item.id" class="inline-block text-balance hover:underline p-0.5 pr-3">  — </a>
  



 

Before Christmas, we brought you instructions on how the users of the [Mergado Pack for WooCommerce](https://www.mergado.com/blog/cookies-2022) will **prepare their website for the amendment to the Electronic Communications Act for 2022**. In this article, we describe how to solve this situation at [PrestaShop](https://pack.mergado.com/prestashop).

## How to manage cookie deployment if you use Mergado Pack for PrestaShop

### Use of the Cookie Law module

For **the simplest** possible deployment of the cookie bar, we have added support for the [Cookie Law module for the PrestaShop modules in Valašinec](https://prestashop.valasinec.cz/legislativa-ucetnictvi/86-cookie-law-informacni-okno-dle-narizeni-eu-gdpr.html) to the Mergado Pack. It is a module from the Czech developer *David Mrózek*. The plugin is quite **intuitive** and has well-crafted documentation.

After the initial setup of the Cookie Law module, there is no need to do anything for integration with MP. Mergado Pack **recognizes** if the module is active. And the functions using the storage of cookies will work according to the consent to their use.



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/1-cookie-law-support.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/1-cookie-law-support.png) 

### Dividing plugin functions into tracking categories 

To be able to use the cookies of the individual functions of the Mergado Pack plugin **according to the type of consent granted**, we have divided them into categories as follows:

- **Advertising** — Google Ads, Facebook Pixel, Heureka conversion tracking, Glami piXel, Sklik retargeting, Sklik conversion tracking, Goods conversion tracking, Etarget, Najnakup.sk, Pricemania, Kelkoo conversion tracking, Biano Pixel
- **Analytical** — Google Analytics
- **Technical** — Google Customer Reviews, Heureka Verified by Customer

**The Google Tag Manager and other services not listed here are not subject to any consent.**

As soon as the user grants or does not give consent using the CookieYes bar, information on the consent status for each category is saved. When you press any button that updates the visitor’s consent, the status of the ad scripts is automatically run or updated. Therefore, you **do not have to reload the page to start the services**.

### Using the 3rd party plugin

If you use another plugin to implement the cookie bar, **you can integrate it** with the Mergado Pack features. The plugin must store cookies with the values of the granted approvals for individual categories. In the MP administration, in the Cookies tab, you then set the corresponding cookie name for each category.

**For example:**

The plugin stores cookies in the user browser

- titled “***DmCookiesMarketing***”

This information indicates **whether or not the user has given his consent** to the use of advertising cookies.



 

 [  ![](https://www.mergado.com/sites/default/files/perm/paragraph-image/2-manual-set.png)  ](https://www.mergado.com/sites/default/files/perm/paragraph-image/2-manual-set.png) 

Follow the same procedure for the other categories.



 

Do you want to use **Google Tag Manager** to implement all scripts, including the cookie bar? Read the last paragraph of the article [ePrivacy Cookies 2022 and Mergado Pack for WooCommerce](https://www.mergado.com/blog/cookies-2022). It will give you detailed instructions on how to proceed with the settings.

 

 

 

 

 

Deployment of cookie bars has been a necessity **since the beginning of 2022**. Therefore, we urge you to review additional materials for setting up specific advertising services that you use on the site, as well as legal requirements related to personal data protection.



 

  ![](https://www.mergado.com/themes/custom/mergado/static/images/banner/mergado-pack.svg) Discover Mergado Pack

- export product feeds easily and convert them into hundreds of formats
- connect your online store with the ecommerce world from one place
- free tool for implementing advertising services and plugins

 

 [Download Mergado Pack](https://pack.mergado.com/) 

  ![](https://www.mergado.com/themes/custom/mergado/static/images/banner/mergado-pack.svg)  

 

### **Read more:**



 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/ai_boost-1.jpg)  

### MASTER PROMPT TEMPLATE FOR ECOMMERCE

 

 ](https://www.mergado.com/blog/master-prompt-eshopy-b2c) 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/uawc_cs_en.jpg)  

### How Feed Optimization Unlocked Meta Ads Performance without Increasing Ad Spend

 

 ](https://www.mergado.com/blog/feed-optimization-for-meta-ads) 

 [    ![](https://www.mergado.com/sites/default/files/perm/image/how_to_sell_successfully_on_idealo.jpg)  

### How to Sell Successfully on idealo

 

 ](https://www.mergado.com/blog/successful-sale-on-idealo) 

 

 

 [    ![](https://www.mergado.com/sites/default/files/perm/user-avatar/23021961102131189073595481259913287n.jpg)  ](https://www.mergado.com/blog/lukas-horak)###  [ Lukáš Horák ](https://www.mergado.com/blog/lukas-horak) 

Lukáš takes care of most of the Czech and English communication in Mergado. Through blogs, e‑mail, and social networks, he regularly supplies readers with e‑commerce news and news and tips from Mergado. In his time off, he enjoys simple things like badminton, digging the hidden gems of the 80’s, and seafood served with red wine.

 

 

 

 

 

 

 

 

 

## What you *might be interested in next*

 

 [    ![Mergado Pack for WooCommerce will now help you collect reviews for Biano Star](https://www.mergado.com/sites/default/files/field/image/pack-woo.png)  

### Mergado Pack for WooCommerce will now help you collect reviews for Biano Star

 

 ](https://www.mergado.com/blog/mpack-woocommerce-biano-star) 

 [    ![Mergado Pack v. 3 for PrestaShop simplifies many advertising operations](https://www.mergado.com/sites/default/files/field/image/pack-recenzie_0.png)  

### Mergado Pack v. 3 for PrestaShop simplifies many advertising operations

 

 ](https://www.mergado.com/blog/pack-prestashop-version-three) 

 [    ![](https://www.mergado.com/sites/default/files/field/image/woocommerce-blog-cz.png)  

### Install Mergado Pack for WooCommerce. You can do it in 2 minutes

 

 ](https://www.mergado.com/blog/mergado-pack-woocommerce-tutorial) 

 

 

 

## Don’t miss *anything*

 Sign up for our newsletter 

   

       

   By logging in, you agree that we will process your data by the [terms of personal data protection](https://www.mergado.com/cookies). 

  Thank you, you have successfully joined our subscriber's list. 

 

 

 
      function ml_webform_success_5807248() {
        var r = ml_jQuery || jQuery
        r('.ml-subscribe-form-5807248 .row-success').show(), r('.ml-subscribe-form-5807248 .row-form').hide()
      }