This article covers the following:
Overview
Configuring metrics directly in the Visual Editor lets you define and track user visitor interactions without leaving the design interface. This ensures that your experimentation or personalization goals are accurately captured as you modify your website's elements. By configuring metrics directly in the editor, you can track relevant interactions such as button clicks, form submissions, and element visibility events to measure campaign performance.
For example, if you are testing a new Request Demo button, you can use the Visual Editor to create a Click metric for that specific button. Creating metrics from the Visual Editor eliminates the need to manually identify selectors or switch to the campaign settings page, saving time and reducing configuration errors.
Configure Metrics in Visual Editor
You can configure a new primary or secondary metric for your campaign directly in the Visual Editor.
To configure a new metric for a target element in the visual editor, follow these steps:
- Open the Visual Editor for your campaign and navigate to the element you want to track.
-
Click on the desired element for which you want to configure the metric, for example, Request Demo.
Note: Metrics configured through element selection in the Visual Editor apply only to the current campaign. These metrics are not added to Data 360 and are unavailable for use in other campaigns.
- Click Track and select the event type, for example, Click, Hover, Focus, Blur, Element Visible, and Mousedown.
-
In the submenu, click In a New Metric.
The Create Metric dialog box appears with the selector path of the selected element pre-filled.
- In the Create Metric dialog box, enter a Metric Name.
- In the Metric will calculate section, select either Unique visitors or Event totals. For more information, see Working with Metrics.
- Select the Direction of Better (Increase or Decrease) based on your goal.
- Click Create. Your Click metric is now configured, and it tracks all the clicks on the Explore for free CTA.
If you have already configured a primary metric during campaign setup and want to track additional elements, you can add them as secondary metrics.
To add secondary metrics:
- In the Visual Editor, click Metrics from the left sidebar.
- Click + Add in the Secondary metric and search for the metric you want to include.
- Select the metric and click Add.
Your additional metrics are added to the campaign.
Track Multiple Elements in an Existing Metric
You can track multiple website elements to an existing metric. This is useful when different UI elements represent the same conversion goal.
To track multiple elements within an existing metric:
- Select the element you want to track, for example, a secondary CTA button.
- In the contextual menu, click Track and select the event you want to track, such as Click, Hover, or Focus.
- From the sub-menu, select in an existing metric.
- From the Metric dropdown, choose the existing metric in which you want to track the respective event.
- Click Save.
The new element selector is appended to the original metric. Wingify will now record a conversion whenever a visitor interacts with any of the defined selectors for that metric.
Track Clicks on Links
When you select an anchor tag (<a>) in the Visual Editor, Wingify provides a specialized tracking option to accurately capture link clicks.
To capture clicks on links:
- Select a link or an anchor tag element on your web page in the Visual Editor.
- Select Track > Click on Link.
- In the Create Metric dialog box, provide a Metric Name.
- Configure the Target URL settings if you want to restrict the tracking to specific link destinations.
- Click Create.
Clicks on the selected link/anchor tag will be tracked in the configured metric.
Track Form Submission
Wingify can automatically track successful form submissions. This form submission event is triggered by buttons within a <form> tag with the type="submit" attribute.
- In the Visual Editor, open the Layers panel from the top-left corner to identify the <form> element wrapping your input fields.
- Right-click the <form> element in the layers list or select the submit button itself.
- Select Track > Form Submit.
- In the Create Metric dialog box, name your metric and configure any Target URL settings if required.
- Click Create.
Use AI Suggested Metrics
The Visual Editor identifies common trackable elements on your page and lists them as suggestions. To view these AI-suggested metrics in the Visual Editor:
- Click Metrics in the left sidebar, then navigate to the Suggested metrics tab.
- Browse the list of suggested elements, for example, Request Demo Button Clicks.
- Click + Add next to the desired suggestion to add it to your campaign instantly.
If you have not configured a Primary metric already, the selected metric is added as the Primary metric.
Edit Metrics
You can edit the metrics that you have created in the Visual Editor to track an element. You can rename the metrics, update the element selector, or adjust calculation methods after you have created a metric in the editor. You can also edit your tracking criteria without disrupting your design workflow. For example, if you initially set up a Click metric for a Request Demo button in the editor but later decide to track only unique visitors rather than total clicks, you can quickly update metric settings within the editor. Note: You can only edit metrics configured in the Visual Editor. Data360 metrics can not be edited.
To edit your metric:
- Click Metrics from the left sidebar in the Visual editor dashboard.
- In the Added Metrics tab, locate the metric you want to edit.
- From the vertical ellipsis menu adjacent to the metric name, click Edit.
The Modify Metric dialog appears. It allows you to update the core functional details of your metric, such as:
- Metric Name: Enter a new name in the Metric Name field to update how the metric appears in your reports.
- Element Tracking: To use a different attribute for tracking, click the Selector Path dropdown menu and choose options like HTML ID, HTML Class, or HTML Tags.
- Metric will calculate: Select Unique visitors or Event totals to change how conversions are counted. For more information, refer to this article.
- Direction of Better: Adjust the Increase or Decrease toggle to redefine the desired campaign outcome.
- Click Save to apply the changes. Your metric is now updated.
You can also change the Primary metric for your campaign if required.
To change the Primary metric:
- Click Metrics from the left sidebar in the Visual editor dashboard.
- In the Added Metrics tab, locate the Primary metric you want to change.
- From the vertical ellipsis adjacent to the Primary metric name, click Choose different metric.
- Select the new Primary metrics from the available metrics list, or create a new one. Your metric is configured as a Primary metric.
The next section explains how to configure metrics to track iframe or Shadow DOM elements in the Visual Editor.
Track Iframe or Shadow DOM Elements
Attention: To track elements in an iframe, the iframe must be hosted on the same domain as the parent website. Wingify cannot access or modify cross-domain iframes due to browser security restrictions.
Tracking interactions on Shadow DOM or iframe elements follows the standard metric-creation process in the Visual Editor, with Wingify automatically handling the underlying hierarchy.
To track an iframe or Shadow DOM element:
- Open your campaign in the Visual Editor.
- Navigate to the section of your page containing the Shadow DOM or iframe element.
- Select the specific element you want to track, for example, a button inside a shadow root.
- Click Track and select Track event on element.
- Select the event type, for example, Click, Element Visible, or Submit.
- From the submenu, click In a New Metric.
The Create Metric dialog box appears with the selector path of the selected iframe or Shadow DOM element pre-filled.
- Enter a Metric Name and click Create.
- In the Metric will calculate section, select Unique visitors or Event totals. For more information, see Working with Metrics.
- Select the Direction of Better (Increase or Decrease) based on your goal.
- Click Create.
Your metric to track a particular Shadow DOM or iframe element is configured.
Need more help?
For more information or further assistance, contact Wingify Support.