On this page

Autocapture Events and Properties

This reference lists Autocapture event types and event property names for web when you use the Browser SDK 2. Use this reference to understand what Amplitude captures automatically, configure your tracking plan, or set up pipelines and validation.

For a machine-readable version of this page, go to Web Autocapture Schema. For native iOS and Android Autocapture event properties, go to Mobile Autocapture Schema.

Shared conventions

  • Property names in bold (for example, Page URL) reflect how they appear in Amplitude.
  • Autocapture prefixes some properties with [Amplitude]. Amplitude generates these automatically and marks them as read-only.
  • Configure which events Amplitude captures through AutocaptureOptions in the Browser SDK 2.

Sessions

Session started

Captures when a user session begins, either on first page load or after a period of inactivity.

Property NameDescription
No properties collected

Session ended

Captures when a user session ends due to inactivity or the browser tab closing.

Property NameDescription
No properties collected

Page views

Page viewed

Captures each time a user loads or navigates to a page, including single-page app route changes.

Property NameDescription
Page DomainThe full hostname from the current web address, including any subdomains such as www or app.
Page LocationThe full URL of the current page, including any URL Search Parameters.
Page PathThe pathname of the current page. This excludes any URL Search Parameters and URL Fragments.
Page TitleThe title of the page.
Page URLThe URL of the page excluding the URL Search Parameters.

File downloads

File downloaded

Captures when a user clicks a link that triggers a file download.

Property NameDescription
File ExtensionThe extension of the downloaded file. For example: .pdf, .docx, .zip, and so forth.
File NameThe full pathname of the downloaded file. This can include more than just the filename of the file.
Link IDThe ID of the link element.
Link TextThe text content of the link element.
Link URLThe link address of the file download.

Form interactions

Autocapture captures forms that use the <form> tag.

Form started

Captures when a user initially interacts with a form element, including modifications to a text input, radio button, or dropdown.

Property NameDescription
Form DestinationThe action attribute of the form element. For example, for <form action="/subscribe">, the value is /subscribe.
Form IDThe ID of the form element.
Form NameThe name attribute of the form element.

Form submitted

Captures when a user submits the form.

Property NameDescription
Form DestinationThe action attribute of the form element. For example, for <form action="/subscribe">, the value is /subscribe.
Form IDThe ID of the form element.
Form NameThe name attribute of the form element.

Element interactions

Element clicked

Captures clicks on page elements.

The default configuration captures user interactions with interactive elements on your page. The default eliminates event noise such as clicks to highlight text and white-space clicks. The default captures the following:

  • All clicks on form elements: <a>, button, input, select, text area, label, and elements where contentEditable is set to true.
  • All clicks on video and audio elements.
  • Clicks on select elements that result in a change on your page (for example, a modal appearing) or navigation to another page. These elements include divs, spans, and headers.
  • All clicks on elements with an attribute of data-amp-default-track or a class of amp-default-track.
  • You can customize this configuration to add or remove selectors. You can choose whether Amplitude always tracks those selectors or only when the click results in a change to the page.
Property NameDescription
Element IDThe id attribute of the HTML element. For example, an element with id="myID" produces the value myID.
Element ClassThe class attribute of the HTML element. For example, an element with class="myClass" produces the value myClass.
Element TagThe tag name of the HTML element. For example, an <a> element produces the value a.
Element TextThe text content (innerText) of the HTML element. Only applies to the Element Clicked event. For example, a link with text "Home" produces the value Home.
Element HrefThe href attribute of the HTML element. Only applies to <a> tags on the Element Clicked event. Values longer than 128 bytes are truncated.
Element Position LeftThe distance of the element from the left of the screen view, in pixels. For example, a value of 600 means the element was 600px from the left.
Element Position TopThe distance of the element from the top of the screen view, in pixels. For example, a value of 400 means the element was 400px from the top.
Viewport HeightThe height of the viewport in pixels when the element was clicked. For example, a value of 900 means the viewport was 900 pixels tall.
Viewport WidthThe width of the viewport in pixels when the element was clicked. For example, a value of 1200 means the viewport was 1200 pixels wide.
Page URLThe URL of the page where the element was clicked.
Page TitleThe page title of the page where the element was clicked.
Element HierarchyDOM elements and attributes of the element clicked and its parent or sibling elements. Amplitude uses this for visual labeling.
Element SelectorDeprecated in favor of Element Hierarchy. A unique CSS selector of the element. For example, an element with id="myID" produces the value #myID.
Element AttributesUnique attributes associated with click events through the dataAttributePrefix setting. For example, an element with attribute id="feature-start" produces a property [Amplitude] Element Attributes.id with the value feature-start.
Element Aria LabelThe aria-label of the element, used for interactive elements without visible text. For example, an element with aria-label="Close" produces the value Close.
Element Parent LabelThe text label in the parent element (or upper ancestors if not found in the one-level parent) of the element.

