Skip to main content
Source code Package

Browser source

Captures user interactions directly from the DOM using data-elb-* attributes. Extracts tracking data from markup, tracks pageviews automatically or manually, exposes an enhanced elb function with walker init support, and provides a trigger system covering click, submit, load, hover, scroll, and visible.

Where this fits

The browser source is a source in the walkerOS flow:

It reads `data-elb-*` attributes from your HTML and generates events. The Collector routes these to your configured destinations.

Installation

Install the packages:

Loading...

Configure in your code:

Loading...

Configuration

This source uses the standard source config wrapper (consent, data, env, id, ...). For the shared fields see source configuration. Package-specific fields live under config.settings and are listed below.

Settings

PropertyTypeDescriptionMore
prefix*stringPrefix for data attributes (default: data-elb)
scopestringDOM scope for event tracking (default: document)
pageview*booleanEnable automatic pageview tracking
elb*stringName for global elb function
namestringCustom name for source instance
elbLayer*boolean | string | anyEnable elbLayer for async command queuing (boolean, string, or Elb.Layer)
* Required fields

Mapping

This package does not define custom rule-level settings. For the standard rule fields (consent, condition, data, batch, name, policy) see mapping.

Examples

click event

Event
Out

context and globals

Event
Out

data attribute types

Event
Out

impression event

Event
Out

nested entities

Event
Out

page view

Event
Out

submit event

Event
Out

Enhanced elb

The browser source returns an enhanced elb function with additional features:

Loading...

Browser source elb adds:

  • DOM commands: walker init for asynchronous DOM element loading
  • Flexible arguments: support for multiple argument patterns
  • elbLayer integration: automatic processing of queued commands
  • Element parameters: support for element parameters in commands

See Commands for complete API documentation.

Next steps

💡 Need implementation support?
elbwalker offers hands-on support: setup review, measurement planning, destination mapping, and live troubleshooting. Book a 2-hour session (€399)