How to find CSS Selector?

How to find CSS Selector?

Want to track when someone clicks a specific button on your storefront (like “Subscribe” or “Contact”)? You can do this by creating a custom event using a CSS selector.

  • On your storefront, go to the page and find the button you want to track.

  • Right-click on the button and choose Inspect.

  • In the HTML code that appears, right-click on the highlighted line, then choose Copy > Copy selector.