Traffic and events
Page views, and events such as "signup" sent with track(), counted in the Traffic tab.
In stackly.json and the CLI it is traffic. It has no price of its own; see What features cost.
traffic · always included · Stackly analytics
Page views and visits are counted by themselves. Actions that matter (sign-up finished, order placed, form sent) are
counted with track() and shown in the project's Traffic tab.
Use it
Call it in the browser, after the action succeeded:
import { track } from "#/lib/track";
await createOrder(input);
track("order_placed");
- Names are short snake_case words: letters, numbers, dots, dashes, colons or underscores, 64 characters at most.
- To compare the two sides of a feature flag, put the side in the name:
track(on ? "checkout_done.new" : "checkout_done.old"). - List the events you added, and what triggers each, in the final message.
Don't
Never put personal data in a name. Do not track every click or page view.