Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/codebyamos/the-brandsmen-cookie-consent/archive/refs/heads/main.zipA GDPR-compliant WordPress cookie consent plugin with geo-targeting for EU/UK/Switzerland. Supports Google Consent Mode v2 and Microsoft Clarity.
Features
- Geo-targeting: Automatically detects visitor location and only shows consent banner to EU/EEA/UK/Swiss visitors
- Google Consent Mode v2: Full integration with Google's consent mode for proper analytics tracking
- Microsoft Clarity: Built-in support for Microsoft Clarity consent API
- Script Blocking: Automatically blocks tracking scripts until consent is given
- Customizable Banner: Customize colors, text, and position of the consent banner
- Cookie Categories: Supports Necessary, Analytics, Marketing, and Functional cookie categories
- AJAX-powered: Smooth consent handling without page reloads
- Caching Support: Efficient IP-based caching for geo-detection
- Auto-updates: Automatic plugin updates from GitHub releases
Installation
- Download the latest release from the Releases page
- Upload to your WordPress site via Plugins → Add New → Upload Plugin
- Activate the plugin
- Go to Settings → Cookie Consent to configure
Configuration
Navigate to Settings → Cookie Consent in your WordPress admin to configure:
- Banner Text: Customize the consent message
- Button Labels: Customize Accept, Reject, and Settings button text
- Colors: Match the banner to your site's design
- Position: Choose bottom or top banner placement
- Categories: Enable/disable Analytics, Marketing, and Functional cookie categories
- Auto-detect Scripts: Enable automatic detection and blocking of tracking scripts
Automatic Updates
This plugin supports automatic updates via GitHub. When a new release is published, WordPress will notify you of the available update in the Plugins page.
Creating a Release
-
Update the version number in
the-brandsmen-cookie-consent.php:- In the plugin header:
Version: X.X.X - In the constant:
define('TBCC_VERSION', 'X.X.X');
- In the plugin header:
-
Commit your changes:
git add . git commit -m "Version X.X.X - Description of changes" -
Create a tag matching the version:
git tag vX.X.X git push origin main --tags -
Go to GitHub → Releases → Create new release
-
Select your tag and publish the release
Supported Tracking Scripts
The plugin automatically detects and blocks the following scripts:
Analytics
- Google Analytics (GA4, Universal Analytics)
- Google Tag Manager
- Microsoft Clarity
- Hotjar
- Mixpanel
Marketing
- Facebook Pixel
- Google Ads
- LinkedIn Insight Tag
- Twitter Ads
- TikTok Pixel
- Bing Ads
Functional
- CallRail
- Intercom
- Zendesk
- Drift
- Tawk.to
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
License
GPL v2 or later. See LICENSE for details.
Author
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.