If an error message saying "Error: DOMAINNAME is not a valid domain. Please add it to the cookie consent manager to authorize the domain." appears in the browser's developer console, there are a few possible causes:
Problem: The URL (
location.host) doesn't match the domain name listed under your Cookiebot account.
Solution: Ensure that the domain is listed in under your Cookiebot account and that it is an exact match to the URL.
Problem: The CBID is incorrect or doesn't belong to the domain group under which the domain is listed.
Solution: Ensure that the CBID on the Cookiebot script tag matches that of the Domain Group under which the domain is listed.
Problem: Your subscription fee is in arrears.
Solution: Try logging into your Cookiebot account. If you are behind on payment for your Cookiebot subscription you should be notified upon logging in.
Please see this article for for further and more detailed explanations and solutions: Error: The domain is not authorized to show the cookie declaration. Please add it in the cookie manager to authorize the domain.