How to integrate the CMP into a WordPress website?

In order to integrate your CMP into a WordPress website, you can use our WordPress plugin or insert your CMP code manually, we recommend using the plugin:

Integration using our plugin

  1. Login to your WordPress CMS and click on Plugins section > Add New.
  2. On the next page search for "consentmanager" - Download Link on
  3. The Page will show you matching plugins. On the consentmanager plugin click on the "Install Now" button

  4. Once the Plugin is installed & activated, you will find a new Item in your navigation.

  5. Login to and click on CMP => Get Code, scroll down to the section "Delivery Details", then copy the Code-ID of your CMP:

  6. Paste your Code-ID here (inserting your CMP-ID also works instead of your Code-ID but we recommend using the Code-ID, because the CMP-ID input field will be depreceated in the near future):

  7. Choose your blocking mode:

    Automatic Clientside: Javascript based blocking of 3rd party scripts listed in your consentmanager account.

    Semiautomatic Clientside: Blocks all scripts that you marked in your code.

  8. Optional: When you activate "Hide for admins", the CMP will be deactivated for logged in Admins. This can be helpful if you are using a frontend editor like the Divi Builder.

  9. Once you saved your settings, the Code will be automatically inserted into your page.

When using a caching plugin: In exceptional cases there can be some design conflicts with caching plugins. If you experience unusual design behaviour, please try to deactivate your caching plugin first and check whether the frontend result is good now. If you still experience any other problems, feel free to get in touch:

Manual integration with HTML/JavaScript code

Please note: The below description is only valid for the manual blocking code. If you want to use automatic code blocking, please ensure that the CMP-Code is inserted directly after the <head> element of your website code.

  1. Login to your WordPress CMS
  2. Go to Appearance > Editor
  3. Edit the file that is responsible for the Header of your WordPress Theme (usually header.php)
  4. Find the start of the <body ...> section.
  5. Login to, go to Get Code and copy the Code from Section "Setup using Copy&Paste"
  6. Paste the CMP-Code directly after the end of the <body ...> section in your WordPress:

  7. Click on "Update File" button in order to save the changes.

Automatic Blocking of YouTube and other Elements (server-side)

You can find an example of how you can implement server-side blocking of YouTube videos here.

Back to top