Source code Package
DataLayer Source
Installation
npm install @walkeros/web-source-datalayer
Basic Setup
import { elb } from '@walkeros/collector';
import { sourceDataLayer } from '@walkeros/web-source-datalayer';
sourceDataLayer({ elb });
Configuration reference
Property | Type | Description | More |
---|---|---|---|
name | string | DataLayer variable name (default: "dataLayer") | |
prefix | string | Event prefix for filtering dataLayer events (default: "gtag") | |
filter | (event: unknown) => WalkerOS.PromiseOrValue<boolean> | Function to filter which dataLayer events to process |
💡 Need Professional Support?
Need professional support with your walkerOS implementation? Check out our services.