Skip to main content
Source code Package

Browser source

Captures user interactions directly from the DOM using data attributes.

Features

  • Data attribute reading: Extracts tracking data from data-elb-* attributes
  • Session management: Automatic session detection and handling
  • Pageview tracking: Automatic or manual page view events
  • DOM commands: Enhanced elb function with walker init support
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

PropertyTypeDescriptionMore
prefix*stringPrefix for data attributes (default: data-elb)
scopestringDOM scope for event tracking (default: document)
pageview*booleanEnable automatic pageview tracking
session*boolean | anyEnable session tracking (boolean or SessionConfig object)
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

Enhanced elb function

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 Professional Support?
Need professional support with your walkerOS implementation? Check out our services.