Skip to main content

Mixpanel

Server Source code Package

Server-side event delivery to Mixpanel for product analytics, people profiles, and group analytics via the official mixpanel Node.js SDK.

Where This Fits

Mixpanel is a server destination in the walkerOS flow:

Sends events server-side to Mixpanel via /track (real-time, up to 5 days old) or /import (historical, any age). Supports people profile operations, group analytics, and identity resolution.

Installation

Loading...

Setup

Loading...

Configuration reference

PropertyTypeDescriptionMore
apiKey*stringYour Mixpanel project token. Find it in Project Settings > Access Keys. Passed as the first argument to Mixpanel.init().
secretstringAPI secret for the /import endpoint (historical data). Required when useImport is true.
hoststringMixpanel API host. Default: 'api.mixpanel.com' (US). Use 'api-eu.mixpanel.com' (EU) or 'api-in.mixpanel.com' (India).
protocolstringProtocol for API requests. Default: 'https'.
keepAlivebooleanReuse HTTP connections. Default: true.
geolocatebooleanParse IP for geolocation. Default: false. Server IP caveat: all users map to server location unless $ip is overridden.
debugbooleanEnable SDK debug logging. Default: false.
verbosebooleanEnable verbose request logging. Default: false.
testbooleanEnable dry-run mode. Default: false.
useImportbooleanUse /import endpoint instead of /track. Accepts events of any age (no 5-day limit). Requires secret for authentication.
identifyanywalkerOS mapping value resolving to { distinctId, alias? }. distinctId is passed as distinct_id on every SDK call.
includeanyEvent data sections to flatten into track() properties. Example: ['data', 'globals']. Sections are prefixed (data_, globals_, etc.).
* Required fields

Docker Deployment

Step 1: Create Flow Configuration

Use the $env.NAME syntax in your flow configuration to reference environment variables at runtime:

Loading...

Step 2: Bundle the Flow

Bundle your flow configuration before running in Docker:

Loading...

Step 3: Run with Docker

Loading...

Docker Compose Example

Loading...
Security Best Practice

Never commit project tokens or API secrets to version control. Use environment variables or a secrets manager to inject credentials at runtime.

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