How to Add Cookie Banner on MODX Website

You can share the code with a developer or your team by clicking on Send code to a teammate button. Enter the email address and then click on Send email. The recipient will get the code and instructions via email.
Steps to add cookie consent banner on MODX
Step 1. Head to your MODX Dashboard and select the Elements tab from the left sidebar.

Step 2. Select BaseTemplate from the Templates drop-down list or create a new template.
Step 3. 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.

If you add the CookieYes installation code after other custom scripts, the auto-blocking function may not work as intended.
Step 4. Head back to the setup screen and click on the Verify button. You will see a success message that your banner is active.

The cookie consent banner will be live on your MODX website! Now, you can complete your website scanning from the CookieYes Dashboard and explore further customisations and features.
Still have questions or facing issues? Contact technical support