Empowering you to build websites

Privacy Cookie Banner

The cookie banner is a web component that informs users about cookie usage on a website and obtains their consent in compliance with privacy laws like GDPR. It features a message about how cookies enhance user experience, a link to the privacy policy, and an 'Okay' button for consent. Initially hidden, it displays via a fade-in effect only if cookies haven't been accepted, storing this preference to prevent future displays. This makes it ideal for seamless integration into any external site needing clear, non-intrusive user consent management.

External Usage:

How to Add the Banner to Your Site

<script async src="https://www.buffalo.edu/cookie-banner-external.js" data-privacy-url="URL_GOES_HERE" data-z-index="999999" ></script>

External sites can now embed the Cookie Banner by including the following script in their header or footer.

Note: Replace 'URL_GOES_HERE' with the link to your site's privacy policy page. The 'data-z-index' and 'data-privacy-url'  attributes are optional. The default privacy policy url is "https://www.buffalo.edu/administrative-services/policy-compliance-and-internal-controls/policy/ub-policy-lib/privacy.html"

To ensure the banner appears on every page, add this script to the 'include' files of your site's header.

Internal Usage:

The Cookie Banner is enabled by default across all UB CMS sites. If you want to not show it on your site, then here is how to disable it.

How to Disable It for Your Site

Only users with the 'cookiebanner-managers' group can disable this banner.

Follow the steps below to disable the cookie banner for your site.

  1. Navigate to your site’s home page, e.g., www.buffalo.edu/content/demo.html if located under /content/demo.
  2. Open the author instance URL: ubcms-author.buffalo.edu/content/demo.html.
  3. Open the page in edit mode -> Click the Page Properties button or press p.
  4. In the Page Properties dialog, click the Advanced tab.
  5. Locate the Cookie Banner drop-down -> Check the box labeled Disable Cookie banner for this page and all child pages.
  6. Save and Close.