integration-react-tanstack-router-code-based

Official

Analytics integration for React + TanStack Router

AuthorPostHog
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Enables PostHog analytics integration for React apps using TanStack Router in a code-based routing setup, ensuring consistent event tracking across navigations and routes.

Core Features & Use Cases

  • Code-based routing integration: Implement PostHog within a TanStack Router code-defined app to centralize analytics.
  • Environment-driven config: Use environment variables for project tokens, hosts, and feature flags to keep credentials secure.
  • Event capture guidelines: Provides patterns for identifying users, tracking page/actions, and error reporting across routes.

Quick Start

Follow the workflow steps to integrate PostHog analytics into a TanStack Router code-based React app.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: integration-react-tanstack-router-code-based
Download link: https://github.com/PostHog/skills/archive/main.zip#integration-react-tanstack-router-code-based

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.