Unlike the policy embed codes, the cookie consent solution embed code must be pasted into the the header section of your website and before any other 3rd party scripts that you may be using (such as Google Analytics or Facebook Pixel).
No matter what route you go, it is essential that you ensure the consent solution gets pasted as high up in the <head> as possible. This ensures the consent tool can control all scripts on the website and collect consent prior to those scripts firing and placing cookies on the user's browsers.
Here is our recommended option to insert this code into your WordPress website:
Use the Termageddon plugin (RECOMMENDED)
Termageddon has a plugin that helps make the cookie consent installation process a breeze. The plugin also helps resolve a conflict with the DIVI theme (upon activation, go to 'settings' within the Termageddon plugin and 'deactivate' the consent tool for logged in administrators. This will fix the issue with the Visual Builder not showing.). The consent tool also has a geolocation feature, meaning you can select who you'd like to display the consent tool (so for example, only to people in the EU, UK, California and Canada, for example).
Steps:
1. Download and activate the Termageddon Usercentrics Plugin in your WordPress backend
2. Click 'Tools' -> "Termageddon + Usercentrics"
3. On the first page, paste the Usercentrics cookie consent solution embed code and click save.
4. That's it. Be sure to test the website (in a fresh incognito window) to confirm everything is working (and submit test form submissions through any contact form(s) if you're using security features like reCaptcha).
If you pasted this cookie consent embed code somewhere else in the backend of your website prior to using the plugin, you will need to remove it now that it's pasted within the plugin.