Amplitude Quickstart
Get from zero to insights in minutes with three easy ways to get Amplitude up and running.
Pick the best path for you
Choose the setup path that fits how you work. All three options send data to the same Amplitude project. You can switch paths later if your needs change.
Wizard CLI
Full SDK setup
Best for developers or anyone comfortable in a terminal. The wizard detects your framework, authenticates you with Amplitude, and wires up the core implementation flow.
- Full SDK setup.
- AI-generated custom events.
- MCP, Slack, and Teams integration.
AI Prompt
Low-code setup
Best for teams that use AI coding tools. Paste one prompt into Cursor, Claude Code, Copilot, or another assistant and let it handle the implementation steps.
- Full SDK setup.
- Autocapture and Session Replay.
- Client-side initialization guidance.
Browser Snippet
Paste-and-go install
Best for web teams that want the fastest setup. Add one script tag to your site's <head> and start collecting browser data without a bundler.
- Script-tag install.
- Autocapture.
- Session Replay and remote config.
Wizard CLI
Full SDK setup for developers. The wizard authenticates you with Amplitude, detects your framework, proposes custom events, and confirms that data reaches your project before it exits.
What you get
Full SDK setup with framework detection.
Autocapture, including sessions, clicks, page views, and forms.
AI-generated custom events plus Amplitude MCP, Slack, and Teams integration.
Run
Run the setup wizard
Run the command in your terminal, or run it from Claude Code inside your terminal.
bashnpx @amplitude/wizardAdd
Add your API key
Paste the API key for the project you want to track when the wizard prompts you.
Where to find your API key
Go to Settings > Projects and copy the API key for the project you want to track. Need an API key? Create a free Amplitude account.
Verify
Verify that data is flowing
Open the Amplitude Debugger to confirm that the wizard's test events arrive in real time.
Tips
- Use
--menuto pick your framework instead of relying on auto-detection. - Requires Node.js 20.
- Press
tabduring the wizard to ask questions or send feedback.
AI Prompt
Low-code setup with an AI assistant. Copy this prompt into an AI coding tool to set up the Amplitude Browser SDK for a JavaScript web app without running the full wizard flow.
Set up with an AI prompt
Use this option when you want an AI tool to make the code changes for you. If you want Amplitude to detect your framework and propose events automatically, use Wizard CLI instead.
What you get
Full SDK setup for a JavaScript web app.
Remote config for feature flags and guides.
Copy
Copy the prompt into your AI tool
Paste it into Cursor, Claude Code, Copilot, or another coding assistant that can edit your project.
textInstall and configure Amplitude for this JavaScript web application. Use API key: AMPLITUDE_API_KEY Requirements: - Run the implementation only on the client. - Initialize Amplitude once during app load. - Install the correct browser package for this project. - Enable fetchRemoteConfig: true. - Enable autocapture for attribution, page views, sessions, element interactions, form interactions, and file downloads. - Enable Session Replay with sampleRate: 1. - Preserve the project's existing TypeScript and framework patterns.Review
Review the generated changes
Confirm that the assistant installed the SDK, initialized it in the right client entry point, and kept the code client-side.
Verify
Verify that events arrive
After the changes land, open the Amplitude Debugger and confirm that page views and session data reach your project.
Tips
- Click the API key button in the code block to insert your key before you copy the prompt.
- Create a free Amplitude account if you still need a project and API key.
Browser Snippet
Paste-and-go install for websites. Paste this script into the <head> of your site when you want the fastest possible browser install without a build step or npm package.
Set up with a browser snippet
Use this option for static sites, CMS-driven sites, or any project where a script tag is easier than an SDK install. If you want framework-aware setup, use Wizard CLI instead.
What you get
Script-tag install with no bundler.
Remote config for feature flags.
Paste
Paste the snippet into your site's `<head>`
Add it to every page you want to track.
html<script src="https://cdn.amplitude.com/script/AMPLITUDE_API_KEY.js"></script> <script> window.amplitude.add(window.sessionReplay.plugin({ sampleRate: 1 })); window.amplitude.init("AMPLITUDE_API_KEY", { fetchRemoteConfig: true, autocapture: { attribution: true, fileDownloads: true, formInteractions: true, pageViews: true, sessions: true, elementInteractions: true, networkTracking: true, webVitals: true, frustrationInteractions: true, }, }); </script>Set
Set your API key and load the page
Replace the placeholder with your project's API key, then load a tracked page in your browser.
Confirm
Confirm data in Amplitude
Open the Amplitude Debugger and check for page view, session, and interaction events.
Tips
- Click the API key button in the code block to insert your key before you copy the snippet.
- Use the EU CDN host if your project uses EU data residency.
- Create a free Amplitude account if you need a project and API key.
Take the next step
After data starts flowing, use these guides to expand your implementation.
Amplitude MCP server
Query your analytics data from Claude, Cursor, or any other MCP-compatible client without leaving your workflow.
Claude Code plugin
Install the Amplitude plugin for Claude Code to get built-in slash commands for charts, dashboards, and instrumentation work.
Custom events
Track the product events that matter to your business after Autocapture covers the basics.
User identification
Connect anonymous activity to known users so you can analyze behavior across sessions and devices.
Group analytics
Analyze behavior at the account, workspace, or team level with user groups.
Session Replay
Watch real user sessions alongside event data to find friction, confusion, and drop-off points.
More in this section
Was this helpful?