Web Autocapture Schema

This page carries the machine-readable form of the web Autocapture contract for the Browser SDK 2. Use it when you need a stable, parseable contract for pipelines, partners, or validation.

For the same contract with property descriptions, examples, and firing conditions, go to Autocapture events and properties. That page is canonical, and this schema follows it. For Autocapture setup steps, go to Autocapture. For native iOS and Android Autocapture event properties, go to Mobile Autocapture Schema.

Schema

json
{
  "description": "Web Autocapture event types and event property names for the Amplitude Browser SDK 2.",
  "documentation": "/docs/data/web-autocapture-schema",
  "web": {
    "sdk": "Browser SDK 2",
    "events": {
      "Session Started": { "properties": [] },
      "Session Ended": { "properties": [] },
      "Page viewed": {
        "properties": ["Page Domain", "Page Location", "Page Path", "Page Title", "Page URL"]
      },
      "File Downloaded": {
        "properties": ["File Extension", "File Name", "Link ID", "Link Text", "Link URL"]
      },
      "Form Started": {
        "properties": ["Form Destination", "Form ID", "Form Name"]
      },
      "Form Submitted": {
        "properties": ["Form Destination", "Form ID", "Form Name"]
      },
      "Element Clicked": {
        "properties": [
          "Element ID",
          "Element Class",
          "Element Tag",
          "Element Text",
          "Element Href",
          "Element Position Left",
          "Element Position Top",
          "Viewport Height",
          "Viewport Width",
          "Page URL",
          "Page Title",
          "Element Hierarchy",
          "Element Attributes",
          "Element Aria Label",
          "Element Parent Label"
        ]
      },
      "Element Changed": {
        "properties": [
          "Element ID",
          "Element Class",
          "Element Tag",
          "Element Position Left",
          "Element Position Top",
          "Viewport Height",
          "Viewport Width",
          "Page URL",
          "Page Title",
          "Element Hierarchy",
          "Element Attributes",
          "Element Aria Label",
          "Element Parent Label"
        ]
      },
      "[Amplitude] Network Request": {
        "properties": [
          "[Amplitude] URL",
          "[Amplitude] URL Query",
          "[Amplitude] URL Fragment",
          "[Amplitude] Request Method",
          "[Amplitude] Status Code",
          "[Amplitude] Error Code",
          "[Amplitude] Error Message",
          "[Amplitude] Start Time",
          "[Amplitude] Completion Time",
          "[Amplitude] Duration",
          "[Amplitude] Request Body Size",
          "[Amplitude] Response Body Size",
          "[Amplitude] Request Body",
          "[Amplitude] Response Body"
        ]
      },
      "Web Vitals": {
        "properties": [
          "Page Domain",
          "Page Location",
          "Page Path",
          "Page Title",
          "Page URL",
          "LCP (Largest Contentful Paint)",
          "FCP (First Contentful Paint)",
          "INP (Interaction to Next Paint)",
          "CLS (Cumulative Layout Shift)",
          "TTFB (Time to First Byte)"
        ]
      }
    }
  }
}

Reading the schema

  • Keys under events are the exact event_type values Amplitude stores. Strings in each properties array are the exact event property names.
  • Web event types don't carry the [Amplitude] prefix, with the single exception of [Amplitude] Network Request. Some property names do carry it. Amplitude generates those values automatically and marks them read-only.
  • An empty properties array means the event carries no event properties of its own beyond standard user and session context.
  • [Amplitude] Network Request captures response codes 500–599 by default.

For when each event fires and what every property means, refer to Autocapture events and properties.

To change which of these events Amplitude captures, use Autocapture remote configuration, or set autocapture in your Browser SDK 2 initialization.

Was this helpful?

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.

On this page