Skip to content
☁️ HitKeep Cloud is coming! Join the Early Access waitlist →

Funnels

You need to understand where users abandon your signup flow, purchase process, or onboarding sequence — without sending that behavior data to a third-party analytics cloud. HitKeep’s funnel analytics run entirely on your server. Conversion intelligence stays in your database.

HitKeep funnel analytics — multi-step conversion with drop-off rates
Funnel analytics — step completion rates and drop-off, stored on your own server.

Define a funnel with an ordered list of steps. Each step is a path (URL match) or an event (named custom event):

Terminal window
curl -X POST https://your-hitkeep.example/api/sites/{site_id}/funnels \
-H "Content-Type: application/json" \
-b "hk_token=YOUR_SESSION_COOKIE" \
-d '{
"name": "Onboarding",
"steps": [
{"type": "path", "value": "/signup"},
{"type": "event", "value": "email_verified"},
{"type": "path", "value": "/dashboard"}
]
}'

Steps are evaluated in order. A session must complete each step before being counted toward the next.

Retrieve completion counts and drop-off rates for a time range:

Terminal window
curl "https://your-hitkeep.example/api/sites/{site_id}/funnels/{funnel_id}/stats?from=2025-01-01T00:00:00Z&to=2025-01-31T23:59:59Z" \
-b "hk_token=YOUR_SESSION_COOKIE"

Track funnel performance over time to measure the impact of product changes:

Terminal window
curl "https://your-hitkeep.example/api/sites/{site_id}/funnels/timeseries?from=2025-01-01T00:00:00Z&to=2025-01-31T23:59:59Z" \
-b "hk_token=YOUR_SESSION_COOKIE"
  1. Open your site in the dashboard.
  2. Navigate to Funnels.
  3. Click New Funnel and add at least two steps.
  4. The stats panel shows completion counts and conversion rates per step.
  5. The timeseries chart lets you track improvements after shipping changes.
Terminal window
curl -X DELETE https://your-hitkeep.example/api/sites/{site_id}/funnels/{funnel_id} \
-b "hk_token=YOUR_SESSION_COOKIE"

Deleting a funnel removes its definition and computed rollups. The underlying raw hit data is preserved — you can always define a new funnel over the same historical data.

Funnel data is fully exportable at any time via the data takeout API. Query it with any analytics tool, migrate it to any platform — no lock-in. HitKeep Cloud → manages the infrastructure while keeping the same data portability.