Skip to main content
Server Source code Package

Express

Turn-key HTTP event collection server with Express.js. Runs standalone or embeds inside an existing Express app, handles JSON POST events, pixel tracking via GET with a 1x1 transparent GIF, and configurable CORS.

Where this fits

The Express source is a server source in the walkerOS flow:

It receives events via HTTP (POST/GET) and forwards them to configured destinations.

Installation

Loading...
path setting renamed to paths

The path setting has been renamed to paths (array). The old path still works but is deprecated and will be removed in the next major version.

// Before (deprecated)
settings: { path: '/events' }

// After
settings: { paths: ['/events'] }

Standalone server

Loading...

App-only mode

Loading...

Configuration

This source uses the standard source config wrapper (consent, data, env, id, ...). For the shared fields see source configuration. Package-specific fields live under config.settings and are listed below.

Settings

PropertyTypeDescriptionMore
portintegerHTTP server port to listen on. Use 0 for random available port. If not provided, server will not start (app only mode)
pathstringDeprecated: use paths instead
pathsArray<any>Route paths to register. String shorthand registers GET+POST. RouteConfig allows per-route method control.
cors*boolean | objectCORS configuration: false = disabled, true = allow all origins (default), object = custom configuration
* Required fields

Mapping

This package does not define custom rule-level settings. For the standard rule fields (consent, condition, data, batch, name, policy) see mapping.

Examples

pixel get

Event
Out

post event

Event
Out

HTTP methods

MethodEndpointDescription
POST/collectJSON event ingestion
GET/collectPixel tracking (returns 1x1 GIF)
OPTIONS/collectCORS preflight
Health checks

Health check endpoints (/health and /ready) are provided by the runner, not by individual sources. This means health checks work regardless of which source type you use.

Ingest metadata

Extract request metadata (IP, user agent, headers) and forward it through the pipeline to transformers and destinations.

Loading...

Available ingest paths

PathDescription
ipClient IP address
headers.*HTTP headers (user-agent, origin, referer, etc.)
protocolRequest protocol (http/https)
methodHTTP method (GET, POST, etc.)
hostnameRequest hostname
urlFull request URL

Advanced mapping

Use walkerOS mapping features for complex extraction:

Loading...

Example request

Loading...
💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)