| 开发者 | mrdarkside |
|---|---|
| 更新时间 | 2026年5月12日 00:03 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
pageView automatically for fraud prevention and basic analytics.
Full Tracking (optional): Tracks all mandatory e-commerce events per the Barion Pixel documentation:
advanced-pixel-for-barion folder to /wp-content/plugins/The Base Pixel (pageView) works without WooCommerce. Full event tracking (contentView, addToCart, initiateCheckout, purchase, setEncryptedEmail) requires WooCommerce.
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.
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.
Yes. Just uncheck "Enable Full Pixel Tracking" in the settings. The base pixel will still load and fire pageView events.
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.
+ in the local part (e.g. alice+tag@example.com), or with TLDs longer than four letters (e.g. .museum, .online), were rejected by bp.js with Format of e-mail address or hash is invalid. The plugin now SHA-1 hashes the email client-side (via the Web Crypto API) before passing it to bp.js, which bypasses bp.js's restrictive internal email regex. The Barion Pixel API explicitly supports pre-computed SHA-1 hashes.setEncryptedEmail was firing multiple times on a single checkout page load (the change + blur pair plus the updated_checkout rebind caused duplicates).x@y) with error 12 (Format of e-mail address or hash is invalid in setEncryptedEmail). The email is now validated against the HTML5 spec for valid email addresses before being sent; pre-computed SHA-1 hashes are also accepted, matching the Barion Pixel API reference.bp('identity', 'setEncryptedEmail', ...) (previously 'identify').blur handler, idempotent rebinding via a data attribute).wp_print_footer_scripts had already run.setEncryptedEmail now also fires when the customer enters their email on the checkout page (and on checkout load for logged-in users), as required by the Barion Pixel API reference.DOMContentLoaded, so it can see globals defined by consent plugins that load later in the page.