A library that processes messages from a dataLayer queue (commonly used with Google Tag Manager) and maintains an abstract data model. It listens for messages, deep-merges incoming objects, and provides dot-notation retrieval. v0.1.0 is the initial stable release. Unlike manual dataLayer parsing, it handles nested keys, overwrites, recursive merging, and meta commands. Suitable for client-side analytics and tag management integrations.
npm install data-layer-helperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows creating a DataLayerHelper, pushing messages, and retrieving nested values via dot notation.
Pin exact version in package.json and test thoroughly before upgrading minor versions.
Check for undefined explicitly when expecting a value.
Create helper as early as possible, ideally before any dataLayer pushes.
Check changelog for when meta commands are implemented.
Use: const DataLayerHelper = require('data-layer-helper').default;Run: npm install data-layer-helper
Ensure: const helper = new DataLayerHelper(dataLayer);
No dependency data recorded yet.