Skip to content

feat: PostHog analytics, and fix the website chat agent - #6

Merged
mrgoonie merged 2 commits into
mainfrom
dev
Oct 1, 2026
Merged

mrgoonie merged 2 commits into
mainfrom
dev

Conversation

@mrgoonie

@mrgoonie mrgoonie commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Brings the PostHog analytics from the old site to the new one.

  • /ingest/* proxies PostHog US Cloud from the Worker (no cookies or auth forwarded, set-cookie stripped).
  • Loads on production only. Until the visitor accepts cookies PostHog keeps its id in memory; Accept switches it to persistent storage.
  • Events: pageviews, pricing plan CTAs, app/contact/outbound clicks, theme toggles, chat opens, lead form submissions.

The agent chat key is bound to the agent's id, and the runtime refuses any other name,
so every reply failed with 403 and fell back to the FAQ handoff. Address the agent by id,
show typing dots as soon as the visitor sends, and answer greetings without a handoff.
@mrgoonie mrgoonie changed the title feat: PostHog analytics through a first-party /ingest proxy feat: PostHog analytics, and fix the website chat agent Oct 1, 2026
@mrgoonie
mrgoonie merged commit 996174f into main Oct 1, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
staging — dc8ef7f6 Deployed Oct 1, 2026 by mrgoonie via build-deploy #51
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