How to Manually Integrate a CMP Script on a WordPress Site
Summary
This guide provides step-by-step instructions on how to manually integrate The Moneytizer's Consent Management Platform (CMP) script on a WordPress website using the theme editor. This method is an alternative to using a plugin and ensures compliance with data protection regulations by displaying a consent banner on your site.
Introduction
To comply with the General Data Protection Regulation (GDPR), it's essential to display a consent banner on your website, especially if you have international traffic. While a WordPress plugin can automatically handle this, another effective method is to manually add the CMP script directly into your site's source code. The most universal way to do this is by using the WordPress theme editor.
Step-by-Step Guide
Step 1: Access the WordPress Theme File Editor
Log in to your WordPress dashboard.
On the sidebar, click on the "Appearance" tab.

In the drop-down menu that appears, click on "Theme File Editor".
This will give you access to the various files that make up your site's theme, including the header.php file, which is where you will place the CMP script.
This will give you access to the various files that make up your site's theme, including the header.php file, which is where you will place the CMP script.


Step 2: Locate and Copy the CMP Script
Go to your Moneytizer dashboard (or your Moneybox dashboard).
Navigate to the "Consent Banner" section.
Here, you will find the CMP script you need to copy.
The script is a piece of code that will display the consent banner on your site.
Step 3: Paste the CMP Script into the header.php File
Return to the WordPress Theme File Editor.
On the right-hand side, under "Theme Files," find and click on the header.php file.
Locate the <head> section in the code.
Paste the CMP script you copied in the previous step between the <head> and </head> tags.
Click the "Update File" button to save your changes.
Step 4: Clear Your Cache
Once you have saved the file, remember to clear your site's cache. This ensures the changes take effect and the CMP banner is displayed correctly on your site.
Alternative Method
While using the Theme File Editor is a reliable method, you can also integrate the CMP manually using a "Code Snippet" plugin. This is a viable solution if you are familiar with these types of plugins.
Related Articles
Guide for CMP Integration and GDPR Compliance
Summary This article explains how to integrate the InMobi CMP consent banner on your website. Learn where to find the necessary code, how to implement it, and how to verify that the integration is working correctly. Introduction To comply with the ...
How to Manually Integrate ads.txt on WordPress (Without FTP)
Summary It is possible to manually integrate your ads.txt file on a WordPress website without FTP access by using a simple WordPress plugin. This guide provides the step-by-step instructions to install and use the "File Manager" plugin to add the ...
How to Manually Integrate Your ads.txt File
Summary Implementing the ads.txt file is an obligatory and essential step to start monetizing your site with The Moneytizer. The file lists all the buyers allowed to access your inventory, which helps prevent ad fraud and enhances your site's ...
How to Integrate The Moneytizer's ads.txt File on a Squarespace Site
Summary Implementing the ads.txt file is an obligatory and essential step to start monetizing your site. Because Squarespace does not allow direct file uploads to the root directory, the process involves four main parts: downloading the file, ...
How to Manually Integrate Ad Formats
Summary If you choose manual integration, you will be able to add the ad formats to your site yourself. In your Moneybox, you will find all the necessary information for each format, including its size, a demo of how it looks, and where it needs to ...