Have you finished creating your consent banner and copied the Didomi tag (from the "EMBED" section) onto your site, but you don't see your banner or it's not displaying correctly?
Please check the following elements to ensure that you have correctly configured your consent banner.
1. Make sure that the Embed code is present on your site.
Using Chrome's developer tools (right-click anywhere on the page, select "Inspect," and go to the Console section), ensure that the Didomi Embed code is present on your site.
You can verify that the Javascript function Didomi.getConfig() exists on your site. :
If you receive a JavaScript error, the Didomi SDK has not been properly loaded on your site. Please double-check that the code obtained from the Embed section of the console is correctly present on your site.
2. Make sure that the console configuration is properly loaded.
- Type window.didomiRemoteConfig in the Chrome developer tools console.
- Press enter.
- If you see "undefined," it means that there is no configuration coming from the console or there is an error.
- To resolve this issue, please refer to the sections "Target the correct domain name" and "Publish your banner" further down.
3. Target the correct domain name
Your consent banner must target the domain name of the site on which it is deployed, or target any domain name, to ensure that it will be displayed.
- Read our detailed article on targeting a banner.
- Also, ensure that no other banner has a similar targeted domain, as this could potentially override the banner you intend to display.
4. Configure the Partners
-
Make sure that your consent banner is configured to collect consent for at least one partner.
-
If no partners are configured, no consent is required, and the consent banner will not be displayed. You should then add partners in the " Edit VENDORS & PURPOSES" button of your banner in the Didomi Console. You will find this button under your regulation.
- If you have custom partners, ensure they are linked to purposes. Consent cannot be collected for partners that are not associated with any purposes.
5. Publish your banner
-
Click the "PUBLISH" button to publish your banner. This ensures that the banner you have configured is deployed on your site.
Similarly, each time you make changes to your consent banner, be sure to publish them so that they appear on your site.
6. A local configuration "overrides" a remote configuration.
Using your browser's developer tools, type window.didomiConfig
in the Console section and press Enter. If you see anything other than "undefined," this could potentially be the reason. Ask your developers to remove the JavaScript object from the source code. If there is one, make sure it is intentional.
7. Translate your banner.
Ensure that your banner is translated into the languages you selected.
If not, your banner will not be able to display.