Skip to main content

identify

Function identify 

Source
pub async fn identify(distinct_id: impl Into<String>, properties: Value)
Expand description

Fire-and-forget person identification. Sends a PostHog $identify event with person properties under $set. Use this to associate a distinct_id with user properties (name, email, plan, etc.).

When no API key is configured, this is a clean no-op.

§Example

identify("user_42", serde_json::json!({ "$set": { "email": "a@b.com", "plan": "pro" } })).await;