Skip to content

studio-app: anonymous funnel id on checkout (h3-studio#725) - #319

Merged
apedintensor merged 1 commit into
mainfrom
claude/checkout-funnel-1028
Oct 28, 2026
Merged

apedintensor merged 1 commit into
mainfrom
claude/checkout-funnel-1028

Conversation

@apedintensor

Copy link
Copy Markdown
Member

Frontend half of Codex's #725 ask (comment on h3-studio#725):

  • checkoutAnalytics() returns {consent: true, distinct_id} only when PostHog is initialised on a deployed site, DNT is off and the visitor hasn't opted out. The id must match a UUID (PostHog anonymous id; we never call identify), so it can't be an email/account/owner id.
  • POST /v1/billing/checkout body is {pack_id} plus analytics only in that case; existing servers ignore it.

Tests 884 pass; lint/ratchets pass.

Checkout adds analytics {consent: true, distinct_id} only when PostHog runs on this site,
Do Not Track is off and the visitor hasn't opted out; the id must be an anonymous UUID.
Older servers ignore the field.
@apedintensor
apedintensor merged commit 641506a into main Oct 28, 2026
2 checks passed
@apedintensor
apedintensor deleted the claude/checkout-funnel-1028 branch October 28, 2026 05:48
apedintensor added a commit to inkseq/h3-studio that referenced this pull request Oct 28, 2026
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