Custom events
Track signups, purchases, and conversions with one line of code via rta.track().
Custom events turn any action into a tracked metric — a signup, a purchase, a plan upgrade. Once the tracker script has loaded, call rta.track() from anywhere in your app.
#Firing an event
// available on window once tracker.js has loaded
window.rta.track("signup_completed");
window.rta.track("checkout_started", { plan: "pro", value: 49 });The first argument is the event name. The optional second argument is a properties object of extra context — a plan tier, an order value, anything you want to keep with the event.
#Where it shows up
Every event appears under the Events tab in Analytics, with its fire count, distinct visitors, and conversion rate — the share of visitors in the period who fired it at least once.
#Revenue & goals
Pass a numeric value in the properties and Quantalog sums it into revenue — per event and across all events for the period. This turns any event into a goal with a dollar figure attached.
window.rta.track("purchase", { value: 49.0, plan: "pro" });