News for hackers. Stuff that matters.
Re:Show HN: Walker.js – open-source, vendor-agnostic autotra... by elbayla on Thursday June 30, 2022 @12:09PM (#31934579)
Hey, I’m Ayla, one of the creators of the walker.js. We’re excited to share what we’ve been working on to simplify analytics implementations, and are looking forward to your thoughts & feedback.

The walker.js is an open-source javascript library that makes every user interaction on a website trackable, directly through your markup instead of writing extra code. Think of alpine.js but for tracking. It’s a self-describing descriptive language for all kinds of web products.

We’re vendor-agnostic which means that walker.js works nicely with the Google Stack (GA4, GTM) but also with other destinations like Segment, Amplitude, etc. The walker runs across your site to build a complete event context on the fly. The general usage is fully based on HTML attributes that you can define yourself, based on your needs.

<div data-elb="ENTITY" data-elb-ENTITY="KEY:VALUE" data-elbaction="TRIGGER:ACTION" />

It takes care of the best initialization of the triggers and capturing of properties to build the events and handles some more helpful contextual information (timing, globals, user ID, etc.).

We plan to develop further destinations and a consent mode for GDPR-compliant setups. We’re always on the hunt for challenging use cases!

Find out more: Github: https://github.com/elbwalker/walker.js

Docs: https://docs.elbwalker.com/sources/web/implementation

Brief event concept: https://www.elbwalker.com/blog/elbwalker-event-concept

Our goal is to make front-ends trackable the minute they are built, so tracking doesn’t get pushed to the back anymore and won’t break as easily as today.

Re:Show HN: Walker.js – open-source, vendor-agnostic autotra... by egfx on Thursday June 30, 2022 @12:31PM (#31934947)
Is this purely for analytics and listening for events? I would like the opposite, walking through an event list to mechanize UI on the frontend without an extension or from node (just via a front-end script tag). I bookmarked something like this once.
Re:Show HN: Walker.js – open-source, vendor-agnostic autotra... by elb-alexander on Thursday June 30, 2022 @12:51PM (#31935246)
We focus on analytics, yes. But you can also achieve your goal with it as far as I understood. Once you've described a page you can work with selectors pretty well.

document.querySelector('[data-elb="product"][data-elbaction="click:add"]').click();

Also good to test correct implementations with Selenium e.g. It's way more robust than working with CSS classes. Just work with the attribute selectors.

Re:Show HN: Walker.js – open-source, vendor-agnostic autotra... by bredren on Thursday June 30, 2022 @04:36PM (#31938240)
Could you describe one or more Event sequences you would mechanize / script in this way and why?

Curious to understand more about the use case you’re describing.

Re:Show HN: Walker.js – open-source, vendor-agnostic autotra... by egfx on Thursday June 30, 2022 @05:42PM (#31939011)
it's complicated ;) Why do you think you can help?