# Posthog

## Configuring Posthog Integration

* Navigate to your organization's integration settings.
* Select the Posthog integration option.

<figure><img src="https://2399115798-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWsdxCCToJ5K2nk2ZZvqc%2Fuploads%2FAzCdjJtql8mlaq5NMmWX%2FScreenshot%202024-10-01%20at%201.41.28%E2%80%AFPM.png?alt=media&#x26;token=19790c87-0a17-4bfc-a8f1-67ddcc4c6f63" alt="" width="563"><figcaption></figcaption></figure>

* Enter your PostHog Project API Key and Host URL
* Choose the specific events you want to send to Posthog.
* Save your configuration.

Use your PostHog Project API Key, not your personal API Key.

When creating an inference, add an `posthog` attribute to the `additional_metadata` field with the structure below.&#x20;

```json
{
    additional_metadata:{
        posthog:{
            distinct_id:"82az9ddoi34fski29375fjnafd",
            event:"Evaluation Pass",
            properties: {
            }
        }
    }
}
```

Refer to PostHog documentation for more details on properties, including which are required or optional.
