This article helps you:
Create and edit labeled events with no new code required
After enabling Autocapture on your site, you can begin to create labeled events by clicking specific elements on your site using Amplitude Data's visual labeling feature. This way, non-technical Amplitude users can create these events without needing to understand the structure of the page.
Amplitude maintains labeled events separately from events you've created in other ways. If there are issues with data for labeled events, make adjustments from within the Labeled Events tab, instead of involving your engineering team.
This feature is available on all plans and requires the following:
config.autocapture.elementInteractions
option set to true
. For more information, go to the Browser SDK Configuration.
To use Visual Labeling to create new labeled events, follow these steps:
Open Amplitude Data and click Visual Labeling in the left rail. The Launch Visual Labeling modal appears.
Enter the URL of the site or application you want to label, and click Start Labeling. Amplitude opens your website or app in a new tab, with the visual labeling toolbar at the top of the page.
Click an element you want to label, the visual labeling overlay appears. Click Navigate to navigate to a different part of site that you want to label.
In the visual labeling overlay, enter a name, description, and category for your labeled event. Select if tracking should happen when a user clicks the element, or when it changes. Visual labeling uses the clicked
event by default. Refine the definition and select filters as needed. When you're done, click Save. If you have labeled events that have the same definition, a warning appears to help you avoid duplication.
Amplitude saves the labeled event and displays a confirmation with an option to view the labeled event. Visual Labeling prevents saving events with duplicate names or definitions.
Repeat steps three through five for each event you want to label.
When you're done labeling, return to Amplitude. Here, you can manually update the tag, text, selector, and page URL of each labeled event.
[any value]
. For example, if you leave the URL field blank, the tracking for that event fires on any page.You can select another element to continue labeling or click "Back to Amplitude" if you're done.
Amplitude uses AI to recommend precise CSS selectors for elements on your web page during the visual labeling process. When you click on an element to label it, Amplitude automatically suggests a selector that may best capture the intended target.
AI-generated CSS selectors appears on individual elements (such as a button) and on groups of elements (such as a list or product tiles).
The AI pre-fills the Name and Descriptions fields using contextual AI understanding of the selected element. You can modify the AI-generated input for these fields at any time.
Amplitude detects events that you label which:
When the Event has a similar definition
warning appears, click View to compare your new event to the existing events. When you click through the similar definitions, Amplitude highlights elements on screen that define your event.
When the This labeled event already exists
warning appears, click View to open the existing event.
When your site's code changes, you may need to update the definition of your labeled events to match. Since Autocapture consistently captures the raw click events, you can update the definition of your labeled events and fix any gaps in your data.
To edit your labeled events, follow these steps:
Sometimes, changes to your site's DOM can break Visual Labeling's reference to the specific element on your site. In situations like this, Visual Labeling supports repairing events you already labeled.
To repair a labeled event:
Amplitude provides information to let you know if a labeled event isn't working as it should.
Navigate to Data > Events, and open the Labeled Events tab. The Recency column shows the last time Amplitude tracked each event. Events that weren't seen recently may show an issue with the event definition.
When you enable Autocapture, Amplitude begins tracking click and page change events on your site. These events count towards your total event volume. Labeled events act like a virtual layer on top of these events, and help define a specific type of click and use that click in an analysis. As a result, labeled events don't impact event volume beyond Autocapture.
For example, a well-instrumented site may record 10,000 events each day, and Autocapture may add as many as 2,000 events each day. This means the site could experience a 20% increase in daily events. A less-instrumented site may only record 1,000 instrumented events each day. The plugin adding another 2,000 events counts as a 200% increase.
In both cases, the increase in daily events comes from tracking click and page change events. Labeled events don't impact the event count.
Element clicked
and Element changed
events are visible instead.cross-origin-opener-policy
to be unsafe-none
or unset.I don't see the visual labeling experience on my site
If the visual labeling tools don't appear on your site, check the following:
Cross-Origin-Opener-Policy
is set to unsafe-none
or unset.August 7th, 2024
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2025 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.