Amplitude

Amplitude

Product analytics platform used by software companies to track user behavior within web applications. Tracks events, session flows, and user journeys using a client-side SDK that sends data to Amplitude's ingestion pipeline. Sets a persistent device ID cookie to stitch sessions across visits and identify returning users.

Overview

Amplitude is a product analytics platform used by software companies, mobile app developers, and digital product teams to understand how users engage with their products. Unlike web analytics tools focused on marketing attribution, Amplitude is designed for product instrumentation — tracking feature usage, measuring activation and retention, running funnel analyses, and powering A/B test measurement. It is widely deployed across SaaS, fintech, gaming, and consumer app products.

What This Script Does

The Amplitude JavaScript SDK (cdn.amplitude.com/libs/amplitude-*.min.js) instruments every page and interaction in the host application:

Event tracking

  • Tracks page views automatically on load and navigation
  • Captures click events, form submissions, and custom events defined by the product team via amplitude.track() calls
  • Each event includes a full property payload: page URL, referral source, UTM parameters, user properties, and any custom properties the developer attaches
  • Events are batched and sent to Amplitude's ingestion API (api2.amplitude.com/2/httpapi) at configurable intervals or on session end

User identification and session stitching

  • Sets the amplitude_id first-party cookie (persistent, typically 10 years by default) containing the device ID, the last event time, and the session ID
  • The device ID is a UUID generated on first visit and persisted across sessions to identify returning users
  • When a user logs in, the application calls amplitude.setUserId() to associate the device ID with a known user ID, enabling cross-device stitching in Amplitude's user profiles
  • Session IDs (millisecond timestamps) mark session boundaries; a new session ID is assigned after 30 minutes of inactivity

User properties and cohorts

  • Collects device metadata automatically: OS, browser, browser version, country, language, screen dimensions, carrier
  • Developers can attach custom user properties (subscription tier, feature flags, experiment variants) to enrich analysis
  • Amplitude's cohort engine groups users by behavioral criteria for retention and funnel analysis

Consent & Compliance

  • Category: Analytics
  • GDPR: Amplitude is a product analytics tool. Under GDPR, tracking user behavior for product improvement can rely on legitimate interests in some cases, but many DPAs and regulators treat persistent behavioral analytics as requiring consent — particularly when a device ID is stored in a long-lived cookie. The default 10-year cookie expiry is difficult to justify under the storage limitation principle. Amplitude offers a consent-aware initialization mode.
  • CCPA: Amplitude supports CCPA compliance through its data deletion API, allowing users' event histories and profiles to be purged on request.
  • Data transfers: Amplitude is a US company headquartered in San Francisco. Data is processed in the US by default. Amplitude offers EU data residency (data stored in Frankfurt via AWS eu-central-1) for customers requiring European data processing. EU-US Data Privacy Framework applies for US-processed data.
  • Cookies set: amplitude_id_[API_KEY] (1st party, up to 10 years by default — configurable), amplitude_unsent_[API_KEY] (1st party, session, for unsent event queue)

Should You Block This Without Consent?

Yes — with analytics consent. Amplitude sets a long-lived device ID cookie and tracks behavioral patterns across sessions. This requires analytics consent under GDPR. Amplitude should not initialize until analytics consent is granted. Consider configuring the cookie expiry to a shorter duration (e.g., 1 year) and enabling the consent-aware SDK initialization pattern to avoid collecting data before consent is given.

Is Amplitude GDPR compliant?

Amplitude typically loads analytics trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Amplitude can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Amplitude, not on Amplitude itself.

Visit website

Consent Categories

Also Known As

amplitude analyticsamplitude SDKproduct analyticsevent trackingamplitude cookieuser behavior analytics

Industries

Computers Electronics and TechnologyProgramming and Developer SoftwareBusiness and Consumer ServicesMarketing and Advertising

Tracked Domains (3)

amplitude.comAnalytics

amplitude.com is an analytics domain operated by Amplitude, used to measure visits, sessions, and on-site behavior.

cdn.amplitude.comAnalytics

cdn.amplitude.com is an analytics domain operated by Amplitude, used to measure visits, sessions, and on-site behavior.

api2.amplitude.comAnalytics

api2.amplitude.com is an analytics domain operated by Amplitude, used to measure visits, sessions, and on-site behavior.

Cookies Amplitude Sets (2)

amplitude_id_

Amplitude SDK identifier suffixed with the API key. Stores device ID and session state. 10-year expiration on legacy SDKs.

AMP_

Amplitude Browser SDK 2 identifier suffixed with the API key (e.g. AMP_<api-key-prefix>). One-year expiration.

Frequently Asked Questions

Related Vendors

Airmeet
Airmeet
Airmeet is a virtual events and webinar platform that embeds event registration flows and livestream players on event landing pages. Scripts manage attendee registration, session access control, and real-time interaction features for online events.
Sprig
Sprig
Sprig is an in-product research platform that collects micro-surveys and session replays within the product experience. Scripts display contextual survey prompts at targeted moments in the user journey and capture responses alongside behavioral session data for product research insights.
FullStory
FullStory
User behavior analytics and website feedback platform that collects quantitative data through heatmaps and session recordings alongside qualitative data through on-site surveys. The FullStory script captures the full DOM state at each moment to enable pixel-perfect session replay.
Ortto
Ortto
Ortto scripts track behavioral events on websites including page views, clicks, and form submissions. Data is used to build customer profiles and trigger personalized email, SMS, and in-app marketing campaigns. May set persistent cookies to identify returning visitors.
Dealfront
Dealfront
Dealfront is a B2B sales intelligence platform that loads scripts to perform IP-to-company matching on websites, identifying visiting organizations for sales prospecting. It collects anonymous company-level visit data without capturing individual user identities.
Funnel.io
Funnel.io
Funnel.io is a marketing data aggregation platform that operates as a backend data pipeline, connecting ad platforms and analytics sources for centralized reporting. It does not embed scripts or set cookies on third-party websites during normal operation.

Manage consent for Amplitude

ConsentStack automatically detects and manages Amplitude trackers so your site stays compliant with global privacy regulations.