Skip to main content

Amplitude

Web Source code Package

Amplitude is a product analytics platform with built-in identity, revenue, groups, and optional session replay, feature experiments, and guides & surveys. This destination forwards walkerOS events to Amplitude via the official @amplitude/unified SDK, translating events into amplitude.track(...), identify(...), revenue(...), setGroup(...), and setOptOut(...) calls. Loads the Amplitude Analytics SDK, forwards every walkerOS event, and lets you layer on identity, revenue, groups, consent toggling, and optional plugins.

Where this fits

Amplitude is a web destination in the walkerOS flow:

Installation

Loading...
Loading...

Configuration

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

Settings

PropertyTypeDescriptionMore
apiKey*stringYour Amplitude project API key. Find it in your Amplitude project settings under "General" → "API Keys" (like a1b2c3d4e5f6789012345678abcdef12).
serverZone'US' | 'EU'Amplitude server zone. Default: US.
flushIntervalMillisintegerHow often (in ms) to flush the event queue. Default: 1000.
flushQueueSizeintegerMax queued events before a flush. Default: 30.
flushMaxRetriesintegerMax retries on failed flush. Default: 5.
transport'fetch' | 'xhr' | 'beacon'HTTP transport. Default: fetch.
useBatchbooleanUse the Amplitude batch endpoint instead of the standard endpoint. Default: false.
appVersionstringApplication version; tagged onto every event.
identifyanywalkerOS mapping value resolving to an identity object. Keys: user, device, session, set, setOnce, add, append, prepend, preInsert, postInsert, remove, unset, clearAll.
sessionReplayanySession Replay options. When present, session replay is enabled via @amplitude/unified with the provided options.
experimentanyFeature Experiment config. Must include `deploymentKey`. When present, the experiment plugin from @amplitude/unified is configured with the provided options.
engagementanyGuides & Surveys config. Pass `true` for defaults, or an options object for custom configuration. Enabled via @amplitude/unified.
* Required fields

Mapping

Per-event rules under config.mapping. For the standard rule fields (consent, condition, data, batch, name, policy) see mapping.

PropertyTypeDescriptionMore
identifyanyPer-event identity mapping. Resolves to an object with any of: user, device, session, set, setOnce, add, append, prepend, preInsert, postInsert, remove, unset, clearAll.
revenueanyRevenue mapping. Resolves to a single object or (via loop) an array of objects, each with: productId, price, quantity, revenueType, currency, revenue, receipt, receiptSig, eventProperties. One amplitude.revenue() call fires per item.
groupanyGroup assignment. Resolves to { type, name } → amplitude.setGroup(type, name).
groupIdentifyanyGroup properties. Resolves to { type, name, set?, setOnce?, ... } → amplitude.groupIdentify(type, name, identify).
resetanyLogout trigger. Resolves to a truthy value → amplitude.reset() (clears userId, regenerates deviceId). Typically used with skip: true on a user logout rule.

Examples

Consent granted

A walker consent command with analytics granted opts back into Amplitude tracking via setOptOut(false).

Event
Out

Consent revoked

A walker consent command with analytics denied opts out of Amplitude tracking via setOptOut(true).

Event
Out

Default track

A walker event is forwarded to Amplitude as an amplitude.track call with the event name and empty properties.

Event
Out

Destination identify

Destination-level identify sets userId, deviceId, and sessionId on the Amplitude client before sending events; setters only re-fire when the resolved values change (cached values are not re-applied on subsequent pushes).

Event
Out

Include data

Destination-level include flattens the event data section into prefixed event_properties on every track call.

Event
Out

Group assignment

A company update assigns the user to a group and sets group properties via setGroup and groupIdentify.

Event
Mapping
Out

Multi-product order

An order fires one amplitude.revenue call per nested product plus a single track for the order totals.

Event
Mapping
Out

Rule include overrides

A per-rule include replaces the destination-level include for the matched event, here using only globals.

Event
Mapping
Out

Subscription revenue

A subscription renewal fires a single amplitude.revenue call with productId, price, and currency fallback.

Event
Mapping
Out

User login identify

A user login sets the Amplitude userId and runs identify with set, setOnce, and add operations.

Event
Mapping
Out

User logout reset

A user logout calls amplitude.reset to clear the userId and regenerate the deviceId.

Event
Mapping
Out

Plugins

All three plugin packages are npm-bundled with the destination (~135 KB for Session Replay plus Experiment and Engagement payloads). Enable them via destination settings:

settings: {
apiKey: 'YOUR_KEY',
sessionReplay: { sampleRate: 1 },
experiment: { deploymentKey: 'DEPLOYMENT_KEY' },
engagement: true,
}
💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)