Skip to content

fix: add docs-to-canvas attribution handoff - #831

Open
malhotra5 wants to merge 6 commits into
mainfrom
oss-10250-docs-attribution
Open

malhotra5 wants to merge 6 commits into
mainfrom
oss-10250-docs-attribution

Conversation

@malhotra5

Copy link
Copy Markdown
Member

This PR was created by an AI agent (OpenHands) on behalf of the user.

Summary

  • Loads the existing docs PostHog initialization script from docs.json.
  • Adds a docs-to-Canvas oh_ph_handoff script for links to app.all-hands.dev.
  • Preserves PostHog anonymous distinct_id and session ID across docs → app navigation while carrying only bounded attribution fields.
  • Respects Do Not Track and PostHog opt-out, and fails open so navigation is never blocked.

Why

OSS-10250 restores consent-aware website-to-Canvas attribution. The docs site also has many entry points to app.all-hands.dev, so loading docs analytics and adding the same structured handoff improves attribution for docs-driven Canvas/Cloud traffic.

Validation

python3 -m json.tool docs.json >/tmp/docs-json-ok
node --check openhands/canvas-handoff.js
git diff --check

Related

@malhotra5 can click here to continue refining the PR

Co-authored-by: openhands <openhands@all-hands.dev>
@mintlify

mintlify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
all-hands-ai 🟢 Ready View Preview Sep 24, 2026, 6:02 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>

This branch was successfully deployed

1 active deployment
staging — 589d153b Deployed Sep 24, 2026 by mintlify[bot]
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.

2 participants