Webflow
Ask your agent to inspect the Webflow page and find the link or button visitors use. Keep the existing control so its styles, link settings, and interactions stay in Webflow. Review the change in Designer preview before you approve publishing.
Mark a Designer control
If success is reaching a page that already runs Version Compare, use a page goal. For an action on the same page, such as opening a schedule, ask your agent to configure a Named interaction called open-schedule. See Goals.
- In Designer, select the actual button or link in the Navigator. For a Collection List, select the control inside the Collection Item. For a reusable component, edit the control in the main component if every instance should count.
- In Element settings > Custom attributes, add
data-vc-goalwith the valueopen-schedule. Use the exact configured event name. A selector belongs in your code, not in the goal. - In preview, inspect the rendered
<a>or<button>. Check the attribute is on the element the visitor activates, not on the Collection Item or an icon inside the control.
Mark a generated control
If a widget creates the control and Designer cannot set its attribute, mark the element after the widget renders. For example, give its existing section the ID course-actions. If the actual button has the stable class js-schedule-toggle, add this helper in Page settings > Custom code > Before </body> tag:
<script>
document.querySelector('#course-actions button.js-schedule-toggle')
?.setAttribute('data-vc-goal', 'open-schedule');
</script>
Use Site settings > Custom code > Footer code only if the same generated control appears across the site. Custom code requires an eligible plan and a Designer or Site manager. The example runs once. If the widget renders later or replaces the button, run the same change in its render callback or watch a stable parent. Do not add a click listener or another Version Compare script.
Compare wording in Designer
If the control can contain child elements, such as an existing Link block, keep the link and change only its label. Add data-vc to the label's container. Its direct children can be two Custom elements tagged span, each with data-vc-version. Leave the current wording visible and add hidden to the alternative. Keep icons outside the label's version set.
In a Collection template or list, bind the two spans to plain text Collection fields. If you are editing a component, you can bind the labels to content properties. Editors can then change the copy without editing the markup. Keep versions for text visible on load in the initial HTML. If Designer cannot add child elements to a control that appears later, use the label-only approach where it fits. Do not copy the Webflow control or strip its existing markup.
Check the preview
Use Webflow's Designer preview. Try each label with Show versions. Check the focus order and the original action, then look for Version Compare preview: not recorded and the event name in the console. Check mobile or newly rendered copies too. Only mark copies whose activation should count.
For first setup or checks on an ordinary page, add data-vc-test with no value to the hosted script tag on every page that uses it. See test mode. Leave the attribute in place until the owner separately approves turning on measurement. Then remove it and reload the affected pages.