Payload semantics: PostHog and Segment on the product-event model
If you already send product analytics with PostHog or Segment, you can point the existing client at Bucker instead of rewriting your instrumentation, so Bucker reads the payloads PostHog and Segment SDKs send. This page is what those payloads MEAN in Bucker. Everything maps onto product events and onto Bucker's rules for people: identify once, alias only as a repair, never merge.
Status: not available yet. Product events are stored only for a project that has switched on product analytics, and that cannot be done yet: the amended data processing terms it needs have not been published (see the product analytics gate). Until then nothing from a PostHog or Segment call is stored: no event, no alias, no account. The rest of this page describes what happens once product analytics is on.
Each project's PostHog and Segment endpoints are also off until an organization owner turns them
on, in their own session: POST /orgs/:orgSlug/projects/:projectSlug/ingest-doors/posthog/enable
(or /segment/enable), with a reason. GET /orgs/:orgSlug/projects/:projectSlug/ingest-doors
shows each one's state.
Tested against posthog-js >= 1.200.0 and <= 1.438.13 (shipped 2026-10-20) and the Segment Spec
(identify, track, page, screen, group, alias; Analytics.js 2.0 and @segment/analytics-node 2.x).
How a call is handled
- If the project's PostHog or Segment endpoint is off, the call is refused with a 403 that names the step that turns it on. Nothing is stored or counted.
- Bucker reads the call and works out the product-event items it carries, the changes it asks for to people and accounts, and one outcome per semantic it met (the tables below).
- It checks that product analytics is on for the project. If it is not, the call is refused with
422
analytics_not_enabled(causedpa_amendment_pendingwhile the amended terms are unpublished), nothing is stored, and the refusal appears in the project's drops asinvalidwith the reasonproduct_category_disabled. - With product analytics on, it applies the changes to people and accounts that a product event cannot express (an alias, a group's own properties), counts every outcome, and then accepts the items like any other product event: reserved names, caps, consent basis, deduplication and hot-key handling all apply again.
Identifiers are pseudonymised with a keyed hash: distinct_id, anon_id and device_id are
hashed on arrival, an alias hashes both ids, and a group key is hashed together with its type.
Nothing Bucker counts or stores for these calls carries a raw id.
Dispositions
| Disposition | Meaning |
|---|---|
| honoured | Accepted with the meaning it has at the source. |
| mapped | Accepted in Bucker's shape; the table says what it becomes. |
| ignored | Accepted, no effect. Counted. |
| refused | Counted, nothing stored for it. A refusal is never silent. |
Every outcome is counted per source and per semantic, using the closed set of names in the tables below.
Decisions worth knowing
- Merging is human-only.
$merge_dangerouslyis refused. An alias is one hop and never joins two identified subjects (alias_refused); the way to link an anonymous visitor to a user is identify. - Anonymous versus identified. posthog-js sends
$is_identified.falsekeeps the id an anonymous subject; absent (server SDKs) ortrueis an identified distinct id. An$identifycarries the new id and$anon_distinct_id, and Bucker links the anonymous person to it once. - Personless.
$process_person_profile: falseand the$posthog_cookielesssentinel store the event with no subject and no property write. - URLs.
$current_urlis reduced to$hostand$pathname; the query string is not stored (it can carry identifiers). The same holds for every other URL an SDK sends: any$property holding an http(s) URL ($session_entry_url,$initial_current_urland$initial_referrerin$set_once, and the rest), and Segment'surlandreferrerproperties, keep scheme, host and path only; Segment'ssearchis read for UTM values and never stored. UTM values are kept as$utm_*. - Segment page properties. A page or screen call keeps the customer's own properties (
categoryand the rest); the Spec's page fields (url,path,referrer,search,title,name) become the derived ones. - Groups. PostHog
$groupsand Segmentgroupmap onto account types. The type must be a live account type of the project; Segment's group lands on the type named by the caller (defaultgroup). - Re-sends. A PostHog
uuidand a SegmentmessageIdbecome the item uuid, so a re-send is a duplicate for 48 hours. Without one the server mints a uuid and a re-send is stored again. - Not adopted. Autocapture (
$autocapture), recording ($snapshot), errors ($exception; use the error envelope) and Hog transformations.
Fidelity table
Every semantic Bucker recognises, with its disposition.
posthog
| Semantic | Disposition | Becomes | Note |
|---|---|---|---|
capture |
honoured | product event, same name | A customer event name (no $ prefix). |
uuid |
honoured | item uuid | Used as sent; deduplicated for 48 hours. |
sent_at |
mapped | sent_at skew correction | Used to correct the event time for clock skew. |
historical_migration |
mapped | import mode | Stored as a historical import: event times are kept as sent. |
api_key |
ignored | - | Authentication is the DSN key; the value is never read or stored. |
$identify |
mapped | $identify item with distinct_id and anon_id |
$anon_distinct_id becomes anon_id; the anonymous person is linked once. |
$set |
honoured | subject property set | Applied to the person (200 keys, 16 KiB). |
$set_once |
honoured | subject property set-once | Applied to the person; a key the person already has is kept. |
$unset |
honoured | subject property unset | Applied to the person. |
$create_alias |
mapped | subject alias (one-hop repair) | Never a merge: refused when it would join two identified subjects (alias_refused). |
$groupidentify |
mapped | account properties | The group type must be a live account type; the key is pseudonymised (purpose account). |
$groups |
mapped | accounts on the item |
At most five account types per event. |
groups_dropped |
ignored | - | A $groups entry past five, or with a type that is not an account type key. |
$process_person_profile |
mapped | personless: true |
false makes the event personless: no person record, no property write. |
set_on_personless |
ignored | - | $set, $set_once and $unset on a personless event are dropped. |
$is_identified |
mapped | anon_id instead of distinct_id |
false keeps the id anonymous; absent or true is an identified distinct id. |
$device_id |
mapped | device_id |
Stored as an expiring keyed hash, only with consent. |
$session_id |
mapped | session_id |
Kept only when it is a UUIDv7. |
$pageview |
mapped | $pageview with $pathname, $host, $referring_domain |
Derived from $current_url and $referrer. |
$pageleave |
mapped | $pageleave with the same derived fields |
As $pageview. |
$screen |
mapped | $pageview with $screen_name |
A mobile screen view is a page view of a named screen; no path is invented. |
$current_url |
mapped | $host, $pathname |
The full URL is not stored: its query string can carry identifiers. |
$referrer |
mapped | $referring_domain |
Host only. |
utm_params |
mapped | $utm_* session properties |
From utm_* properties or the URL query. |
$feature_flag_called |
honoured | flag exposure event | Passed through for the exposure fold. |
reserved_event |
honoured | the same reserved event | Any other name on the server-interpreted list ($rageclick, $survey_sent, ...). |
$autocapture |
refused | - | Autocapture is not accepted; Bucker's interaction recorder carries clicks. |
$exception |
refused | - | Errors use the error envelope, not a product event. |
$merge_dangerously |
refused | - | Merging two people is a human act; nothing is merged. |
$posthog_cookieless |
refused | personless event | The sentinel is never a person; the event is stored personless. |
$snapshot |
refused | - | Session recording has its own ingest path. |
unknown_reserved_name |
refused | - | A $ name the server does not interpret. |
missing_distinct_id |
refused | - | No distinct_id on the event or in its properties. |
personless_identify |
refused | - | An identify cannot be personless. |
bad_event |
refused | - | Not an object, no event name, or a field of the wrong shape. |
batch_over_cap |
refused | - | Messages past the batch cap are dropped and counted. |
group_type_unknown |
refused | - | The group type is not a live account type of the project. |
alias_refused |
refused | - | The alias would chain, join two identified subjects, or has no known target. |
identity_paused |
refused | - | Bucker has paused writes to people and accounts; the alias or group properties are not written. |
uuid_generated |
mapped | item uuid | No uuid: the server mints one, so a re-send is not deduplicated. |
segment
| Semantic | Disposition | Becomes | Note |
|---|---|---|---|
track |
mapped | product event, same name | A name starting with $ is refused. |
identify |
mapped | $identify item |
userId is distinct_id, anonymousId is anon_id, traits is $set. |
page |
mapped | $pageview |
Path, host and referrer host derived; name is $page_name. |
screen |
mapped | $pageview with $screen_name |
As the PostHog $screen. |
group |
mapped | $groupidentify item with accounts and account properties |
The account type is the configured one (default group); the traits are account properties. |
alias |
mapped | subject alias (one-hop repair) | previousId joins userId; never a merge of two identified subjects. |
messageId |
mapped | item uuid | A UUID is used as sent; any other id becomes a deterministic UUID. |
uuid_generated |
mapped | item uuid | No messageId: the server mints one, so a re-send is not deduplicated. |
sent_at |
mapped | sent_at skew correction | Used to correct the event time for clock skew. |
context.ip_user_agent |
mapped | $ip, $user_agent |
Bucker derives country and device from them, then drops them. |
context.campaign |
mapped | $utm_* session properties |
name, source, medium, term, content. |
context.page |
mapped | page fields | Fallback for a page or screen call without properties. |
context.other |
ignored | - | library, device, os, locale, timezone, network and the rest. |
integrations |
ignored | - | Destination routing is accepted and ignored. |
writeKey |
ignored | - | Authentication is the DSN key; the value is never read or stored. |
server_stamps |
ignored | - | receivedAt, version, channel: the server stamps its own. |
unsupported_type |
refused | - | Not one of identify, track, page, screen, group, alias. |
reserved_event_name |
refused | - | A track name starting with $ is the server namespace. |
message_too_large |
refused | - | Over Segment's 32 KiB per message. |
missing_identity |
refused | - | Neither userId nor anonymousId (or no groupId, previousId). |
bad_event |
refused | - | Not an object, or a field of the wrong shape. |
batch_over_cap |
refused | - | Messages past the batch cap are dropped and counted. |
group_type_unknown |
refused | - | The configured group type is not a live account type of the project. |
alias_refused |
refused | - | The alias would chain, join two identified subjects, or has no known target. |
identity_paused |
refused | - | Bucker has paused writes to people and accounts; the alias or group traits are not written. |