Advanced targeting with attributes

  • Updated
  • Optimizely Web Experimentation
  • Optimizely Edge Delivery
  • Optimizely Personalization

With the new Visual Editor, you can select elements based on custom attributes to gain more granular control over element selection, such as changing the typography of all links on your site.

  1. Click any element and then click Show Advanced.

  2. Choose an Attribute for matching a selector, like src.
  3. Select an Operator for the attribute match: Exact, Contains, Prefix match, Partial match, Starts with, or Ends with.
  4. Select the Use attribute only checkbox to rely solely on the attribute for matching the element. This approach avoids using the selector, which might be dynamic and subject to change.

    Elements that match the selector are now selected. Make the necessary changes, such as changing the typography.

  5. Click Save.