# PostHog

Product analytics, session replay, and surveys you can self-host. Hotjar without the session pack.

**Replaces:** Hotjar

**Tier:** Medium

## Problem

Hotjar (Contentsquare) meters sessions and then upsells Growth. PostHog is in the catalog and does replay, funnels, and product analytics on your Postgres/ClickHouse.

## Stack

- [PostHog](https://posthog.com/) — Open-source product analytics and session replay

## Estimated SaaS cost saved

| You stop paying | Typical / year | Self-host instead |
|---|---:|---|
| Hotjar Growth | $1,200 | PostHog self-host |

**About $1,200 / year** on a small team, before you count lock-in.

## Deploy on Railway

Placeholder: PostHog is a multi-service stack (web, worker, Postgres, Redis, ClickHouse). Treat it as a second-wave template; snippet on c17.io comes after.

## AGENT_PROMPT

```
Replace Hotjar with self-hosted PostHog.

- Follow PostHog's self-host compose. Persist Postgres/ClickHouse/Redis.
- Install the JS snippet on the site that currently loads Hotjar. Confirm one replay and one heatmap-equivalent insight.
- Document GDPR posture (self-host, first-party).
```

## FAQ

### Why not Swetrix?

Swetrix replaces GA/Mixpanel pageviews. Hotjar is session replay and heatmaps — that is PostHog's job. Use Swetrix for traffic, PostHog for 'what did they click'.

Source: https://c17.io/stacks/posthog-insights
