lwplugins/lw-pixel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lwplugins/lw-pixel

Composer 安装命令:

composer require lwplugins/lw-pixel

包简介

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

README 文档

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

统计信息

  • 总下载量: 217
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-04-26