Skip to content

Advanced Pixel for Barion

Barion Pixel integration for WooCommerce with full e-commerce event tracking, cookie consent support, and WP Consent API compatibility.

  • 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 pages
    • addToCart: Fired when items are added to cart (client-side, works with page caching)
    • initiateCheckout: Fired when checkout begins
    • purchase: 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)
  1. Upload the advanced-pixel-for-barion folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to Settings > Barion Pixel to configure

Access the settings page at Settings > Barion Pixel in WordPress admin.

Enter your Barion Pixel ID (format: BP-0000000000-00). The Base Pixel will be loaded on all pages once this is set.

Toggle to enable/disable e-commerce event tracking. When disabled, only the Base Pixel loads (pageView for fraud prevention).

Enable to log all Barion Pixel events to the browser console for testing.

  • 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
  • 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

GPL-2.0-or-later — see LICENSE for details.

  • 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