Skip to content

Using the pick common selector (Deprecated)

Pick common selector helps you replicate the tracking process across every matching item on your website. For an ecommerce store, you might want to track all product cards and their attributes with a single event setup — instead of setting up one event per product. The pick common selector handles that replication for you.

You can select or unselect Pick common selector while setting up your events.

Case 1: Track clicks on all products (Pick common selector enabled)

Section titled “Case 1: Track clicks on all products (Pick common selector enabled)”
  1. Log in to your CustomerLabs account.
  2. Launch the No-Code Event Tracker by clicking its icon.
  3. You’ll be redirected to your website, and the No-Code Event Tracker panel opens.
  4. You can move the panel up or down using the panel icon.
  5. Click Record Action to start recording.
  6. Select Product Clicked for the Action Name, or create a custom name.
Recording an action in the No-Code Event Tracker panel
  1. Select On Click under Action Type.
Selecting On Click as the action type
  1. Click Add details to proceed.
  2. Select the attributes you want to track. Start with the product name.
Choosing the product name attribute to track
  1. Select Pick common selector.
Pick common selector option enabled
  1. Click to go back to your website.
  2. Select any one product name from your website.
Picking a single product name on the website
  1. Because Pick common selector is selected, the tracker captures clicks on every product on your website that matches the same pattern.
All products on the page are now covered by the selector
  1. Repeat the process to track additional attributes like price or variant, and for other events too.

Case 2: Track a single product only (Pick common selector disabled)

Section titled “Case 2: Track a single product only (Pick common selector disabled)”
  1. Follow steps 1 to 9 from Case 1.
  2. Do not select the Pick common selector option. Your attributes will be tracked only for the single product you pick.
Tracking attributes for a single product when pick common selector is disabled
  1. Continue setting up your event if you want to focus only on one product.