Wordpress
If you are currently using Google Tag Manager, we suggest following this guideline instead:
Plugin
To simplify the implementation of CookieHub in your Wordpress website, you can use the CookieHub Wordpress plugin available in the Wordpress plugin repository. This plugin allows for an easier setup process and direct integration with your CookieHub account and domain. Here's how to install and configure the plugin:
Install the CookieHub Wordpress plugin:
- Log in to the Wordpress admin for your website
- Click the Plugins link in the left menu
- Click the Add New button at the top
- Search for "CookieHub" and click "Install Now"
- Activate the plugin by clicking the "Activate" button
- Configure the CookieHub GDPR plugin for Wordpress:
After installing the CookieHub plugin, you need to link it to your CookieHub account/domain. Here's how to configure the plugin:
- Click the "CookieHub" item in the left menu under Plugins
- Enter your domain code in the "Code" field and select the "Automatic cookie blocking" option (if you have already activated automatic cookie blocking for your domain).
- Scroll down and save the changes.
CookieHub is now implemented on your WordPress website and is managing third-party tracking scripts automatically. Note that if you're using a caching plugin or service, you may need to clear the cache to see the changes take effect.
Manual implementation
If you prefer to set up CookieHub manually, follow the steps below:
- Follow the steps 1-4 in the Inline HTML tag section to obtain the CookieHub implementation code.
- Log in to your WordPress dashboard and select Appearance in the left-hand menu.
- Click on Theme Editor.
- Find the header.php file in the list of theme files on the right-hand side and click on it to open it.
- Paste the CookieHub implementation code right below the opening head tag.
- Click the Update File button to save the changes.