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.
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.
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".
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.
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.
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.
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.