
Recording a Goal
type is required because only your site knows whether a conversion is a sale or
a lead, and the goal-based segment conditions filter on it. trackGoal throws
without it. Use other when none of the rest fit.
The current page path and its position in the visit are attached for you, so a goal always knows where it happened.
Goals are sent immediately rather than waiting for the next heartbeat. A conversion on a page the visitor is about to leave still arrives.
What a Goal Produces
Clicking a goal opens its own dashboard — the conversions and value over time, annotated like the main chart, with the sources and campaigns that produced them.
Goal Names on the Contact Timeline
A goal that reaches a contact timeline is normalised first: lowercased, with anything outside ASCIIa–z, 0–9, . and / collapsed to a single _, leading and trailing _ trimmed, and the result cut at 100 characters. So Trial Started arrives as trial_started, and it is that name an automation or segment matches on.
Using Web Goals in Segments
A web goal is as expressive as a custom event created through the API, because it carries the same three things: a name, a value and a type.- The Custom Events Goal condition matches web goals, under a specific type or under All types, and counts, sums and averages their value.
- An automation can trigger on a custom event with the goal’s normalised name.
The type is asserted by your site, not verified by Notifuse — the same page also
chooses the goal’s name and value. Read revenue reporting with that in mind, as
you would for events sent through the API.
Limits
- Up to 100 goals of one session are bridged to the contact timeline per write batch. Goals beyond that within the same batch are dropped from the timeline permanently, and the counter restarts on each batch — so a long visit that keeps converting can end up with more than 100 timeline entries in total. Either way the visit itself keeps recording; the cap only affects the timeline copy.
- A goal older than 24 hours is not bridged to a timeline. A visitor whose browser was offline for a day comes back with their visit intact, without firing “you just did this” automations a day late.
- A goal value above 1e12, a name over 100 bytes, or properties over 8 KB are dropped — the goal alone, never the rest of the visit.
Notes
- Goals from anonymous visitors are recorded and reported normally. Only the timeline copy needs an identity.
- Bridged events carry the visit’s context as properties — session id, path, landing path, UTM source / medium / campaign, device and country — alongside your own. Those keys are set by Notifuse and overwrite properties of the same name.
- A currency, an order id, or anything else the conversion carries goes in
properties— those are sent and stored. There is no dedicatedcurrencyfield:goal_valueis a plain number, so if you record more than one currency, group your reports by the currency property rather than summing values across them. - API Reference
