Skip to main content

Installation

There are multiple ways to install and use the web client walker.js:

  • Google Tag Manager: Use the GTM to load walker.js.
  • NPM: Install walker.js as an NPM package.
  • Code: Directly include walker.js in the browser.

Configuration

There a few configuration options that you can set when creating a walker.js instance:

OptionTypeDescription
consentobjectInitial consent states, learn more under consent.
defaultbooleanAdd a dataLayer destination and run automatically.
elbstringName of assign the elb function to the window
elbLayerobjectPublic elbwalker API for async communication.
globalsobjectStatic attributes added to each event.
instancestringName of the walkerjs instance to assign to the window
pageviewbooleanTrigger a page view event by default.
prefixstringAttributes prefix used by the walker.
userobjectSetting the user ids including id, device, and session.
taggingnumberCurrent version of the tracking setup.
const walkerjs = Walkerjs(config);

During a run you can still use globals and tagging to update the configuration.