integration-react-tanstack-router-file-based

Integrate Amplitude analytics into React apps using TanStack Router file-based routing.

28|Updated Dec 5, 2025
One-click install
npx skills add https://github.com/amplitude/wizard --skill integration-react-tanstack-router-file-based-amplitude
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-react-tanstack-router-file-based
Source: https://github.com/amplitude/wizard/tree/main/skills/integration/integration-react-tanstack-router-file-based
Command: npx skills add https://github.com/amplitude/wizard --skill integration-react-tanstack-router-file-based-amplitude

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

React apps using TanStack Router with file-based routing often lack a clear, guided approach to instrument Amplitude analytics. This skill provides a structured workflow and reference materials to implement consistent event tracking, user identification, and autocapture.

Core Features & Use Cases

  • Step-by-step guidance to integrate Amplitude with TanStack Router file-based apps in React.
  • Reference implementations and best practices for event naming, user identification, and analytics configuration.
  • Use cases covering login, navigation, and custom events in a file-based router.

Quick Start

Follow the reference files to set up Amplitude integration in your TanStack Router file-based React app.

Frequently Asked Questions about integration-react-tanstack-router-file-based

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Amplitude analytics into a React app using TanStack Router with file-based routing?

To integrate Amplitude analytics into TanStack Router, follow a guided workflow that provides reference implementations for consistent event tracking, user identification, and analytics configuration across file-based routes. The setup uses a sample project to illustrate best practices.

What is the best way to track navigation events in a TanStack Router file-based React application?

The best way to track navigation events is by applying consistent event naming conventions within your file-based routes. Reference materials provide structured guidance for configuring analytics to capture navigation and custom events effectively.

Does this Amplitude integration approach support user identification and autocapture for file-based routes?

Yes, the integration supports both user identification and autocapture. It provides reference implementations demonstrating how to configure Identify usage and autocapture specifically within a TanStack Router file-based routing structure.

Can I use this guided workflow to set up Amplitude event tracking if my React app uses code-based routing instead of file-based routing?

No, this specific workflow targets React applications using TanStack Router with file-based routing. The provided reference implementations and best practices are tailored to the file-based routing structure for consistent instrumentation.

Why do I need a structured approach to instrument Amplitude analytics in TanStack Router file-based apps?

A structured approach is needed because file-based routing often lacks a clear, default method for analytics instrumentation. The guided workflow ensures consistent event tracking, user identification, and autocapture configuration across all routes.