Skip to main content
@dataframer/signals is a small browser SDK that sends user/product events to DataFramer and generates the journey id that ties those events to your AI traces. It follows the same track/identify/group shape as Segment, so if your app already uses Segment, this will feel familiar.

Install

Get a write key

In your DataFramer dashboard: Profile → Signal Write Keys → create a key. This key is public-safe: it’s meant to sit in frontend code and can only send events in, not read data out.

Initialize once, at app start

Send events

Sending is best-effort: it will never throw an error into your app.

Journey ids

Every event you send carries a journey_id automatically:
  • Default: a journey id is created for you and stored in a cookie + localStorage. It resets after 30 minutes of inactivity.
  • Better, use your own id: if you already have a natural id (order id, conversation id, ticket id), pin it:

CORS: when you need it, and when you don’t

The SDK sends events with a normal browser fetch call to apiBase. Whether you need to touch CORS depends on where your backend lives:
If your frontend and your backend are on the same domain (or share a parent domain, like app.acme.com and api.acme.com with cookies set on .acme.com), the journey id rides along as a cookie automatically. You don’t need to configure anything.

Config reference

Next steps

Server Instrumentation

Stamp this same journey id onto your AI traces automatically.