Skip to content

Add PostHog analytics to disclose.io - #84

Merged
yesnet0 merged 2 commits into
mainfrom
feat/posthog
Nov 26, 2026
Merged

yesnet0 merged 2 commits into
mainfrom
feat/posthog

Conversation

@yesnet0

@yesnet0 yesnet0 commented Nov 26, 2026

Copy link
Copy Markdown
Member

Loads PostHog (project 769471, shared with lookup.disclose.io, us.i.posthog.com) next to GA4 in layouts/partials/analytics.html.

  • Same dev/staging hostname guard as GA4; production builds only
  • person_profiles: identified_only, recordings mask all inputs
  • ?internal=1 registers traffic_type=internal on PostHog events too
  • Cookie scoped to .disclose.io, so disclose.io and lookup visitors are one person

Loads PostHog behind the existing GA4 dev/staging hostname guard, production
builds only. Token and host live in config/_default/params.toml. Inputs are
masked in session recordings; ?internal=1 tags events traffic_type=internal.
@yesnet0
yesnet0 merged commit 8a242c0 into main Nov 26, 2026
2 checks passed
@yesnet0
yesnet0 deleted the feat/posthog branch November 26, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant