FlowPrime guides

Analytics: measure what people do in your product and on your sites

Analytics stores product events (signed up, invited a teammate, paid), web traffic from your sites (page views, referrers, devices) and UTM campaigns, and answers questions over them: top events, series, funnels, retention and one user's journey. Every workspace has it from the start. Use it to learn whether the product works for its users. Errors, logs and performance belong in observability: see platform_guide topic=observability.

It is light by design: each workspace keeps up to 100 MB of events for up to 90 days, oldest days deleted first.

What you can do

Capability How Status
Register a website and get its site token analytics_web_create_site live
Get the tracking snippet for a site analytics_web_get_snippet live
Change or delete a site analytics_web_update_site, analytics_web_delete_site live
Page views, visitors, top pages, referrers, devices analytics_web_summary, analytics_web_pages, analytics_web_referrers, analytics_web_devices live
Custom events from a page (ff.track, data-ff-event) the snippet, or REST POST /e with the site token live
Record one event by hand (to test an integration) analytics_ingest_event live
Send events from your own backend with a secret key REST POST /api/events with a workspace analytics key planned (no self-service key yet)
Totals, top events, series, property values, active users analytics_query_summary, analytics_query_top_events, analytics_query_timeseries, analytics_query_properties, analytics_query_active_users live
Raw events, a page at a time analytics_query_events_list live
Bulk export (gzip NDJSON link) analytics_export_events live
One user's sessions in order analytics_query_user_journey live
Funnels analytics_funnel_create, analytics_funnel_get, analytics_funnel_list, analytics_funnel_delete live
Cohort retention analytics_query_retention live
UTM campaigns and their traffic analytics_campaign_create, analytics_campaign_get, analytics_campaign_list, analytics_campaign_delete live
Web traffic per day, UTM breakdown dashboard (Analytics > Web) dashboard
Where the workspace stands against its limits analytics_usage live

Before you start

Step by step

Put web analytics on a site

  1. analytics_web_create_site with domain=example.com and, when pages also run elsewhere, allowedOrigins="app.example.org,preview.example.net". Subdomains of domain are already accepted.
  2. analytics_web_get_snippet siteToken=ffweb_... and paste the answer into the <head> of every page:
    <script defer src="https://analytics.fastflow.tech/js/init.js" data-site-id="ffweb_..."></script>
    
    Always use the snippet the tool returns: it carries the right host for the environment.
  3. Page views are recorded on their own. Add custom events where they matter:
    <button data-ff-event="pricing_cta_clicked" data-ff-plan="pro">Start</button>
    <script>window.ff.track("signup_completed", { plan: "pro" });</script>
    
    Every other data-ff-* attribute on the element becomes a property.
  4. Open the site, click around, then analytics_web_summary (default range: the last 30 UTC days) and analytics_query_top_events for today.
  5. Every browser event carries the property ff_site with the site's domain, so filters=[{"property":"ff_site","operator":"eq","value":"example.com"}] reads one site.
  6. If the workspace sells more than one product, send product_slug (the product's slug, as reseller_operator_products_list shows it) on each event. Purchases and trials FlowPrime records already carry it, and the dashboard's Product picker reads only events that do, so filters=[{"property":"product_slug","operator":"eq","value":"agenda-pro"}] reads one product.

Send events without the snippet (games, single-page apps, a backend relay)

  1. Register the site as above.
  2. POST https://analytics.fastflow.tech/e with {"siteId":"ffweb_...","eventName":"level_completed","properties":{"level":3},"userId":"u_42","sessionId":"s_1"}, or a batch {"siteId":"ffweb_...","userId":"u_42","events":[...]}. text/plain bodies work for sendBeacon. Answers 204.
  3. The request must come from a registered origin (the Origin or Referer header). Anything else answers 403 Origin not allowed.
  4. A userId sent here is stored as anon_{userId}: ask analytics_query_user_journey userId=anon_u_42.

Build a funnel

  1. analytics_query_top_events over the last 30 days to see the real event names.
  2. analytics_funnel_create name="Signup to paid" steps='["signup_completed","project_created","invoice_paid"]' windowHours=168.
  3. analytics_funnel_get id=<id> from=2026-10-01 to=2026-10-31 answers users per step, conversion and drop-off.

Track a campaign

  1. analytics_campaign_create name="Black Friday" source=newsletter medium=email campaignTag=bf2026 targetUrl=https://example.com/pricing.
  2. Share the tagged URL from the answer. It only counts visits to a page that carries the web snippet.
  3. analytics_campaign_get id=<id> from=... to=... for visitors, views and the daily breakdown.

Measure retention

analytics_query_retention from=... to=... cohortEvent=signup_completed interval=week. The default cohortEvent is user_register, which your product may never send: always pick one from analytics_query_top_events.

Copy events out

analytics_export_events answers a download link valid 10 minutes (gzip NDJSON, up to 500,000 events). Keep nextAfterId and pass it as after_id next time; more=true means call again now. At most 20 downloads per hour.

Things that trip agents up

Reference

Where to go next