Paste one script tag into your site. This one is a sample, so no page view will arrive here.
Site ID st_nw2Rb8Yc · reports in Europe/Stockholm · cookieless
Paste this before </head> on every page, or once in your app's root layout. Route changes in single-page apps are tracked automatically.
// After the signup request succeedswindow.track?.("signup_completed", { plan: "team" });// A payment: its amount as revenue, and its currency when it isn't the site'swindow.track?.("purchase", { plan: "team", revenue: 49.9, currency: "USD" });// Page views, including client-side route changes, are sent automatically.Add revenue to the event that stands for a payment, and currency when it isn't the site's (EUR). We add it up in the site's currency on Overview, on the event's page and in Attribution.
window.track?.("subscription_started", { plan: "team", revenue: 49, // a number, in the currency's units: 49 or 49.90 currency: "USD", // optional: a three-letter code; without it, the site's});Refunds
Send a negative amount on a refund event: revenue is the sum, so it comes off the total.
Other currencies
Converted to the site's at the European Central Bank's rate for the day before the payment. The amount as sent is kept too.
Only the amount
No order ids, names or emails: the amount as sent, its currency and the converted amount are all we keep.
No currency means the site's. An amount we can't read ("49,90", "€49"), or in a currency with no ECB rate, isn't counted; the event still is, and its page says how many amounts were left out.
new-site.example is a sample site with no visits. Add your own site to see its first page view come in.