HubSpot CookieYes Integration
WordPress Plugin to integrate CookieYes with HubSpot
by Thomas McMahon · github.com/twistermc/hubspot-cookieyes-wp
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/twistermc/hubspot-cookieyes-wp/archive/refs/heads/main.zipReadme
HubSpot CookieYes Integration for WordPress
A WordPress plugin that seamlessly integrates HubSpot's consent management with CookieYes cookie consent banner.
Description
This plugin bridges the gap between HubSpot and CookieYes consent management systems, ensuring that user privacy preferences are consistently maintained across both platforms. When a user interacts with the CookieYes consent banner, their preferences are automatically synchronized with HubSpot's consent management system.
Features
- Automatically integrates CookieYes consent preferences with HubSpot
- Loads early in the page lifecycle for optimal functionality
- Includes security features like nonce verification
- Provides error logging for easier troubleshooting
- Zero configuration required - works out of the box
Requirements
- WordPress 5.0 or higher
- HubSpot tracking code installed on your site or the HubSpot WordPress plugin
- CookieYes plugin installed and configured
- PHP 7.4 or higher
Installation
- Upload the
hubspot-cookieyes-wpdirectory to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Ensure both HubSpot tracking code and CookieYes are properly configured on your site
Technical Details
The plugin works by injecting a small JavaScript snippet into your page's <head> section. This script:
- Listens for CookieYes consent changes
- Maps CookieYes categories to HubSpot consent types
- Updates HubSpot's consent tracking accordingly
Security
- Uses WordPress nonces for script security
- Implements proper file permissions checking
- Sanitizes all outputs
Credits
The integration approach is based on the official CookieYes documentation: Integrating HubSpot Consent API with CookieYes.
License
This plugin is licensed under the GPL v3 or later.