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:
- Intercepts existing
dataLayer.push()calls - Filters events based on prefix or custom filter function
- Transforms dataLayer format to walkerOS event format
- Forwards to collector for processing
Loading...
Configuration
| Property | Type | Description | More |
|---|---|---|---|
name | string | DataLayer variable name (default: dataLayer) | |
prefix | string | Event prefix for filtering which events to process | |
filter | function | Custom 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
- Review event mapping for transforming dataLayer events
- Check GA4 destination for Google Analytics integration
💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.