Palbase Analytics
Palbase's analytics module: what a project's apps send — product events (captures, identifies, aliases, screens, page views), performance samples, request traces, console history — and what the project's server reads back: summaries, event lists, funnels, retention tables, requests, performance percentiles, console records. One shared, multi-tenant service: every project's rows are in shared tables of a replicated ClickHouse, and a row policy lets a read see only the project it names.
Two doors. A client app sends with the publishable key, and a signed-in user's token makes what it sends theirs. The project's server reads and changes its settings with its secret key (apikey, role service_role).
What an app sends is limited per project per second (all kinds together), and kept as long as the project's retention says (90 days for events, samples and traces, 14 for console records, unless changed). Places (country, region, city) are resolved with DB-IP's IP to City Lite database: IP geolocation by DB-IP (https://db-ip.com), CC BY 4.0.
The contract itself: /openapi/analytics.openapi.json
Audiences
/analytics/audiencesList audiencesPOST/analytics/audiencesCreate an audiencePOST/analytics/audiences/previewPreview an audience's ruleGET/analytics/audiences/{id}Get an audiencePATCH/analytics/audiences/{id}Change an audienceDELETE/analytics/audiences/{id}Delete an audienceGET/analytics/audiences/{id}/membersList an audience's membersIngest
/analytics/aliasJoin two idsPOST/analytics/batchSend events in a batchPOST/analytics/captureSend an eventPOST/analytics/console-breadcrumbsUpload console historyPOST/analytics/identifySay who the user isPOST/analytics/pageSend a page viewPOST/analytics/perfSend performance samplesGET/analytics/perf/configRead the samplingPOST/analytics/screenSend a screen viewPOST/analytics/tracesSend a request tracePOST/analytics/traces/batchSend request traces in a batchPOST/analytics/peopleSet a person's propertiesEvents
/analytics/breakdownBreak the events downGET/analytics/event-namesList event namesGET/analytics/eventsList eventsGET/analytics/events/timelineRead events over timePOST/analytics/funnelRun a funnelPOST/analytics/retentionRun a retention tableGET/analytics/summarySummarize the eventsGET/analytics/catalogGet the event catalogPUT/analytics/catalog/{name}Describe an event