Some analytics integrations can load a vendor browser SDK for session identity, automatic page tracking, and direct browser delivery. That path is separate from sending a signal through WordPress.
Use SignalPress.capture() / sp_capture() when JavaScript should route through WordPress and send a signal to any configured service (Slack, webhooks, PostHog server-side, and so on). See JavaScript capture.
Use SignalPress.analytics() when you intentionally want the vendor's browser SDK — not a WordPress-routed signal.
Client API
When a service has loaded its browser SDK, call:
JavaScript
SignalPress.analytics(
'cta_clicked',
{
location: 'homepage',
buttonText: 'Get Started',
},
{
source: 'marketing-site',
}
);
signalpressAnalytics() is a shorthand alias.
Behavior
The analytics API:
- Normalizes event names and validates JSON payloads (1 MB limit)
- Sends through every loaded analytics adapter for services with browser credentials configured
- Goes directly to the vendor browser SDK — not through WordPress
- Does not create delivery-ledger rows or honor PHP routing/request rules
- Does not reach server-only services such as Slack, Email, or Webhooks
Optional Web analytics (per service) adds automatic pageviews, interaction capture, or vendor-specific browser monitoring without manual calls.
Supported integrations
| Service | Browser credentials | Web analytics adds |
|---|---|---|
| PostHog | Project Token + Host | Pageviews, page leave, autocapture |
| Mixpanel | Project Token (public) | Automatic pageviews |
| GA4 | Measurement ID | gtag pageviews |
| Sentry | DSN | Automatic browser error capture |
| Datadog | RUM Application ID + RUM Client Token | RUM session/interaction/resource tracking |
Enable browser analytics
- Activate the integration on Integrations Overview
- Open the service Settings tab and save the required credentials
- Optionally enable Web analytics for automatic page or interaction tracking
- Confirm the vendor SDK loads on the frontend when credentials are complete
Each integration's Help tab includes copyable SignalPress.analytics() examples.
Web analytics controls automatic vendor tracking only. It is not required for manual SignalPress.analytics() calls when browser credentials are configured.
Server vs analytics
| Channel | API | Routing | Delivery log | Destinations |
|---|---|---|---|---|
| PHP | sp_capture() | Yes | Yes | All configured services |
| JavaScript → server | SignalPress.capture() | Yes | Yes | All configured services |
| Browser analytics SDK | SignalPress.analytics() | No | No | Analytics adapters only |
What to read next
- JavaScript capture —
SignalPress.capture()through WordPress - Capturing Events with sp_capture() — PHP API
- Advanced Event Routing — server-side filters only
- Integrations Overview — activate services
- Service Help tabs — PostHog, Mixpanel, GA4, Sentry, Datadog setup and examples