fbpx

Implementing CookieYes on Magento

Last updated on November 24, 2021

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

After you sign up on CookieYes, you will see a few options for the cookie consent banner template. After you choose the banner template, click Next Step.

cookieyes on modx -setup

On the page, you will see the installation code for the website. Click Copy code to copy the code to the clipboard.

cookieyes code on modx

You can also get the code later from the CookieYes dashboard. Just click Get Script from the Site Settings page and copy the code.

cookieyes code for wordpress modx wix joomla blogger drupal shopify

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 installing the code, the next step is to customize the banner, if needed, to suit the design of your website. And then you need to configure CookieYes so that the third-party cookies are only stored when the user gives consent. You can read more about configuring the banner for rendering cookies on user consent in the CookieYes setup guide.

If there are any issues in setting up the cookie banner, you can contact our support team.

just a background image

We Will Gladly Help You

If you have any issues or queries regarding CookieYes implementation,
feel free to contact our support team.

just a background image