Amplitude Quickstart
Amplitude is quick to set up. Most implementations take under 10 minutes from install to seeing your first events. Pick your platform below and follow a few steps.
Not finding your platform? Browse all Amplitude SDKs.Pick your platform
Amplitude offers several ways to instrument a JavaScript web app. Choose the method that fits your workflow.
Install the Browser SDK with a snippet
Paste-and-go install for websites. Add this script to the <head> of your site when you want the fastest possible browser install with no 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.
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.
Was this helpful?