Implementing CookieYes on Magento

CookieYes will help you to create a cookie banner for your Magento website. To display the CookieYes banner on your Magento website and enable blocking third-party cookies before the user consent, add the CookieYes code to your Magento website source code. Here's how you can do that.

Copy Installation Code

The first step in the set up is to copy the installation code available at the time of CookieYes registration. You can copy the code from the dashboard from your Settings page as well. Go to the Settings page, and click on the Get Script button for the corresponding website. A popup with the CookieYes script will appear for you to copy. After you have copied the code on your clipboard, next you need to add the code in your Magento store source code.

For Magento 2.x

Follow the steps to install the code on your website built on Magento 2.0.

Login to Magento

To install the code to your Magento website, login to the admin side of your website. From the admin panel, Click on Content > Configuration on the left sidebar menu. Magento dashboard configuration section This will take you to the Default Store View page. Select the store view to add the code into or select Global to add the code for any store view. Select store view for Magento This will take you the select page view. On this page, scroll down and go to the Other Settings section. There are two ways with which you can add the code - in the header section or in the footer of the website.

1. Adding the code HTML Head

Click on the HTML Head and then add the code in the Scripts and Style Sheets field. Add scripts in the header Then click on Save Configuration and then flush Magento Cache. You will have the cookie banner displayed on the user end of the website.

2. Adding the code to the footer

You can alternatively add the code to the footer of the website. To do that, go to expand the footer section under the Other Settings section, and paste the code in the Miscellaneous HTML field. Add scripts in the footer After that, click on Save Configuration and then flush Magento Cache. After that check on the user-end of your website to see the cookie banner displayed.

For Magento 1.x

Follow the steps to install the code on your website built on Magento 1.x.

Login to Magento

To install the code to your Magento website, login to the admin side of your website. From the admin panel, click on the Settings > Configuration. The settings menu in Magento 1.x From the left panel, go to Design, under the General section. There are two ways with which you can add the CookieYes code in your Magento website. You can add the code in the either in the HTML Head section or the footer.

1. Adding the code HTML Head

Click on the HTML Head and then add the code in the Miscellaneous Scripts field. Add scripts in the header in Magento 1.x Then click on Save Configuration and then flush Magento Cache. You will have the cookie banner displayed on the user end of the website.

2. Adding the code to the footer

You can alternatively add the code to the footer of the website. To do that, go to expand the footer section under the Other Settings section, and paste the code in the Miscellaneous HTML field. Add scripts to the footer in Magento 1.x After that, click on Save Configuration and then flush Magento Cache. After that check on the user-end of your website to see the cookie banner displayed.

Further CookieYes Configuration

After the cookie banner is set up on the website, the next step is to customize the banner so that it looks as unique as your website and feels like a part of it. Then, to block the cookie before the user consent, you will need to remove the third-party scripts from your website's source code and add it to the CookieYes scripts section. To know more about CookieYes Configuration, read the CookieYes setup article. For any issue on setting up or in the implementation of CookieYes, contact our support team.