Actionairy
ProductMemoryBenchmarksPrivacyFAQWalkthrough
Sign inPrepare my conversation
DocsTrack your siteCustom eventsFriction signalsSession replayData sourcesHow Today's numbers work

Actionairy docs

Track your site

Actionairy counts your own site's visitors, the elements they see and click, and who signs up, activates and starts paying. Those numbers fill Today's pipeline. Nothing is sent to anyone else, and IP addresses are never stored.

  1. Install
  2. Single-page apps
  3. Server events
  4. Identify sign-ups
  5. Element impressions
  6. Consent and privacy
  7. Serve it from your own domain
  8. Verify it works
  9. Delete a visitor or user

Install

In Actionairy, open Settings → Products and choose Track your site on your product. Copy the tag it shows (your public key starts with aa_pub_) into the <head> of every page:

<script async src="https://actionairy.lightreach.io/aa.js" data-key="aa_pub_…"></script>

That is all a static site needs. The tag records a page view on load and on every in-app navigation (history.pushState, replaceState and back/forward). The first page view of a visit carries its referrer's host and any utm_source, utm_medium and utm_campaign, which decide its first-touch channel: direct, search, social, email, paid, campaign or referral.

The public key only accepts events sent from your product's own hosts: the production URLs of the product, for example your marketing site and your app. A sibling product on the same domain does not count, so it is safe to publish. Visitors moving between your own hosts stay one visit, and after consent one cookie on your registrable domain joins a marketing visit to the app sign-up.

Single-page apps

Install the npm entry instead of the tag if you bundle your own scripts:

import { init, identify, track, consent } from "@actionairy/analytics";

init({ key: "aa_pub_…" });
track("pricing_viewed", { plan: "team" });

track(name, props) takes up to 20 properties with text, number or true/false values. Names may use letters, digits, spaces and _ . : -. Calls made before the tag loads can be queued: window.actionairy = window.actionairy || []; actionairy.push(["track", "pricing_viewed"]).

Server events

Sign-ups, activations and new subscriptions are only accepted from your server, so a script on a page can never inflate them. In Settings, create a server key (it starts with aa_sec_ and is shown once; rotating it stops the old one at once). Then send:

POST https://api.actionairy.com/site/v1/server-events
Authorization: Bearer aa_sec_…
Content-Type: application/json

{"event": "user_signed_up", "user_id": "u_123",
 "anonymous_id": "<actionairy.anonymousId() from the browser, if any>",
 "company_domain": "acme.com"}
  • event: user_signed_up, user_activated (whatever "activated" means for you), or a revenue event: subscription_started, subscription_updated or subscription_ended.
  • user_id: your own id for the user. Required.
  • anonymous_id: links this user to the browser they arrived in, so their sign-up is credited to the channel they first came from. Available once the visitor has consented.
  • company_domain or email: Actionairy keeps only the work domain. A personal inbox such as gmail.com is dropped; the address itself is never stored.
  • occurred_at (optional): an ISO 8601 time within the past 90 days, for backfills. Revenue events may go back ten years, so you can send your billing history once.
  • properties.mrr: for subscription_started and subscription_updated, the account's monthly revenue as a number (required for an update). subscription_ended sets it to zero.

Send up to 50 at once as {"events": [ … ]}.

Revenue, without connecting a payment provider

Send the three subscription events from wherever you already record a plan change: your own database, webhook handler or admin tool. Actionairy keeps them (other raw events expire after 90 days) and turns them into each company's paying history. That gives Today its paying MRR and the stage model its outcomes. It also lets Actionairy find your value metric: the usage that predicts revenue, and what each shipped Work item did to it.

{"event": "subscription_updated", "user_id": "u_123", "company_domain": "acme.com",
 "properties": {"mrr": 249}}

Identify sign-ups

In the browser, after someone signs in:

actionairy.identify(user.id, { company_domain: "acme.com" });

This is where Actionairy differs from a page counter. A sign-up's company domain is the same key your Market companies, company fits and People use. So Today can show in-market sign-ups (companies research already matched to your buyer criteria) and Started (companies you talked to that then signed up). Actionairy never guesses a company from an IP address and never looks one up elsewhere.

Element impressions

Mark any element you want counted:

<a href="/start" data-aa-impression="hero_cta">Start free</a>

An impression counts when at least half the element is on screen, once per page view. Clicks on the element or anything inside it count too. Elements added later, for example by your framework, are picked up automatically.

Consent and privacy

  • No cookie until consent. Before your site calls actionairy.consent(true), the tag stores nothing in the browser. The server counts the visitor with a hash of a random daily salt, your site, the address and the browser. The hash changes every day, and the salt is deleted after two days, so a visitor cannot be followed from one day to the next.
  • After consent, one first-party cookie, aa_id, on your registrable domain (so www. and app. share it), for one year. consent(false) removes it.
  • Do Not Track and Global Privacy Control are honoured: with either on, the tag sends nothing.
  • IP addresses are never stored. One is used in memory for the daily hash and the rate limit, then dropped. The country comes from the edge network's country header, never from a lookup.
  • Bots (crawler user agents, headless and automated browsers) are dropped.
  • Retention: raw events are kept for 90 days. Daily totals, which hold no ids, are kept.
  • Query strings are dropped from page paths except UTM tags, and only a referrer's host is kept.

Serve it from your own domain

Some ad blockers block third-party analytics. Proxy one path on your own site to Actionairy and point the tag at it:

# nginx
location /aa/ { proxy_pass https://api.actionairy.com/site/v1/; proxy_set_header Host api.actionairy.com; }
location = /aa.js { proxy_pass https://actionairy.lightreach.io/aa.js; }

<script async src="/aa.js" data-key="aa_pub_…" data-api="/aa"></script>

Next.js, Vercel, Netlify and Cloudflare all have equivalent rewrites. Pass the visitor's address through as X-Forwarded-For so the daily count stays per browser. Actionairy still never stores it.

Verify it works

Open your site, then look at the Track your site card in Settings. It shows the browser and server events received in the last 5 minutes. Today's visitors and sign-ups update within a minute.

Delete a visitor or user

POST https://api.actionairy.com/site/v1/subjects/delete
Authorization: Bearer aa_sec_…

{"user_id": "u_123"}      or      {"visitor_id": "<anonymous id>"}

Deleting a user removes their events, the browsers linked to them and their company domain. Today's totals are recalculated without them.

Actionairy

Customer evidence into decisions, work, and learning.

DocsSupportPrivacy© 2026 Actionairy