WPConsent Documentation

Documentation, Reference Materials, and Tutorials for WPConsent

Script & Cookie Blocking

Google Tag Manager Template

The GTM template mentioned in this article is currently pending approval in the GTM Community Template Gallery. We’ll update this...

Automatic Script Blocking

How do you prevent tracking scripts from setting cookies before your visitors give consent? WPConsent automatically detects and blocks known...

Content Blocking and Placeholders

How do you stop embedded iframes from loading tracking cookies before visitors give consent? WPConsent blocks third-party iframes and replaces...

Custom Scripts and Iframes

Need to block a third-party script or iframe that WPConsent doesn’t recognize automatically? With custom scripts, you can add blocking...

Google Consent Mode v2

Want to keep Google Analytics, Google Ads, and Google Tag Manager running while respecting visitor privacy? WPConsent integrates with Google...

Microsoft Clarity Consent Mode

Want Microsoft Clarity to collect heatmap and session recording data without cookies until visitors consent? WPConsent integrates with Clarity Consent...

Triggering GTM Tags Based on Consent

Want your Google Tag Manager tags to fire only after visitors grant consent? WPConsent pushes a custom event and preferences...