01Funnels & CPA

See where the
ad budget burns —
step by step.

Multi-tenant analytics for advertising funnels. From the first impression to the final purchase: spend, CPA and ROAS on every step — in real time, broken down by campaign, creative and keyword.

SDK ≤ 2.1 KB gzip·Self-hosted·Privacy-first
Funnel · last 30d● live
Impression
240,180
Click
12,402
78.0%
Page view
11,108
84.6%
Trial
1,287
57.6%
Purchase
184
36.8%
Spend
$12,840
CPA Active
$9.98
ROAS
312%
02How it works

Four steps from an empty
project to a live funnel.

  1. I.

    Install the SDK

    One <script> tag on your site. Auto-PageView, SPA navigation, identify, custom events — no configuration required.

    <script async
      src="https://aianalytics.club/sdk.js"
      data-key="pk_live_…"></script>
  2. II.

    Connect your ad accounts

    Meta Marketing API and Google Ads via Settings → Integrations. Spend, creatives and keywords are pulled every hour.

  3. III.

    Build your funnel

    Drag-and-drop builder: steps, prop filters, conversion windows. Funnels are recomputed every 5 minutes via HyperLogLog.

  4. IV.

    Watch CPA on every step

    Spend × Conversion at each step — by campaign, creative, UTM. ROAS is computed on the fly.

03What is inside

Six reasons it’s worth installing.

6 / 6
01

2.1 KB SDK

Vanilla JS, gzipped. Auto-capture PageView, identify (SHA-256 in the browser), batched delivery with sendBeacon and localStorage retry.

02

Identity stitching

Anonymous → user_id from the moment Identify fires. A partitioned events_raw table holds millions of events without slowing down.

03

Live stream

Server-Sent Events on top of Redis pub/sub. See every event the moment it lands. Pause and resume at will.

04

Funnel rollup

HyperLogLog for unique counts (±2% accuracy), window-based progression. Incremental recompute every 5 minutes.

05

Meta + Google Ads

Hourly cron pull. Creatives with thumbnails, campaigns, keywords. AES-256-GCM encryption for stored tokens.

06

Privacy-first

IP truncated to /24 then HMAC-hashed, no PII at rest. Emails encrypted before storage. Self-hosted on your own VPS.

Ready to stop guessing
what’s burning your budget?

Free for one project. SDK installs in two minutes. Your data stays where you put it — self-hosted.