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

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

New in March 2022: attachments, config sorting, and more!

Send and receive attachments in the Data Subject Rights secure messaging portal, filter and sort capabilities for your Consent Management configuration, and much more! Check out our latest product announcement blog for demos, links, and more information.

LEARN WHAT’S NEW IN MARCH

Introducing AMP support for Osano Consent Manager

Capture and manage consent across your standard and AMP pages using the same Consent Management Platform.

Learn more about Osano for AMP

Saudi Arabia and UAE banner updates

Based on recent legislation in Saudi Arabia and the UAE, Osano Consent Manager now features updated cookie banners for both regions. 

Learn more

Introducing Secure Messaging Portal

Now you can communicate securely with your customers and users who make Data Subject Access Requests (DSARs) about their request in a secure and compliant way.

Read about the DSAR Secure Messaging Portal

View more product updates

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

View Product Updates