Linux 软件免费装
Banner图

PixLedger – Consent-Aware Meta Pixel, GA4 & GTM Tracking for WooCommerce

开发者 mentotex
更新时间 2026年10月27日 17:21
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

google tag manager woocommerce tracking conversion tracking ga4 meta pixel

下载

1.8.4 1.6.4 1.6.5

详情介绍:

PixLedger sends your store's tracking events to Meta Pixel (Facebook), Google Analytics 4 and Google Tag Manager, and keeps a local log so you can see exactly what happened to every event. Why PixLedger What it does not do. PixLedger sends events from the visitor's browser. It cannot deliver an event after the browser has closed, and it cannot prove that a platform accepted an event. Server-side delivery is not part of this plugin. How it works PixLedger Lite connects your site to Meta Pixel, Google Analytics 4 and Google Tag Manager. WooCommerce events use data from WooCommerce; browsing events come from the visitor's browser. A local event log shows the mapped provider payload and how far each event progressed. What the event log means Each status is explained below the Event Log table. Filter logs by event, provider, status, UTC date range or order/visitor/event ID. Inspect payloads, export the filtered log as CSV (up to 100,000 rows per file), delete selected logs and configure retention. CSV exports contain visitor IDs and event payloads, which are pseudonymous personal data, so handle downloaded files accordingly; customer email is never exported. WordPress displays event times in your site's timezone. Tracking WooCommerce: product views, cart additions/removals, cart and checkout views, payment/shipping selection at order processing, coupons, purchases and product-review submissions. Purchase requires an order WooCommerce considers paid and a valid recent order key or checkout delivery cookie. Pending, failed and cancelled orders never produce Purchase events. On-hold orders (typical for bank transfer and cash on delivery) are counted by default; switch that off under Tracking rules to count paid orders only. Payment completed after the visitor leaves may not reach browser platforms. Refunds are recorded locally. Lite does not send administrative background refunds to external platforms. WordPress/browser: page views, 404 pages, outbound/download/phone/email clicks, search, form submission attempts, abandoned forms, scroll depth, time on page, account actions and comments. HTML5 video start/end events are supported; embedded YouTube/Vimeo players are not integrated. FormSubmit means an attempted submission, not a confirmed lead. Each event has a switch. The Custom Events switch also controls unregistered custom event names. Features are available without a subscription or license key. WooCommerce is optional. Custom events Use pixledger('track', 'DemoAction', { value: 12 }) after the pixledger_ready document event (or when pixledger.ready is true), or add data-pixledger-event="DemoAction" to an element. Optional data-pixledger-data and data-pixledger-context attributes accept JSON. The pxl and data-pxl-event aliases remain supported. The browser API cannot emit reserved purchase, cart or account events. Custom events must not contain personal information. Payloads are bounded and sensitive field names are removed. Form field values, telephone numbers and email link destinations are never read. Explicit page/link URL properties omit query strings and fragments. Consent and privacy New installations enforce consent by default, with all categories denied. An existing explicit choice to disable Consent Mode is preserved. PixLedger is not a cookie banner: connect WP Consent API, Complianz or your own consent interface. Custom integrations can call pixledger('consent', { analytics_storage: true, ad_storage: false, ad_user_data: false, ad_personalization: false }) with the full current choice. GA4 requires analytics consent. Meta requires ad storage and ad user data consent. GTM requires both analytics and marketing consent because containers can contain arbitrary tags. Consent changes apply on the current page. PixLedger uses basic consent gating; it does not send denied-consent cookieless measurement pings. Disabling Consent Mode bypasses these gates and is a deliberate administrator choice. Before consent permits collection, PixLedger does not create a visitor ID, persist browsing events or load its provider libraries. Revocation clears PixLedger's browser buffer, identity/attribution cookies and pending queue. Previously stored event logs are managed by retention and privacy tools. Other plugins and tags have their own consent behaviour. Visitor IDs are pseudonymous, not anonymous. Cookies last up to 90 days (visitor), 30 days (attribution), or one day (transport and order delivery). First-touch campaign attribution uses paid-click overrides; click IDs require marketing consent. Attribution is attached to an order at checkout, including pending orders, and is not proof of a paid conversion. Event logs default to 168 hours; 0 disables event-log cleanup. Attribution defaults to 90 days and is removed from both the plugin table and related order metadata. Pending delivery expires after 30 minutes. Scheduled cleanup is bounded and runs with WP-Cron; actual deletion depends on cron execution. Configure reliable cron for predictable retention. WordPress Tools > Export Personal Data / Erase Personal Data supports order-linked PixLedger records and legacy email-linked logs. Browsing data with no email/order link cannot be identified from an email request. New event records do not store customer email hashes. A purchase replay marker can remain on an erased order to prevent resending its conversion. Delivery, caching and integrations Cacheable HTML contains configuration and page descriptors, not visitor-specific event queues. The browser obtains a fresh nonce/settings response and retrieves its server-owned pending events through same-origin AJAX. Allow PixLedger requests through your cache/security layer; do not cache admin-ajax.php POST responses. Network failures use bounded retries. Events saved during navigation may be delivered on the next consenting page within 30 minutes. The visitor must return to a page where PixLedger runs; Lite cannot guarantee last-page delivery or exact-once external delivery. Plugin detection warns of possible overlap. Runtime checks avoid loading the same library URL again; they cannot prevent another plugin or GTM container from firing its own events. Use one owner per destination/event. In particular, do not send direct GA4 events and equivalent GTM tags to the same property. GA4 automatic page views are disabled for PixLedger's own configuration. By default, purchase, cart and checkout values are the order total including tax and shipping (tax and shipping are also sent as separate fields). Under Tracking rules you can switch to items only, excluding tax and shipping, to match what you compare against in your ad accounts. Variation IDs identify variants. GTM receives GA4-style ecommerce objects. Configure your GTM tags to read them; pushing a dataLayer event does not itself send a conversion. Scope Server API delivery, platform reconciliation and advanced attribution reporting are outside Lite. Two paid upgrades, PixLedger Pro and PixLedger Insights, are under development; the free plugin does not depend on them and nothing in it is locked or limited to push you toward them. This version makes no platform delivery or legal-compliance guarantee. Network activation on WordPress multisite is not supported; activate and manage the plugin per site.

