Posthog on OCaml.org
Mark Elvers
~1 min read

Categories

  • posthog

Tags

  • tunbury.org

Sabine would like to switch OCaml.org from using Plausible over to Posthog. The underlying reason for the move is that the self-hosted product from Posthog has more features than the equivalent from Plausible. Of particular interest is the heatmap feature to assess the number of visitors who finish the Tour of OCaml.

Posthog has documentation on the self-hosted solution. In short, create a VM with 4 vCPU, 16GB RAM, and 30GB storage and run the setup script:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/deploy-hobby)

Any subsequent upgrades can be achieved with:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/posthog/posthog/HEAD/bin/upgrade-hobby)"

After installation, I created a public dashboard as with Plausible. I also enabled the option Discard client IP data.

The OCaml website can be updated with PR#3101.