WordPress Installation
Time: ~5 minutes
Option 1: Plugin (recommended)
- Go to Plugins → Add New and search for "ConsentForge"
- Install and activate
- Go to Settings → ConsentForge
- Paste your Embed Token
- Save. Done.
Option 2: Manual (via functions.php)
Add to your theme's functions.php:
function consentforge_enqueue() {
echo '<script src="https://cdn.consentforge.com/consentforge.min.js"
data-token="YOUR_TOKEN" defer></script>';
}
add_action('wp_head', 'consentforge_enqueue', 1);
Caching plugins
If you use WP Rocket, W3 Total Cache, or similar: exclude consentforge.min.js from minification and defer optimization. The script handles its own loading strategy.