PostHog Surveys Can't Target by Relative Date (And the Workaround)

Update (January 18, 2026): Well, this is embarrassing. After publishing this post and opening a GitHub issue, I discovered the feature DOES exist—I just completely missed it. Where it actually is: When setting up survey targeting with a date property, use the drop down to change the operator to “before” or “after” then click “Select a value” and you’ll see relative date options. PostHog Survey relative datetime It’s right there in the dropdown. I have no excuse except that I was tunnel-visioned on looking for it elsewhere. ...

January 15, 2026 · 3 min · Leen

PostHog Client IPs Behind Reverse Proxies: A Gotcha

PostHog wasn’t tracking client IPs correctly behind my reverse proxy. NextJS logged the right IPs, Caddy sent the right headers, but PostHog’s dashboard showed everyone visiting from my VPS in Frankfurt. This broke geographic analysis and location-based feature flags. Here’s what I tried and what actually worked. The Setup My application stack: NextJS application Caddy reverse proxy (handles SSL) PostHog Cloud for analytics The proxy setup is standard: Caddy receives requests, sets proper headers, passes them to NextJS. ...

October 22, 2025 · 4 min · Leen