Main Header

sp_capture Builder

Updated on July 30, 2026

Use SignalPress → sp_capture Builder to compose sample sp_capture() calls without writing syntax by hand. The builder updates a live code preview as you edit fields and includes a Copy code button for pasting into your theme or plugin.

Open it from the left admin menu after System Logs and before Integrations. Any user with SignalPress access can open the page — see Permissions and Access.

For the underlying API, see Capturing Events with sp_capture() and JavaScript capture.

Signal fields

FieldPurpose
Event nameFirst argument — normalized snake_case identifier
SourceOptional source in the options array
ServicesOptional service targeting — see below
EnvironmentSite default or production / staging / development / local
ProjectDefault project label from Settings
Distinct ID, User ID, Client ID, Session ID, Correlation ID, Event IDIdentity and tracing fields — Event Context and Options
WordPress user IDAttach or suppress the logged-in user (0 suppresses)

Blank optional fields are omitted from the generated call.

Services picker

The Services control is a multi-select field styled like Select2:

  • Click the field and choose one or more enabled integrations from the dropdown
  • Selected integrations appear as removable tags inside the field
  • Type to filter the list; use arrow keys and Enter to pick
  • Leave the field empty to broadcast to every eligible integration — the generated code omits servicesService Targeting

Only integrations that are active, licensed, and enabled appear in the list.

The generated code uses a fixed example payload (one, two, three) for the second argument. Replace those properties with your real event data when you paste the call into your project.

PHP and JavaScript preview

Use the PHP / JavaScript toggle in the preview panel to switch output format:

  • PHPsp_capture( 'event', array( ... ), array( ... ) );
  • JavaScriptsp_capture( 'event', { ... }, { ... } ); (same server-side API via JavaScript capture)

The preview wraps long lines inside the panel. Copy the result with Copy code.

Example workflow

  1. Open sp_capture Builder
  2. Set Event name to checkout_completed
  3. Add Source my-plugin
  4. Select Local and PostHog under Services
  5. Switch to JavaScript if the call belongs in theme or block editor code
  6. Click Copy code and paste into your project
  7. Replace the sample payload with real order data
  8. Confirm delivery on Recent Activity or the service Logs tab — Connection Tests and Delivery Log