Description
Advanced Pixel for Barion adds Barion Pixel tracking to your WooCommerce store. It supports two modes:
Base Pixel (always active): Loads the Barion tracking script on all pages. Fires pageView automatically for fraud prevention and basic analytics.
Full Tracking (optional): Tracks all mandatory e-commerce events per the Barion Pixel documentation:
- contentView – Product page views
- addToCart – Add to cart actions (client-side, compatible with page caching)
- initiateCheckout – Checkout page views
- purchase – Completed orders with full revenue tracking
- setEncryptedEmail – Encrypted billing email for user identification
Cookie Consent
The plugin integrates with the WP Consent API, supporting all major cookie consent plugins:
- CookieYes
- Complianz
- Real Cookie Banner
- GDPR Cookie Compliance (Moove)
- Cookie Notice by dFactory
Direct fallback integration with Cookie Law Info is also included.
Supported Languages
- English (default)
- Hungarian (hu_HU)
- Czech (cs_CZ)
- Slovak (sk_SK)
- German (de_DE)
- Croatian (hr)
- Romanian (ro_RO)
- Slovenian (sl_SI)
- Serbian (sr_RS)
Privacy
This plugin loads the Barion Pixel script (bp.js) from pixel.barion.com on all frontend pages. Page view and e-commerce event data is sent to Barion’s servers. On purchase completion, the billing email address is passed to bp.js which encrypts it with SHA1 before transmission — no plaintext email leaves your server.
Key Features
- Base Pixel with automatic pageView tracking
- Full e-commerce event tracking with all required fields
- WP Consent API integration for universal cookie consent support
- Client-side add-to-cart tracking (compatible with page caching)
- Variable product support (tracks variation prices)
- Duplicate purchase prevention
- Debug mode with console logging
- Detects other plugins loading bp.js to avoid double-loading
Installation
- Upload the
advanced-pixel-for-barionfolder to/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Settings > Barion Pixel and enter your Barion Pixel ID
- Optionally enable or disable Full Pixel Tracking
Requirements
- WordPress 5.0 or higher
- PHP 7.2 or higher
- WooCommerce 5.0 or higher (for full event tracking)
Optional
- WP Consent API for universal cookie consent support
- Any WP Consent API compatible cookie plugin (CookieYes, Complianz, etc.)
FAQ
-
Do I need WooCommerce?
-
The Base Pixel (pageView) works without WooCommerce. Full event tracking (contentView, addToCart, initiateCheckout, purchase, setEncryptedEmail) requires WooCommerce.
-
I already use the Barion Payment Gateway plugin. Will this conflict?
-
No. The Barion Payment Gateway is a payment processor only — it doesn’t implement Barion Pixel event tracking. Both plugins coexist perfectly. If both have a Pixel ID configured, Advanced Pixel for Barion detects that bp.js is already loaded and skips re-loading it.
-
All plugins that implement the WP Consent API standard: CookieYes, Complianz, Real Cookie Banner, GDPR Cookie Compliance (Moove), Cookie Notice by dFactory, and others. Direct fallback integration with Cookie Law Info is also built in.
-
What is the difference between Base Pixel and Full Tracking?
-
Base Pixel loads bp.js and fires pageView on every page. This is used by Barion for fraud prevention and basic analytics. Full Tracking adds e-commerce events (product views, add to cart, checkout, purchase) that enable marketing analytics and may qualify your store for lower Barion commission rates.
-
Can I use only the Base Pixel?
-
Yes. Just uncheck “Enable Full Pixel Tracking” in the settings. The base pixel will still load and fire pageView events.
-
How does the plugin handle page caching?
-
The addToCart event uses client-side JavaScript instead of PHP sessions, so it works correctly with all page caching setups (WP Super Cache, W3 Total Cache, LiteSpeed, WordPress.com hosting, etc.). Other events fire on dynamic pages that are not cached.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Advanced Pixel for Barion” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Advanced Pixel for Barion” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release
- Base Barion Pixel (pageView) implementation
- Full event tracking: contentView, addToCart, initiateCheckout, purchase, setEncryptedEmail
- WP Consent API integration (supports CookieYes, Complianz, Real Cookie Banner, and others)
- Cookie Law Info fallback integration
- Admin settings panel with debug mode
- Client-side addToCart tracking (compatible with page caching)
- Variable product support (tracks variation prices)
- Duplicate purchase prevention
- bp.js double-load detection