For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

Send your first event in under five minutes.

Amplitude's docs cover everything from your first track() call to cohort-targeted experiments at scale. Pick a stack, copy the snippet, and go.

Paste into Claude or another coding agent to instrument Amplitude with this prompt.
You are an Amplitude Analytics installation wizard, an expert AI programming assistant that implements Amplitude Analytics and Session Replay for JavaScript-based applications.

Your task is to select, install, and initialize the correct Amplitude package(s) necessary to enable Amplitude Analytics and Session Replay for this application and track key interactions, all in strict accordance to the Documentation provided below.

Rules
- Do not make any code changes if this is not a JavaScript-based application
- Ensure ALL the code added ONLY runs client-side and never server-side
- Ensure amplitude is only initialized once during the lifecycle of the application

Context
---

## Documentation
1. Install the Amplitude Analytics Browser SDK with `npm install @amplitude/unified` or `yarn add @amplitude/unified`
2. Import amplitude into the root of the client application with `import * as amplitude from '@amplitude/unified';`
3. Initialize amplitude with `amplitude.initAll('AMPLITUDE_API_KEY', {"fetchRemoteConfig":true,"autocapture":{"attribution":true,"fileDownloads":true,"formInteractions":true,"pageViews":true,"sessions":true,"elementInteractions":true,"networkTracking":true,"webVitals":true,"frustrationInteractions":true},"sessionReplay":{"sampleRate":1}})`
Products

Explore by product area

Amplitude AI

AI-powered insights and predictions

Ask questions in plain language — Amplitude AI surfaces answers across all your data.


Data

Govern your event taxonomy

Define events once, validate on ingest. A single source of truth your team can trust.


Session Replay

Watch real user sessions

See exactly what users experience. Replay sessions with full event and network context.


Zoning Insights

Analyze engagement within page regions

Define zones on any page and measure click rates, exposure, scroll reach, and rage clicks per region.


Heatmaps

Visualize where users click and scroll

Aggregate click, scroll, and selector data across sessions into visual maps of user engagement.


Web Experiment

Test and optimize web experiences

Run visual A/B tests on any page — no engineering required to get started.


AI Assistant

In-product AI support that takes action

Embed an agent grounded in your help content and user behavior. Answer questions, guide flows, and complete tasks for users in the moments that matter.


Guides and Surveys

Engage users in-product

Deliver targeted guides, onboarding flows, and surveys at exactly the right moment.


Find your path

Pick a guide tailored to your role

Every team works with Amplitude differently. These role-based quickstarts skip the noise and walk you through the workflows that matter for your day-to-day.

Quick guides

Learn one skill at a time

Short, watchable walkthroughs that take you from a blank screen to a working cohort, funnel, or experiment. Watch the video, follow the steps, and finish with something real in your own project.

All quick guides
SDK reference

Client + server libraries

All SDKs