Skip to main content
Source code Package

DataLayer Source

Integrates with existing Google Analytics 4 and GTM dataLayer implementations by intercepting dataLayer.push() calls.

Installation

Loading...

Basic Setup

Loading...

How It Works

The dataLayer source intercepts dataLayer.push() calls and transforms them into walkerOS events:

  1. Intercepts existing dataLayer.push() calls
  2. Filters events based on prefix or custom filter function
  3. Transforms dataLayer format to walkerOS event format
  4. Forwards to collector for processing
Loading...

Configuration

PropertyTypeDescriptionMore
namestringDataLayer variable name (default: dataLayer)
prefixstringEvent prefix for filtering which events to process
filterfunctionCustom filter function: (event: unknown) => boolean | Promise<boolean>

Custom Filtering

Filter which dataLayer events get processed:

Loading...

Migration Strategy

Use the dataLayer source for gradual migration from GA4/GTM:

Phase 1: Add walkerOS alongside existing dataLayer

Loading...

Phase 2: Map dataLayer events to walkerOS destinations

Loading...

Phase 3: Gradually replace dataLayer.push with elb()

Loading...

Next Steps

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