@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.
Install
Get a write key
In your DataFramer dashboard, go to Profile → Keys and create a Signals SDK Write Key. On DataFramer hosted by us that’s app.dataframer.ai/profile?tab=keys; on a private deployment it’s the same Profile → Keys page on your own instance. This key is meant to only send events in, not read data out.Initialize once, at app start
Send events
Journey ids
Every event you send carries ajourney_id automatically:
- Default: a journey id is created for you. By default, it resets after 30 minutes of inactivity. It is configurable.
- Use your own id: if you already have a natural id (order id, conversation id, ticket id), you can use that:
CORS: getting the journey id to your own backend
This section is about attaching the journey id to the requests your frontend makes to your own backend, so your server can stamp that id onto your AI traces. How the journey id reaches your backend depends on where your frontend and your backend live.- Same site: nothing to do
- Different domains: two steps
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.

