Capture first-party data directly through your markup

Walker.js is a lightweight, open-source library to capture analytics events in the browser and send them to any destination.

 Creates the full event context Handles the triggers Orders the race conditions
// Walker.js creates a full event for you
{
  "event": "promotion view", // combination of entity and action
  "data": {
    // arbitrary set properties with the data-elb-promotion attribute
    name: "Setting up tracking easily",
    category: "analytics",
  },
  "context": {
    // Related properties defined with the data-elbcontext attribute
    test: "engagement"
  },
  "globals": {
    // General Properties defined with the data-elbglobals attribute
    language: "en"
  },
  "user": {
    // stored user ids (manually added once)
    id: "userid",
    device: "cookieid",
    hash: "sessionid",
  },
  "nested": [], // all nested entities within the promotion
  "id": "1647968113641-01b5e2-5", // timestamp, group & count of the event
  "trigger": "visible", // name of the trigger that fired
  "entity": "promotion", // entity name
  "action": "view", // entity action
  "timestamp": 1647968113641, // time when the event fired
  "timing": 3.14, // how long it took from the page load to trigger the event
  "group": "01b5e2", // random group id for all events on a page
  "count": 2, // incremental counter of the events on a page
  "version": {
    // Helpful when working with raw data
    walker: 1.5, // used walker.js version
    config: 42, // a custom configuration version number
  },
  "walker": true, // flag to filter events
}
Workcation

”I used walker.js in multiple projects to create a first-party data foundation for marketing analytics. I like the overall simplicity and flexibility of the library.”

Timo Dechau
Founder & Data Engineer, Deepskydata

Features of the walker.js

Walker.js is a descriptive approach to creating a vendor-agnostic data collection layer.

Coupled with markup (like CSS)

Walker.js is building upon data-attributes instead of traditional code.

Pre-built triggers

The walker comes with a bunch of integrated triggers that will fire your events at the right moment.

Entity action model

Events consist of entities & actions. The concept forces you to capture events clean and consistent across tools.

Global context of an event

Easily add global properties like logged-in status or language settings to give events the important context.

Destinations

Walker.js is extendable with destinations to speed up the implementation of analytics tools and minimize code maintenance.

  • Google Tag Manager

    Tag Management
  • Plausible Analytics

    Analytics
  • Google Analytics 4

    Analytics
  • Google BigQuery

    Data Warehouse
  • Custom

    Your own endpoint

How to get started

Start with setting up a new analytics tool, or extending an existing one.

1.

Install the walker.js

Install the walker.js library either via npm or as a script.

2.

Define entity scope and actions

You define the entity scope by setting the data-elb attribute with the name of an entity to an element. Then set a data-elbaction attribute on the same level or all child elements in combination with a matching trigger.

3.

Add properties and global attributes

Optionally set composited attributes to define the entities' properties. Properties that are related to all entities can be collected once using our global attributes.

<body data-elbglobals="language:en;test:darkmode;pagetype:home">
  <div data-elb="hero">
    <h1 data-elb-hero="title:analytics_hacks">
      Awesome Analytics Hacks
    </h1>
      <button data-elbaction="click:github">Check it out on GitHub</button>
  </div>
  <div data-elb="newsletter" data-elb-newsletter="position:overlay">
    <h1 data-elb-newsletter="list:analytics_hacks">
      Awesome Analytics Hacks Newsletter
    </h1>
    <button data-elbaction="click:signup">Signup</button>
  </div>
</body>
elbwalker team

Our services

Support & consulting by elbwalker

Do you need short- or long-term support for your next data project? We're experts at building custom data pipelines and durable first-party data foundations for digital product and marketing teams. Exemplary services:

  • - Tracking strategy and concept creation
  • - Tech Sparring for developers
  • - Freelance project-based work

To talk about your project please set up a quick call or use our contact form and we will come back to you within two business days.

More about our services

Supported by

Ready to dive in?Scale your tracking implementation with walker.js.

Company name

Simplifying Data Collection.

© 2022 elbwalker GmbH | crafted in Hamburg, Germany