EventMessage

Properties

NameType
propertiesRecord<string | number, any>
disableGeoipboolean
distinctIdstring
eventstring
groupsRecord<string, string | number>
flagsFeatureFlagEvaluations

Attach feature flag values evaluated via posthog.evaluateFlags() to this event. Prefer this over sendFeatureFlags — it guarantees the event carries the exact values the code branched on and avoids a hidden /flags request on every capture.

sendFeatureFlagsboolean | SendFeatureFlagsOptions

Deprecated: Use the flags option with a FeatureFlagEvaluations object obtained from posthog.evaluateFlags() instead. sendFeatureFlags fires a separate /flags request on capture and may return different values than the ones the code branched on.

timestampDate
uuidstring

If provided overrides the auto-generated event UUID. Must be a valid UUID.

Community questions