Skip to main content
Cookbook Maintenance Cookiebot

Connect Your Cookiebot Account to WordPress with AI

Your Cookiebot or Usercentrics ID saved in the form the plugin reads, and the right banner script confirmed on your page.

Difficulty Beginner
Time ~5 min

Prerequisites

A site connected to WPVibe running Cookiebot by Usercentrics 4.7 or newer (tested on 4.8.1, free) on WordPress 6.9 or newer, with an administrator account, and a Cookiebot or Usercentrics account for the banner itself.

The prompt
My WordPress site uses the Cookiebot by Usercentrics plugin. Connect it to my account with this ID: [your Domain Group ID or Settings ID].

1. Run discover_abilities with category cookiebot. If the cookiebot abilities this needs are not there, stop and tell me to install or update the free Cookiebot by Usercentrics plugin from WordPress.org (4.7 or newer, on WordPress 6.9 or newer).
2. Run cookiebot/get-status. Then run run_wp_cli with option get cookiebot-cbid and tell me the ID set now, or that none is set, so I can go back to it. If option get comes back empty or not found while cbid_set is true, the ID is set for the whole multisite network: read it from the banner script on my home page (get_page_html, url set to my home page's address) and tell me it is set network-wide. If the ID is set network-wide, ask me before saving one for this site: a site ID overrides the network ID from then on, and going back means clearing this site's ID so the network ID applies again.
3. Trim any spaces from the ends of the new ID, then check its form. A Cookiebot Domain Group ID is 36 characters: letters a to f (in any case) and digits in groups of 8, 4, 4, 4 and 12, joined by dashes. A Usercentrics Settings ID is 9 or 14 characters: letters, digits, underscores or dashes. For a Domain Group ID, change any capital letters to lowercase: the plugin treats a Domain Group ID with capitals as a Usercentrics ID and loads the wrong banner. Keep a Settings ID exactly as I gave it. If the ID is neither, or has spaces inside it, stop and tell me where to find it: in the Cookiebot admin under Implementation, or in the Usercentrics admin. If it is exactly the ID set, letter case included, skip to step 5. If the ID set now differs only in letter case, tell me saving it in lowercase fixes the banner, then go on. If a different ID is set now, show me both and ask before replacing it: a wrong ID takes the live banner down.
4. Tell me this goes live on my site at once, then run cookiebot/set-cbid with cbid set to the ID and confirm success is true. If it refuses a Settings ID that has an underscore or a dash, tell me to update Cookiebot to the latest version, and stop. Then run run_wp_cli with cache purge, so visitors are not served a cached page with the old ID (a CDN in front of the site may need its own purge).
5. Read my home page with get_page_html, url set to my home page's address. For a Domain Group ID, the banner script is the script with id Cookiebot loading from consent.cookiebot.com, and its data-cbid must be the ID. For a Settings ID, it is the script with id usercentrics-cmp, and its data-settings-id, or data-ruleset-id, must be the ID. If the script shows data-ruleset-id, tell me Cookiebot is set to treat the ID as a Usercentrics Ruleset ID, and ask whether that is right. If the banner script is missing, run cookiebot/get-status: if banner_enabled is false, tell me the banner is switched off in Cookiebot's settings. If the account was signed in through the plugin's dashboard, an expired trial or a cancelled subscription also stops the banner script. If it is still missing, or the wrong script is there, tell me what you found and ask before doing anything else.
6. Run cookiebot/verify-setup and explain each issue it lists in plain words. Don't change anything it lists.
7. Tell me the ID before and after, and the sentence to go back: Set the Cookiebot ID back to OLD_ID with cookiebot/set-cbid (if set-cbid refuses it, with run_wp_cli option update cookiebot-cbid OLD_ID), then run run_wp_cli cache purge (use the real old ID). If the old ID differed only in letter case, tell me going back brings the broken banner back. If no ID was set before, or the old ID was the network's, the sentence is: Clear the Cookiebot ID with run_wp_cli option update cookiebot-cbid and an empty value, then run run_wp_cli cache purge. Then tell me to open my site in a private window and check that the banner shows. Tell me you checked the ID's form and the script, not that my Cookiebot or Usercentrics account allows this domain: if the banner doesn't show, check the domain is listed in my account. For a Cookiebot Domain Group ID, Cookiebot 4.8 or newer also checks this when the ID is connected on its own dashboard in WordPress admin; Settings IDs are not checked there.
Already connected?

Skip pasting the full prompt. Drop this into your AI on a site that already has WPVibe:

Run the “Connect Your Cookiebot Account to WordPress with AI” recipe from the WPVibe cookbook on my connected site.

You have a Cookiebot or Usercentrics account and the plugin is installed, but the banner only shows once WordPress has your account’s ID: the Domain Group ID for Cookiebot, the Settings ID for Usercentrics. An ID in the wrong form fails quietly. In our test, a Cookiebot ID typed in capitals was saved without complaint, the setup check passed, and the plugin loaded the Usercentrics script instead of Cookiebot’s.

The AI notes the ID you have now, checks the new one’s form and saves it with Cookiebot’s own ability, in lowercase for a Cookiebot ID. Then it clears your page cache so visitors get the change, usually reads your home page as your server sends it, confirms the right banner script is there with your ID, and runs Cookiebot’s setup check. It gives you one sentence to go back.

Find the ID in your Cookiebot admin under Implementation, or in your Usercentrics admin. The change is live at once, with no draft step, so check the banner in a private window straight after. The banner’s look and wording are set in your Cookiebot or Usercentrics account, not in WordPress. To check a setup without changing it, use this recipe.

Outcome

Your ID is saved, the banner script for it is on your home page, and you have the sentence that puts the old ID back.