npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@elbwalker/client-web

v0.0.1

Published

Lightweight & vendor-agnostic tracking implementation layer for data-collection by simply adding attributes to your markup.

Downloads

55

Readme

@elbwalker/client-web (formerly walker.js)

Why you need it: Unify your data collection efforts across different departments with the web client, formerly known as walkerOS. This package offers a vendor-agnostic approach to front-end user event tracking, enabling you to collect high-quality, consent-aware data for analytics, marketing, and more.

Usage

You can implement all sorts of front-end user events. From product and UX events like "promotion view", or filter usage, etc. to e-commerce actions like product add to carts or order complete events. The walkerOS handles all trigger initializations and race conditions, builds the events with context, and distributes them based on consent states and mapping definitions to any destinations.

To get started take a look at our detailed documentation.

  1. Installation
  2. Tagging
  3. Destinations
  4. Consent

Basic Example

Here's a simple HTML example to demonstrate how tagging works:

<body data-elbglobals="language:en">
  <div data-elbcontext="test:engagement">
    <div data-elb="promotion" data-elbaction="visible:view">
      <h1 data-elb-promotion="name:Setting up tracking easily">
        Setting up tracking easily
      </h1>
      <p data-elb-promotion="category:analytics">Analytics</p>
    </div>
  </div>
</body>

This generates an event like:

{
  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', 0] // Value and order
  },
  custom: {}, // Additional custom data for individual setups
  globals: {
    // General Properties defined with the data-elbglobals attribute
    language: 'en'
  },
  user: {
    // Stored user ids (manually added once)
    id: 'userid',
    device: 'cookieid',
    session: 'sessionid',
  },
  nested: [], // All nested entities within the promotion
  consent: { functional: true }, // Status of the consent state(s)
  id: '1647261462000-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: 1647261462000, // 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
    client: '1.0.0', // Semantic version of the used client
    tagging: 42, // A version number of the then used tagging status
  },
  source: {
    // Origins of the event
    type: 'web', // Source type of the event
    id: 'https://github.com/elbwalker/walkerOS', // Source id of the event's origin (url)
    previous_id: 'https://www.elbwalker.com/' // Previous source id (referrer)
  },
  walker: true, // Flag to filter events
}

Who This Package is For

This package is intended for companies, agencies, freelancers, and in-house teams who aim to work in a data-driven manner. It serves the needs of data engineers, product owners, analysts, marketers, and developers all at the same time.

Installation

TBD

Tagging

TBD

Destinations

TBD

Consent

TBD