Skip to main content

Collector

The collector is the central processing engine of walkerOS that receives events from sources, enriches them with additional data, applies consent rules, and routes them to destinations. It acts as the intelligent middleware between event capture and event delivery.

What it does

The Collector transforms raw events into enriched, compliant data streams by:

  • Event processing - Validates, normalizes, and enriches incoming events
  • Consent management - Applies privacy rules and user consent preferences
  • Data enrichment - Adds session data, user context, and custom properties
  • Destination routing - Sends processed events to configured analytics platforms

Key features

  • Compatibility - Works in both web browsers and server environments
  • Privacy-first - Built-in consent management and data protection
  • Event validation - Ensures data quality and consistency
  • Flexible routing - Send events to multiple destinations simultaneously

Role in architecture

In the walkerOS data flow, the collector sits between sources and destinations:

Source
Collector
Destination
123
1Receive: Incoming mapped events from sources2Process: State management, consent handling, enrichment3Route: Map events to destination-specific requirements

Sources capture events and send them to the collector, which processes and routes them to your chosen destinations like Google Analytics, custom APIs, or data warehouses.

Installation

Loading...

Basic setup

Loading...

Configuration reference

PropertyTypeDescriptionMore
runbooleanWhether to run collector automatically on initialization
taggingnumberTagging version number
globalsStaticRecord<string, any>Static global properties that persist across collector runs
sessionStaticRecord<string, any>Static session data that persists across collector runs
verbosebooleanEnable verbose logging for debugging
onErrorfunctionError handler function: (error, state?) => void
onLogfunctionLog handler function: (message, verbose?) => void
consentRecord<string, boolean>Initial consent state
useranyInitial user data
globalsRecord<string, any>Initial global properties
sourcesanySource configurations
destinationsanyDestination configurations
customRecord<string, any>Initial custom implementation-specific properties

Advanced setup

Loading...

Event transformation

The collector works with mapping to transform events as they flow through the system. Mapping is configured at the destination level and controls how walkerOS events are converted to vendor-specific formats.

For example, transforming a product add event into GA4's add_to_cart:

Loading...

Learn more about mapping →


See also

💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.