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.

Browser

Compare the three browser SDK installation methods and choose the right one for your stack.

Install, configure, and use Amplitude Browser SDK 2 for event tracking, plugins, batching, and EU data residency.

Generate strongly typed tracking calls for Browser SDK 2 from your Amplitude tracking plan.

Capture clicks, page views, and form interactions automatically with the Autocapture plugin.

Use the Page URL Enrichment plugin to automatically add page URL-related properties to all events tracked by the Browser SDK.

Use the Custom Enrichment plugin to run an Amplitude-managed enrichment function against every event the Browser SDK tracks.

Configure cookies, storage, opt-in/out, and CNIL-compliant consent for the Browser SDK.

Upgrade from Browser SDK 1 to Browser SDK 2 to gain Autocapture and a lighter footprint.

Migrate from amplitude-js to Browser SDK 2 with the new plugin architecture.

Identify users and events by marketing channel using the Marketing Analytics Browser SDK.

Maintenance reference for Browser SDK 1; new projects should use Browser SDK 2.

More in this section

  • Browser Unified SDK
  • Browser SDK 2
  • Ampli for Browser SDK 2.0
  • Autocapture Plugin
  • Page URL Enrichment Plugin
  • Custom Enrichment Plugin
  • Cookies and consent management (Browser SDK)
  • Migrate from Browser SDK 1.0 to 2.0
  • Migrate from Javascript SDK to Browser SDK 2.0
  • Marketing Analytics SDK
  • Legacy