跳到内容

Pixelonce

v1.1.0

rapidooze09 · 2026年11月18日 上架

Pixelonce – fire-once funnel events for Meta Pixel, with a Conversions API copy and consent built in.

正在使用
10 以下
评分
暂无
累计下载
165
最近更新
2026年11月22日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

Pages and events: one rule per funnel step.
Pages and events: one rule per funnel step.
An event with parameters: value, currency, content ids and your own.
An event with parameters: value, currency, content ids and your own.
The debug overlay: every event, and why it fired or not.
The debug overlay: every event, and why it fired or not.
Trigger health: triggers that stopped matching.
Trigger health: triggers that stopped matching.
The server-side event log.
The server-side event log.
The setup wizard.
The setup wizard.
Consent settings.
Consent settings.

Pixelonce – fire-once funnel events for Meta Pixel and Meta’s Conversions API. Not affiliated with or endorsed by Meta.

Multi-step forms often live on one URL: a quote, a finance or insurance application, an enrolment. To most pixel setups, a reload, the back button or a second tab all look like another conversion. One applicant becomes four leads, and your ads optimise toward the wrong people.

Pixelonce lets every event declare how often it may fire — every time, once per page view, once per visit, once per session, once per visitor, or once per thing (a product, plan or vehicle id) — and shows you why an event did not fire.

  • Standard and custom events. Lead, Purchase, InitiateCheckout, ViewContent and the rest of Meta’s 18 standard events, each usable as a campaign objective — plus your own custom events (QuoteRequested, DocumentsUploaded…), as many as you need.
  • Fire once, on purpose. Per-event “how often” rules, and one rule per step even when every step shares a URL.
  • See why. A debug overlay (?stepcount_debug=1) lists every event and the reason it fired or not.
  • Server-side copy. Sends each event to Meta’s Conversions API as well, under the same event id, so Meta keeps one copy and still counts events an ad blocker stopped.
  • Consent first. Nothing loads before marketing consent. Works with the WP Consent API, IAB TCF v2, Cookiebot, Complianz, CookieYes and Borlabs Cookie, can send Google Consent Mode v2 signals, and honours Global Privacy Control (the browser “do not sell or share” signal several US states require).
  • Event parameters. Value, currency, content ids, content type and your own parameters — fixed, or read from the page.
  • Background submits. Fire an event only when an AJAX or fetch form submit succeeds, without editing the theme.
  • Trigger health. Flags buttons and forms that stopped matching after a theme or form change.
  • Setup wizard, starter templates, import and export, and an event log.

Everything above is included, with no limits on events, custom events, pages or pixels.

For developers

  • ?stepcount_debug=1 opens the debug overlay (administrators on a live site; anyone on a dry-run staging copy).
  • StepCount.emit('EventName') fires an event set to “When the site signals it”.
  • StepCount.consent({marketing: true}) tells the plugin about consent from a tool it does not read itself.
  • Filters: stepcount_request, stepcount_config, stepcount_enabled, stepcount_debug_allowed, stepcount_purge_page_caches.
  • Hooks for add-ons: stepcount_runtime_payload, stepcount_runtime_dependencies, stepcount_no_optimize_handles, and the stepcount:fired / stepcount:consent browser events (see Hooks for add-ons below).

External services

Pixelonce sends data only to the services you configure, and only after the visitor has given consent when a consent tool is active.

Meta Pixel (when you enter a pixel id). The visitor’s browser loads https://connect.facebook.net/en_US/fbevents.js and sends the events you declare to Meta, with the parameters you set and the data Meta’s pixel collects (page URL, browser details, Meta cookies). Meta Terms · Meta Privacy Policy · Meta Business Tools Terms

Meta Conversions API (only when you add a Conversions API access token). Your server sends a copy of each event to https://graph.facebook.com/ with the event name, event id, page URL, the parameters you set, the visitor’s IP address and user agent, and Meta’s _fbp / _fbc cookie values when present. Same terms and policy as above.

Pixelonce support (the plugin’s website, https://step-count-main-website.vercel.app) — only when you fill in the form under Pixelonce Support and click Send. Your server sends a request to https://step-count-main-website.vercel.app/api/v1/support with the name, email address, topic and message you typed, your site address, and the Pixelonce and WordPress versions. The diagnostic file is added only if you tick “Attach the diagnostic file” (unticked by default); it holds your Pixelonce settings, versions of WordPress, PHP, your theme and active plugins, consent status, trigger health and recent server-side sends — never your Conversions API token or anything about your visitors. Nothing is sent automatically, on a schedule or in the background. Terms · Privacy Policy

Apart from that form, the plugin does not send anything to its authors: no tracking and no remote updates.

Hooks for add-ons

Pixelonce has a small set of documented hooks so other plugins can build on the events it sends. They add nothing to the page unless a plugin uses them.

PHP filters

  • stepcount_runtime_payload — ( array $payload ). The settings printed into the page as window.StepCountConfig. Put your own data under $payload['addons']['your-plugin-slug']; do not change the other keys.
  • stepcount_runtime_dependencies — ( string[] $handles ), default []. Script handles the Pixelonce runtime (handle stepcount) depends on. A handle you add here prints before the runtime, so its listeners are in place for events that fire as the page loads. Enqueue that script in the head.
  • stepcount_no_optimize_handles — ( string[] $handles ), default [ 'stepcount', 'stepcount-debug' ]. Scripts that get the attributes asking JS optimisers (LiteSpeed, Autoptimize, WP Rocket, Cloudflare Rocket Loader) not to combine, defer or delay them.

JavaScript

Every event Pixelonce sends (after its consent and fire-once checks, dry run included) is announced. Events that were skipped, blocked or are waiting for consent are not.

  • document.addEventListener('stepcount:fired', function (e) { e.detail; })
  • window.StepCountListeners = [ function (detail) {} ] — set before the runtime loads to hear events that fire at once.
  • StepCount.onFired(function (detail) {})

    detail is { name, standard, params, eventId, pixels, scope, rule, dryRun, consent: { marketing, analytics } }. Each listener gets its own copy, and an error in one listener never affects tracking or other listeners.

Consent changes: document.addEventListener('stepcount:consent', fn) or StepCount.onConsent(fn), with { marketing, analytics, source }. StepCount.consentState() returns { marketing, analytics, decided, source }. A browser that sends Global Privacy Control reports marketing: false.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums