Skip to main content

One post tagged with "User Behavior Insights"

Capturing searches, clicks and conversions with the open UBI standard.

View All Tags

A browser tracker for Releval

· 12 min read
Russ Cam
Founder

When I wrote about Releval 1.0, I made the point that every query your users run is effectively another test case. You didn't choose it. It's running in production right now, and unless you're collecting what happened afterwards, you may never know how it went.

@releval/tracker 1.0 is out.

@releval/trackerCapture searches, impressions, clicks and conversions in the browser.1.0.0Apache-2.08.4 kB gzippednpm i @releval/tracker

It's a browser library for collecting that second half of the story: the results users actually saw, the ones they clicked, and the conversions that followed.

Every event is sent using the open User Behavior Insights event format and carries the id of the query that produced it. A purchase three pages later can still point back to the search that started it.

The package is Apache-2.0 licensed, around 8.4 kB gzipped, and has a single runtime dependency.

There are ESM, CommonJS and script-tag builds, full TypeScript definitions, and a React adapter under @releval/tracker/react.

The interesting bit isn't really collecting a click, though, plenty of libraries can do that. It's joining that click back to the search.