Troubleshooting

Solutions for Cookie Consent problems

Here you can find solutions to common problems. Report issues on Cookie Consent GitHub page.

1. How to get top pushdown to work with a fixed navigation bar?

You’ll need to add top margin to your navigation bar on popup open and remove it on close.

window.cookieconsent.initialise({ palette: {popup:{background:"#000"},button:{background:"#f1d600"}}, position: "top", static: true, onPopupOpen : function () { pushDown(this.element.clientHeight); }, onPopupClose : function () { pushDown(0); } }); function pushDown(height) { var navbar = document.getElementsByClassName(" NAVBAR CLASS ")[0]; navbar.style.transition = 'all 1s'; navbar.style.marginTop = height+'px'; }

2. Javascript TypeError

null is not an object (evaluating 's.firstChild')

This error message usually means that the body of your website is loaded dynamically and after Cookie Consent.

Try moving the scripts to the footer, just before the closing the body tag.

Cookie Consent is only available in English. However, you can configure every line of text on cookie consent window. This can be done dynamically on multilingual sites using your own translation files/scripts.

Example:
window.cookieconsent.initialise({ palette: { popup:{ background:"#000" }, button:{ background:"#f1d600" } }, content: { message: "//MESSAGE_IN_CURRENT_LANG", dismiss: "//DISMISS_BUTTON_IN_CURRENT_LANG" } });

What's New at Osano

Introducing DSAR email intake

Capture data subject rights requests with the convenience of email and the efficiency of a dedicated intake form.

Learn more

New reworked DSAR and discovery

We've reworked and redesigned Osano Subject Rights Management and Data Discovery, unifying them into a single, seamless experience and creating automation to save you time.

Learn more

Stay GDPR compliant under new French ruling

Privacy regulators at the CNIL in France recently declared that Google Analytics violates GDPR. Osano’s new block list feature can disable Google Analytics in France to keep you compliant while allowing you to use Google Analytics in regions where it is still legal.

LEARN MORE

New in May 2022: DSAR conditional fields, 28 new integrations, and more!

Customize DSAR forms with conditional fields, serve consent banners in additional languages, use 28 new integrations for Data Discovery, and more! Check out our latest product announcement blog for demos, links, and more information.

LEARN WHAT’S NEW IN MAY

New in April 2022: Admin notes, IAB TCF updates, and more!

Collaborate on DSARs with internal notes for request submissions. IAB TCF 2.0 Consent Management support has been updated per the latest IAB specifications. 11 new Data Discovery integrations and more! Check out our latest product announcement blog for demos, links, and more information.

LEARN WHAT’S NEW IN APRIL

View more product updates

Osano product & engineering teams have been hard at work. View the full list of all product updates.

View Product Updates