Skip to main content
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

PropertyTypeDescriptionMore
namestringDataLayer variable name (default: "dataLayer")
prefixstringEvent 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.