# Add anonymous PostHog telemetry for provider lifecycle events · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/ec3778bbf4a5d8726cff22bddfcba82cd1c6ebde)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: ec3778bbf4a5d8726cff22bddfcba82cd1c6ebde

Requested commit: ec3778bbf4a5d8726cff22bddfcba82cd1c6ebde

Commit: ec3778bbf4a5d8726cff22bddfcba82cd1c6ebde

Tree: ef2fb0f61750f7065b8ace19e92a15003b248724

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Add anonymous PostHog telemetry for provider lifecycle events

- introduce `AnalyticsService` with buffered PostHog batch flush
- add hashed telemetry identifier from Codex account id or anonymous local id
- record provider session/turn lifecycle events and flush on stop-all
- wire telemetry layer into server runtime and update tests with no-op analytics

```

## Parents

- [8c5b8d3b720a82de1c77fe3aa32bde7a5ff36325](https://git.cafe/screen/t3code-personal/commit/8c5b8d3b720a82de1c77fe3aa32bde7a5ff36325?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/ec3778bbf4a5d8726cff22bddfcba82cd1c6ebde?format=markdown)
