How to create a CSS Selector for use in the Convert Experiences platform

How to create a CSS Selector

CSS selectors can be used across the Convert platform for tracking clicks, inserting them on the variation code, and in general to create your experiments and personalizations. It is always good to know how to create them if you are creating experiments or personalizations on Convert.

You can think of selectors, like street addresses that point to the specific element that you want to change or reference.


To create a selector:

  1. Go to your page, then select any element that you want to create the selector for. 

  2. Then right-click on the element and select Inspect. This will open the Elements tab of Chrome Developers tools, and select the HTML element you are inspecting. 

  3. Then right-click again on the actual HTML element, and select Copy Selector. Make sure you had selected the right element that you need to point to.
  4. You can verify if the selector you copy is pointing to the element you intended by searching for the element on the Elements tab of Chrome Developer Tools. Just click Ctrl + F and pasting the selector on the search text box, and clicking enter. You will see your element highlighted.
Need assistance? Start a conversation with our Support Team.
CONVERT MORE

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

START 15-DAY FREE TRIAL
✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features

Comments