Advanced Pixel for Barion
Barion Pixel integration for WooCommerce with full e-commerce event tracking, cookie consent support, and WP Consent API compatibility.
Features
Section titled “Features”- Base Barion Pixel: Loads the Barion tracking script site-wide (pageView fires automatically)
- Full Event Tracking: All mandatory e-commerce events per Barion documentation
contentView: Fired on product pagesaddToCart: Fired when items are added to cart (client-side, works with page caching)initiateCheckout: Fired when checkout beginspurchase: Fired on successful order completion (with duplicate prevention)setEncryptedEmail: Sends billing email to Barion on purchase (encrypted by bp.js)
- WP Consent API Integration: Universal cookie consent support — works with CookieYes, Complianz, Real Cookie Banner, GDPR Cookie Compliance, Cookie Notice, and more
- Cookie Law Info Fallback: Direct integration for sites using CookieYes/Cookie Law Info
- Admin Settings Panel: Easy configuration through WordPress admin
- Debug Mode: Console logging for testing and development
- bp.js Double-Load Detection: Safely coexists with other plugins that load bp.js (e.g., Barion Payment Gateway)
Installation
Section titled “Installation”- Upload the
advanced-pixel-for-barionfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Navigate to Settings > Barion Pixel to configure
Configuration
Section titled “Configuration”Admin Settings
Section titled “Admin Settings”Access the settings page at Settings > Barion Pixel in WordPress admin.
Pixel ID (Required)
Section titled “Pixel ID (Required)”Enter your Barion Pixel ID (format: BP-0000000000-00). The Base Pixel will be loaded on all pages once this is set.
Enable Full Pixel Tracking
Section titled “Enable Full Pixel Tracking”Toggle to enable/disable e-commerce event tracking. When disabled, only the Base Pixel loads (pageView for fraud prevention).
Debug Mode
Section titled “Debug Mode”Enable to log all Barion Pixel events to the browser console for testing.
Compatibility
Section titled “Compatibility”- WooCommerce: Required for full event tracking (base pixel works without it)
- Barion Payment Gateway (woocommerce-barion): Coexists perfectly — that plugin handles payments, this one handles pixel tracking
- Page caching: Fully compatible (addToCart uses client-side JS)
- Cookie plugins: Any WP Consent API compatible plugin works automatically
Requirements
Section titled “Requirements”- WordPress 5.0 or higher
- PHP 7.2 or higher
- WooCommerce 5.0+ (for full event tracking)
- Optional: WP Consent API for universal cookie consent support
License
Section titled “License”GPL-2.0-or-later — see LICENSE for details.
Changelog
Section titled “Changelog”- Initial release
- Base Barion Pixel (pageView) implementation
- Full event tracking (contentView, addToCart, initiateCheckout, purchase, setEncryptedEmail)
- WP Consent API integration
- Cookie Law Info fallback integration
- Admin settings panel with debug mode
- Client-side addToCart (compatible with page caching)
- Variable product support
- Duplicate purchase prevention
- bp.js double-load detection