Click tracking click-tracking

On this page: Learn how to track clicks on page elements as a success metric, how to manage the selected elements, and what to consider when you select elements.

Adobe Target lets you track clicks on any element as a success metric. Click tracking refers to the process of monitoring and recording user interactions, specifically clicks, on elements within a webpage or experience. This is a key part of measuring engagement and performance in A/B tests, multivariate tests, and personalization activities.

NOTE
Tracking clicks is not supported on the global Target request when it is used as a location in a form-based activity.

Set up click tracking section_5540C5A533114E57BAE022A600B02E72

Click tracking is a type of conversion success metric. It counts the clicks that activity entrants make on the page elements that you select, so that you can measure how visitors engage with those elements. Any element of a page can be tracked, such as a link, a button, or an image.

  1. When setting your goals on the Goals & Settings page for your activity, select the Conversion success metric.

  2. For the action, select Clicked an element, then click Select elements.

    Elements selected

    Your page opens in the Visual Experience Composer (VEC).

  3. Select any elements that you want to track.

    See Considerations for tips on selecting elements.

  4. Click Done at the top of the screen to save your selections.

    The goal metric on the Goals & Settings page then shows the number of selected elements. Hover over it to see the elements.

    Elements selected

When an activity entrant clicks a selected element, that click is counted as a conversion.

Selected Elements panel selected-elements

For A/B Test, Experience Targeting (XT), Automated Personalization (AP), and Multivariate Test (MVT) activities, a Selected Elements panel lists the selected elements for click tracking on the left side.

Selected Elements panel

There are several actions that can be applied when you click an element in the Selected Elements panel. The following table describes each action that can be performed on an element:

Action
Description
Tracked actions
Displays the element action.
CSS selector
Lets you edit the CSS selector.
Delete
Deletes the element.

Add element

If you already know the DOM path to the selector, you can add it manually by clicking the Add Component icon at the top of the panel.

Add Component icon

Considerations considerations

Select elements

  • When you click an element, the VEC options menu displays, and the DOM path of the element displays at the bottom of the page. Use the DOM path to see information about the element (type, ID, and class) and to move up or down the path to select the element that you want.

    The element that you select in the DOM path displays as Selected in the VEC. To unselect it, click it again in the DOM path or click the Selected box in the VEC.

    DOM path selector

    For more information, see Navigate elements using the DOM path in Visual Experience Composer Options.

  • You can browse to a different page to track clicks on a page where you might not be changing content. This different page must be included in the activity using the multipage feature and at.js must be implemented on it.

  • Make sure you select the level of element you want to track. For example, when specifying a button, make sure you select the link and not the button text.

  • If you select more than one element, if an entrant clicks on any one of the chosen elements, the click is counted. To count each item separately, set up individual success metrics for each element. To count one item by clicking several elements on a page, edit the CSS Element Selector to match multiple elements.

  • For Automated Personalization (AP) and Auto-Target activities on single page applications (SPAs), you can select elements for click tracking that belong to a specific Target View. For more information about Views, see Adobe Target Views and Single Page Applications.

How clicks are counted

  • Click events are sent to Target on the same page as the click.
  • Click-tracking metrics are not linked to any specific experience in an activity.
  • Use audiences if it is necessary to restrict the scope of the click-tracking metrics.
  • Multiple activities can define a click-track metric for the same selector. If so, when a visitor qualifies for one of those activities and clicks that selector, the click-track metric increases for all associated activities that the visitor qualified for.

Analytics and at.js

  • If the click-tracking metric is the Goal metric of an Analytics for Target (A4T) activity, the visitor must click this element within 60 seconds of the page loading for the metric to track.

  • If you use at.js click tracking and you also use Analytics AppMeasurement, at.js click tracking cancels all other click event handlers. As a result, the AppMeasurement click handler never executes.

    at.js has special handling for click tracking when the underlying element is an A (link) tag or FORM tag. The following steps are executed by at.js when the click tracking event is attached to an A (link) tag or a FORM tag:

    1. Invoke event.preventDefault().

    2. Fire Target request.

    3. On Target request success or error callback, execute default behavior:

      • A (link) tag: The default behavior is to navigate to the URL defined by HREF attribute.
      • FORM tag: The default behavior is to submit the form.

    This default behavior might interfere with Analytics click tracking. If you are using Analytics, you should rely on Analytics for click tracking rather than Target.

Limits

  • Click tracking does not work on elements that include escaped characters in their selectors, including the following:

    table 0-row-2 1-row-2 2-row-2 3-row-2 4-row-2 5-row-2
    Character Description
    # Number sign or Hash
    : Colon
    . Period
    $ Dollar sign
    [ ] Square brackets
  • Click tracking is not recorded on pages where the page and activity URL belong to different properties. Enterprise user permissions is a Target Premium feature. For more information, see Enterprise user permissions.

Training video section_36607204DAE146E3B8E2C609D244EDB1

This video includes information about creating click-tracking success metrics.

  • Understand “goal” metrics
  • Understand and build Conversion, Revenue, and Engagement metrics
  • Build a click-tracking metric
recommendation-more-help
target-help-main