Skip to content

Lead-gen Group 4: first-party docs-behavior beacon (capture only)#402

Draft
JakeSCahill wants to merge 1 commit into
mainfrom
feature/lead-gen-docs-beacon
Draft

Lead-gen Group 4: first-party docs-behavior beacon (capture only)#402
JakeSCahill wants to merge 1 commit into
mainfrom
feature/lead-gen-docs-beacon

Conversation

@JakeSCahill

Copy link
Copy Markdown
Contributor

Draft / WIP — capture only. The docs-ui half of Group 4 in the lead-gen plan. Pairs with the docs-site /docs-activity endpoint (docs-site PR #192).

Adds src/js/27-docs-activity.js: a signed-in-only pageview beacon. For users with the rp_docs_auth hint cookie, it reports one pageview per navigation (path, Antora data-component, and the q term on /search) to the same-origin /docs-activity endpoint, which records it server-side against the user's account.

  • Anonymous visitors send nothing.
  • Same-origin, so the session cookie rides along (no CORS).
  • Deduped once-per-path-per-tab-session to keep write volume to real navigations.
  • Fire-and-forget; never blocks or throws into the page.
  • Feeds product area, recent + most-visited pages, pricing/get-started visits, and search terms — replacing anonymous Plausible/Heap/Algolia for lead purposes.

Capture only; nothing is delivered to sales (held pending legal confirm). Lint passes. Needs the docs-site endpoint deployed to do anything, and ships in the UI bundle like other JS.

🤖 Generated with Claude Code

New signed-in-only pageview beacon. For users with the rp_docs_auth hint
cookie, reports one pageview per navigation (path, Antora component, and the
search term on /search) to the docs-site /docs-activity endpoint, which
records it server-side against the account. Replaces anonymous third-party
analytics (Plausible/Heap/Algolia) for lead purposes.

Anonymous visitors send nothing. Same-origin (session cookie rides along).
Deduped once-per-path-per-tab-session to keep write volume to real
navigations. Fire-and-forget; never blocks or throws into the page.

Capture only — the endpoint stores to our own user store; nothing is
delivered to sales.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for docs-ui ready!

Name Link
🔨 Latest commit 00203c5
🔍 Latest deploy log https://app.netlify.com/projects/docs-ui/deploys/6a5a1dacfaf1a40008ed4ee1
😎 Deploy Preview https://deploy-preview-402--docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 30 (🟢 up 1 from production)
Accessibility: 89 (no change from production)
Best Practices: 92 (no change from production)
SEO: 89 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 072e04c7-df9d-4f8d-bb5a-88b84e4510fc

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/lead-gen-docs-beacon

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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