lwplugins/lw-pixel

Lightweight tracking pixel manager for WordPress (Meta, GA4, Google Ads, GTM, TikTok, Pinterest, Bing).

Maintainers

Package info

github.com/lwplugins/lw-pixel

Type:wordpress-plugin

pkg:composer/lwplugins/lw-pixel

Fund package maintenance!

sinann.io

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.0.5 2026-04-29 14:41 UTC

This package is auto-updated.

Last update: 2026-04-29 18:46:47 UTC


README

Lightweight tracking pixel manager for WordPress.

PHP Version WordPress Version License Packagist

LW Pixel Settings

What it does

Loads tracking pixels from the major ad networks and dispatches the standard ecommerce / conversion events for them. No upsell, no tracking, no bloat.

Supported pixels

  • Meta (Facebook) Pixelfbq browser pixel + Conversion API server-side (Advanced Matching, External ID, Order Enrich)
  • Google Analytics 4gtag.js + Measurement Protocol server-side
  • Google Ads — conversion tracking + remarketing
  • Google Tag Manager — container + dataLayer
  • TikTok Pixelttq
  • Pinterest Tagpintrk
  • Microsoft Bing UETuetq
  • Reddit Pixelrdt
  • Snapchat Pixelsnaptr
  • X (Twitter) Pixeltwq

Supported events

  • PageView (auto, every page)
  • ViewContent — single posts/pages and WooCommerce products
  • Search — search results pages
  • Lead / Contact — form submissions
  • AddToCart, InitiateCheckout, AddPaymentInfo, Purchase, ViewCart, ViewCategory — WooCommerce
  • Login, Signup (CompleteRegistration), Comment — server-side, replayed on the next page load
  • Scroll, TimeOnPage, Download — auto-tracked frontend events with configurable thresholds
  • Custom events — define your own with the editor (page_load / click / scroll / time triggers, URL patterns)

Integrations

Form plugins

Lead events fire automatically when any of these forms are submitted:

  • Contact Form 7
  • WPForms
  • Elementor Pro Forms
  • Gravity Forms
  • Forminator
  • Formidable Forms
  • Ninja Forms
  • Fluent Forms
  • WS Form

Other

  • WooCommerce — full ecommerce funnel (ViewProduct, ViewCategory, ViewCart, AddToCart, InitiateCheckout, AddPaymentInfo, Purchase) with idempotent thank-you-page Purchase
  • LW Cookie — granular consent-based pixel loading via lw_cookie_is_category_allowed
  • LW Site Manager — managed via the Abilities API (get-options, set-options, list-pixels)

Compliance

  • Medical traffic mode — strips PII from event payloads + CAPI user_data (HIPAA-friendly)
  • Limited Data Use (LDU) — adds Meta data_processing_options for California / CCPA (auto-resolve or force California)

Migration

Built-in PixelYourSite (Free / Pro) migrator under LW Plugins → Pixel → Tools — preview-diff UI, one-click import. Reads from both wp_options and the legacy pys_options table.

Installation

composer require lwplugins/lw-pixel

Or download a release ZIP from the GitHub releases page.

Configuration

After activation, go to LW Plugins → Pixel and add your pixel IDs. Each pixel has its own tab with provider-specific options.

License

GPL-2.0-or-later