{"id":402125,"date":"2026-11-12T22:01:51","date_gmt":"2026-11-12T22:01:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/cookieconsenthq\/"},"modified":"2026-11-12T22:01:30","modified_gmt":"2026-11-12T22:01:30","slug":"cookieconsenthq","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/cookieconsenthq\/","author":23580242,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"7.1.4","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"CookieConsentHQ","header_author":"CookieConsentHQ","header_description":"Adds your CookieConsentHQ cookie banner to every page, first in the head, with Google Consent Mode v2 and WP Consent API support.","last_updated":"2026-11-12 22:01:30","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/cookieconsenthq.com\/integrations\/wordpress","header_author_uri":"https:\/\/cookieconsenthq.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":66,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.1":{"tag":"1.1.1","author":"hamzaahmadaslam","date":"2026-11-12 22:01:30","revision":3799336}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3799336,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3799336,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3799336,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3799336,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3799336,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[166295,223629,20272,16626,131785],"plugin_category":[],"plugin_contributors":[291234],"plugin_business_model":[],"class_list":["post-402125","plugin","type-plugin","status-publish","hentry","plugin_tags-ccpa","plugin_tags-consent-mode","plugin_tags-cookie-banner","plugin_tags-cookie-consent","plugin_tags-gdpr","plugin_contributors-hamzaahmadaslam","plugin_committers-hamzaahmadaslam"],"banners":{"banner":"https:\/\/ps.w.org\/cookieconsenthq\/assets\/banner-772x250.png?rev=3799336","banner_2x":"https:\/\/ps.w.org\/cookieconsenthq\/assets\/banner-1544x500.png?rev=3799336","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/cookieconsenthq\/assets\/icon.svg?rev=3799336","icon":"https:\/\/ps.w.org\/cookieconsenthq\/assets\/icon.svg?rev=3799336","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>CookieConsentHQ adds your cookie banner to every page of your WordPress site. The banner script loads first in the head, so it can hold back trackers until the visitor agrees. It helps you comply with privacy laws such as the GDPR, the UK GDPR, the ePrivacy Directive and the CCPA\/CPRA; you remain responsible for how your site uses cookies.<\/p>\n\n<p>What the plugin does:<\/p>\n\n<ul>\n<li>Adds your CookieConsentHQ banner script first in <code>&lt;head&gt;<\/code> on every front-end page.<\/li>\n<li>Shows the right banner for each visitor's region (opt-in in the EU, EEA, UK and Switzerland; opt-out or notice elsewhere, as you set it in your dashboard).<\/li>\n<li>Blocks known trackers until consent, and sends the visitor's choice to Google Consent Mode v2.<\/li>\n<li>Supports the WP Consent API, so other plugins that read it follow the visitor's choice.<\/li>\n<li>Honors Global Privacy Control signals where your region rules ask for it.<\/li>\n<li><code>[cchq_cookie_table]<\/code> shortcode: shows the cookies found on your site, grouped by category, on your cookie policy page.<\/li>\n<\/ul>\n\n<p>Every feature of this plugin is free. Your banner design, region rules, cookie scans and consent records are managed in your CookieConsentHQ account.<\/p>\n\n<h4>External service<\/h4>\n\n<p>This plugin loads your banner from CookieConsentHQ's content delivery network, <code>https:\/\/cdn.cookieconsenthq.com\/<\/code>. The banner asks <code>https:\/\/api.cookieconsenthq.com\/<\/code> which region the visitor is in, to show the right banner, and sends each consent decision there (a random consent ID, the categories chosen, the page path, the region, the banner version and A\/B test variant shown, and whether a Global Privacy Control signal was present; the service stores a shortened IP address and a hash of the browser's user agent) so you can show when and how consent was given. On about 1 in 100 page views the banner also sends your site key to <code>https:\/\/api.cookieconsenthq.com\/pv<\/code>, with no visitor data, to count page views against your plan. Nothing is loaded until you paste your site script URL in Settings \u2192 CookieConsentHQ.<\/p>\n\n<ul>\n<li>Service: https:\/\/cookieconsenthq.com\/<\/li>\n<li>Terms of service: https:\/\/cookieconsenthq.com\/legal\/terms<\/li>\n<li>Privacy policy: https:\/\/cookieconsenthq.com\/legal\/privacy<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the plugin from Plugins \u2192 Add New.<\/li>\n<li>Sign in to your CookieConsentHQ dashboard, open your site, and go to the Install tab.<\/li>\n<li>Copy the script URL. It looks like <code>https:\/\/cdn.cookieconsenthq.com\/s\/sk_xxxxxxxx.js<\/code>.<\/li>\n<li>In WordPress, go to Settings \u2192 CookieConsentHQ, paste the URL, and click Save Changes.<\/li>\n<li>If you use a caching or optimization plugin, clear its cache and exclude the CookieConsentHQ script from \"delay JavaScript\", \"defer\" and \"combine\" options.<\/li>\n<li>Optional: add <code>[cchq_cookie_table]<\/code> to your cookie policy page.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20make%20my%20site%20compliant%3F\"><h3>Does this plugin make my site compliant?<\/h3><\/dt>\n<dd><p>No plugin can do that on its own. CookieConsentHQ helps you comply: it asks for consent, blocks trackers until visitors agree, and keeps a record of each choice. Whether your site complies also depends on what it does with the data and what your privacy policy says.<\/p><\/dd>\n<dt id=\"do%20i%20need%20a%20cookieconsenthq%20account%3F\"><h3>Do I need a CookieConsentHQ account?<\/h3><\/dt>\n<dd><p>Yes. The banner, its settings and your consent records live in your CookieConsentHQ account. The plugin connects your WordPress site to it.<\/p><\/dd>\n<dt id=\"does%20the%20banner%20show%20a%20credit%20link%3F\"><h3>Does the banner show a credit link?<\/h3><\/dt>\n<dd><p>Not unless you choose to. The banner leaves out its \"Powered by CookieConsentHQ\" link on sites that use this plugin. If you want to show it, tick \"Show a Powered by CookieConsentHQ link in the banner\" under Settings, CookieConsentHQ. The link is marked nofollow.<\/p><\/dd>\n<dt id=\"where%20does%20the%20banner%20appear%3F\"><h3>Where does the banner appear?<\/h3><\/dt>\n<dd><p>On every front-end page. It is not added to the admin area, feeds, REST API responses, or AMP pages (AMP pages cannot run the banner script).<\/p><\/dd>\n<dt id=\"can%20i%20paste%20the%20whole%20script%20tag%3F\"><h3>Can I paste the whole script tag?<\/h3><\/dt>\n<dd><p>Yes. You can paste the script URL, the full <code>&lt;script&gt;<\/code> tag from the Install tab, or just the site key; the plugin saves the site key.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20google%20tag%20manager%3F\"><h3>Does it work with Google Tag Manager?<\/h3><\/dt>\n<dd><p>Yes. Because the banner loads before Google Tag Manager, it sets Consent Mode defaults before any Google tag runs. If you prefer to load the banner from Google Tag Manager instead, download the CookieConsentHQ Google Tag Manager template from https:\/\/cookieconsenthq.com\/integrations\/google-tag-manager (it is not yet in the Community Template Gallery) and do not use this plugin on the same site.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>Settings: an invalid script URL now shows its error once, not twice.<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>The \"Powered by CookieConsentHQ\" link is off by default; a setting turns it on.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release: banner script first in head, WP Consent API support, <code>[cchq_cookie_table]<\/code> shortcode.<\/li>\n<\/ul>","raw_excerpt":"Cookie banner with prior blocking, Google Consent Mode v2 and WP Consent API support. Connect your CookieConsentHQ site in one step.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/402125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=402125"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hamzaahmadaslam"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=402125"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=402125"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=402125"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=402125"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=402125"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=402125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}