Element changed

Captures form element interactions, such as changes to a dropdown or entering text in a text box.

Property NameDescription
Element IDThe id attribute of the HTML element.
Element ClassThe class attribute of the HTML element.
Element TagThe tag name of the HTML element.
Element Position LeftThe distance of the element from the left of the screen view, in pixels.
Element Position TopThe distance of the element from the top of the screen view, in pixels.
Viewport HeightThe height of the viewport in pixels when the element changed.
Viewport WidthThe width of the viewport in pixels when the element changed.
Page URLThe URL of the page where the element changed.
Page TitleThe page title of the page where the element changed.
Element HierarchyDOM elements and attributes of the element changed and its parent or sibling elements. Amplitude uses this for visual labeling.
Element SelectorDeprecated in favor of Element Hierarchy. A unique CSS selector of the element.
Element AttributesUnique attributes associated with change events through the dataAttributePrefix setting.
Element Aria LabelThe aria-label of the element, used for interactive elements without visible text.
Element Parent LabelThe text label in the parent element (or upper ancestors if not found in the one-level parent) of the element.

Network requests

Captures when the application makes a network request. By default, Amplitude tracks network requests with a response code in the range 500-599 and excludes requests made to any amplitude.com domain.

To enable network request tracking, set config.autocapture.networkTracking to true in your SDK configuration.

Property NameDescription
[Amplitude] URLThe URL of the network request with sensitive information masked.
[Amplitude] URL QueryThe query parameters of the URL.
[Amplitude] URL FragmentThe fragment identifier of the URL.
[Amplitude] Request MethodThe HTTP method used for the request (for example, GET, POST, PUT, or DELETE).
[Amplitude] Status CodeThe HTTP status code of the response.
[Amplitude] Error CodeThe local error code if the request failed without a status code.
[Amplitude] Error MessageThe local error message if the request failed without a status code.
[Amplitude] Start TimeThe timestamp when the request started, in milliseconds since Unix epoch.
[Amplitude] Completion TimeThe timestamp when the request completed, in milliseconds since Unix epoch.
[Amplitude] DurationThe duration of the request in milliseconds.
[Amplitude] Request Body SizeThe size of the request body in bytes.
[Amplitude] Response Body SizeThe size of the response body in bytes.
[Amplitude] Request BodyThe captured JSON request body (when you configure a requestBody capture rule).
[Amplitude] Response BodyThe captured JSON response body (when you configure a responseBody capture rule).

For more information about configuring network tracking, including advanced capture rules and filtering options, refer to Track network requests in the Browser SDK 2 documentation.

Web Vitals

Captures Core Web Vitals performance metrics when the browser tab hides.

Property NameDescription
Page DomainThe full hostname from the current web address, including any subdomains such as www or app.
Page LocationThe full URL of the current page, including any URL Search Parameters.
Page PathThe pathname of the current page. This excludes any URL Search Parameters and URL Fragments.
Page TitleThe title of the page.
Page URLThe URL of the page excluding the URL Search Parameters.
LCP (Largest Contentful Paint)The time it takes for the largest content element to become visible in the viewport. Measured in milliseconds.
FCP (First Contentful Paint)The time it takes for the first content element to be painted on the screen. Measured in milliseconds.
INP (Interaction to Next Paint)The time from a user interaction to the next paint. Measured in milliseconds.
CLS (Cumulative Layout Shift)The sum of all individual layout shift scores for unexpected layout shifts. A dimensionless value.
TTFB (Time to First Byte)The time from the navigation start to when the first byte of the response is received. Measured in milliseconds.

Each metric includes a performance rating (good, needs-improvement, or poor) based on Web Vitals thresholds and timing data.

Was this helpful?