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.
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
- Integrated
- Bundled
Install the packages:
Configure in your code:
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
| Property | Type | Description | More |
|---|---|---|---|
prefix | string | Prefix for data attributes (default: data-elb) | |
scope | string | DOM scope for event tracking (default: document) | |
pageview | boolean | Enable automatic pageview tracking | |
elb | string | Name for global elb function | |
name | string | Custom name for source instance | |
elbLayer | boolean | string | any | Enable elbLayer for async command queuing (boolean, string, or Elb.Layer) |
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
context and globals
data attribute types
impression event
nested entities
page view
submit event
Enhanced elb
The browser source returns an enhanced elb function with additional features:
Browser source elb adds:
- DOM commands:
walker initfor 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
- Session source - session and device tracking
- Tagging guide - learn about data attributes
- Commands reference - full API documentation
- Tagger tool - visual tagging tool