Implementing CookieYes on MODX

Last updated on December 23, 2021

CookieYes is a cloud-based application for cookie compliance. Using CookieYes, you can add a cookie consent notice to makes your website compliant with privacy laws like GDPR, ePrivacy Directive, and CCPA for cookies. We will guide you through the steps to implement CookieYes on a website made with the MODX platform.

You can install CookieYes in just three steps: Sign up, copy installation code, and paste it on your website!

Let us see how we can set it up on MODX.

Copy Installation code

Once you sign up with CookieYes, you will get the installation code after you choose the banner template. You can copy this code from here and paste it into your website to display the banner.

You can also copy the code from the dashboard. On the left sidebar, click Site Settings, then click the Get Script button on the right side and copy the code from the popup.

The next step is to add the copied code to the website.

Add code to site

To activate the cookie consent banner on your website, you must paste the copied code between the <head> and </head> tags of the site’s source code. For this, follow the below steps:

  • Log in to the admin panel of your MODX website and select the Elements tab from the sidebar on the left side.
CookieYes on MODX - templates
MODX templates settings
  • Select BaseTemplate from the Templates drop-down list or create a new template. On the Create/edit template tab, paste the CookieYes code in the Template code (HTML) section between the <head> and </head> tags. Then, click Save to publish the changes.
modx editor with cookieyes code
MODX HTML editor
  • Check the homepage of the website to see the banner activated.
modx homepage with cookieyes banner
MODX homepage

After installing the banner, the next step is to customize and configure it and manage cookie consent on your website. Read more about it 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