安装:

  1. Back up the database and current plugin first, and try the update on a staging site if you can.
  2. Install the packaged pixledger ZIP and activate it for the individual site.
  3. Enter your chosen provider IDs in PixLedger > Settings and enable only those providers.
  4. Connect your consent interface, choose events, and set retention periods.
  5. Test denied/granted/revoked consent, cart actions and a paid test order. Compare the local log with the provider's own testing tools.
  6. Remove duplicate tracking from other plugins and GTM tags before production use.

屏幕截图:

  • Event payload: open any row to see the exact data the plugin prepared.
  • Platforms: add your Meta Pixel, GA4 and Google Tag Manager IDs in one place.
  • Consent: set the default state for each consent category.
  • Events: switch each of the 30 events on or off.
  • Tracking rules: choose order total or items only, on-hold orders, and the rate limit.
  • Data & privacy: set how long event logs and campaign attribution are kept.
  • Setup: a built-in connection check and next steps.

升级注意事项:

1.8.4 Fixes delivery of product, cart and checkout events when consent changes while a request is running. No settings or data changes. 1.8.3 Consent and accuracy fixes: consent withdrawal is synced reliably, click IDs follow marketing consent, and amounts keep their full precision. No settings or data changes. 1.8.2 Adds CSV export and clearer status labels and colours to the Event Log. No settings or data changes. 1.8.1 Redesigned event transport and a schema upgrade. Back up first and check your consent and platform setup afterwards. Purchase values now default to the order total including tax and shipping (changeable under Tracking rules).

常见问题:

Does browser attempted mean a platform received the event?

No. It confirms the browser reported calling the configured tag. Browser blockers, network failures and provider processing can still prevent receipt. Check the platform's own tools.

Can Lite send conversions after the browser closes?

No. Server API delivery is outside Lite. A queued observation can be retried on the next consenting page within its expiry window.

Does it work without WooCommerce?

Yes. Page views, clicks, forms, search, account actions, comments and custom events work on any WordPress site. WooCommerce events are added automatically when WooCommerce is active.

Which consent tools does it work with?

The WP Consent API and Complianz are read directly. Any other banner can pass the visitor's choice with pixledger('consent', { analytics_storage: true, ad_storage: true, ad_user_data: true, ad_personalization: true }).

Is there a paid version?

Everything in this plugin is free and nothing is locked. Two paid upgrades, PixLedger Pro and PixLedger Insights, are under development; you do not need them to use this plugin.

What happens on upgrade?

Existing configuration and logs are preserved. Legacy unsigned pending/visitor/attribution cookies are not trusted and are replaced after consent. Legacy purchase markers prevent old conversions from replaying. Historical sent statuses remain labelled unverified. New tables/indexes are added automatically.

What happens on deletion?

Deactivation keeps data. Deleting the plugin removes its tables, options, scheduled jobs and PixLedger order metadata for the current site. Back up data before deletion.

更新日志:

1.8.4 1.8.3 1.8.2 1.8.1 1.8.0 Consent Tracking Caching Security Housekeeping 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.1.0 1.0.0