integration-javascript_web

Integrate Amplitude analytics into client-side JavaScript web applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Client-side web projects often struggle to instrument analytics consistently; this skill defines a standard approach to integrating Amplitude using the Unified SDK and ensures proper event naming, user identification, and autocapture.

Core Features & Use Cases

  • Unified SDK initialization for client-side web apps
  • Consistent event naming, user identification patterns, and autocapture
  • Guidance for common web app scenarios including vanilla JS and popular frameworks

Quick Start

Install the Amplitude Unified SDK in your web project and initialize it with your API key, then begin tracking events and identifying users in your client code.

Frequently Asked Questions about integration-javascript_web

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

FAQPage Schema
How do I integrate Amplitude analytics into a JavaScript web app?

Integrate Amplitude analytics by installing the Unified SDK, initializing it with your API key, and then tracking events and identifying users in your client-side JavaScript code.

What is the best way to track custom events in Amplitude without exposing PII?

To track events without exposing PII, use the Unified SDK's track calls with proper event naming conventions, ensuring no personally identifiable information is included in the event properties.

Can I use the Amplitude Unified SDK with vanilla JavaScript and popular web frameworks?

Yes, the Amplitude Unified SDK works effectively with both vanilla JavaScript and popular web frameworks to instrument events and initialize analytics on the client side.

How do I enable autocapture and identify users in Amplitude?

Enable autocapture during SDK initialization and use the setUserId and identify methods to track user interactions and properties consistently across your web application.

Why should I use the Amplitude Unified SDK instead of analytics-browser for event instrumentation?

The Unified SDK provides a standard approach to Amplitude integration, ensuring consistent event naming, user identification, and autocapture across client-side projects compared to using analytics-browser directly.