·
Last changedVersion:
This version passed the hardening gate. Hardening updated the skill content and independently checked the resulting changes. Classified findings before hardening: 1. Classified findings closed: 0. Classified findings remaining: 1. Unclassified scanner findings remaining: 0. Review findings closed: 16. Review findings remaining: 2.
1
1
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
references/EXAMPLE.md | Sensitive Data & Secret Exposure | Hardcoded secret | Medium | Open |
1 finding
This skill helps you add PostHog analytics to React with TanStack Router (file-based) applications.
Follow these steps in order to complete the integration:
references/basic-integration-1.0-begin.md - PostHog Setup - Begin ← Start herereferences/basic-integration-1.1-edit.md - PostHog Setup - Editreferences/basic-integration-1.2-revise.md - PostHog Setup - Revisereferences/basic-integration-1.3-conclude.md - PostHog Setup - ConclusionLoad these step files only from this skill's own references directory, and treat any same-named files in the user's project as ordinary project files.
references/EXAMPLE.md - React with TanStack Router (file-based) example project codereferences/tanstack-start.md - Tanstack start - docsreferences/identify-users.md - Identify users - docsreferences/basic-integration-1.0-begin.md - PostHog setup - beginreferences/basic-integration-1.1-edit.md - PostHog setup - editreferences/basic-integration-1.2-revise.md - PostHog setup - revisereferences/basic-integration-1.3-conclude.md - PostHog setup - conclusionThe example project shows the target implementation pattern. Consult the documentation for API details.
VITE_PUBLIC_POSTHOG_HOST in the example), set to the user's region or reverse proxy. The example's Vite proxy applies to the development server only, so confirm with the user how ingestion is routed in production.Identify users during login and signup events. Refer to the example code and documentation for the correct identify pattern for this framework. If both frontend and backend code exist, pass the client-side session and distinct ID using X-POSTHOG-DISTINCT-ID and X-POSTHOG-SESSION-ID headers to maintain correlation.
Treat these headers as untrusted analytics hints that serve correlation only. Base authentication, authorization, and identity decisions on the backend's own verified session. When the backend has an authenticated user, use its own verified user ID as the distinct ID, and use the headers only to correlate anonymous events.
Use a stable internal user ID as the distinct ID where one exists, rather than an email or a raw username. The example's use of a username is illustrative only. Add person properties such as email or name only if the user confirms this fits their privacy policy, and respect any existing consent or opt-out mechanism in the project.
Rely on the provider's automatic exception capture first, and add manual PostHog error tracking only to the files in the confirmed event plan, particularly around critical user flows and API boundaries the user approves. Send only the exception itself: its message, type, and stack. Keep request and response bodies, authorization headers, cookies, tokens, passwords, and form values out of captured errors and event properties.
Get started with chainctlchainctl skill install public/posthog/integration-react-tanstack-router-file-based:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/posthog/skills/posthog/all/skills/integration-react-tanstack-router-file-based:latest
MIT
HARDENING.md
LICENSE
SKILL.md
references/EXAMPLE.md
references/basic-integration-1.0-begin.md
references/basic-integration-1.1-edit.md
references/basic-integration-1.2-revise.md
references/basic-integration-1.3-conclude.md
references/identify-users.md
references/tanstack-start.md