Launch track link page

Avatar

Avatar

1982luca

Avatar

1982luca

1982luca

15-11-2020

Read

Hello everyone,

 

Any suggestion how to track li with href?

 

 

1982luca_0-1605513120645.png

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

evolytics_brian

Avatar

evolytics_brian

evolytics_brian

16-11-2020

@1982luca - If you're looking to track clicks on the <a> tags that are found in your list, you can do this with a Launch rule. Your rule, with CSS selector, may look something like this:

evolytics_brian_1-1605559989417.png

Using "div#dashboard-deals li a" will pick up any/every <a> tag that falls under a <li> inside your div. This assumes the following page structure (from your image):

...
...
  <div class="collapse" id="dashboard-deals">
    <ul>
      <li><a href="/someLink1.html">some text 1</a></li>
      <li><a href="/someLink2.html">some text 2</a></li>
      <li><a href="/someLink3.html">some text 3</a></li>
      <li><a href="/someLink4.html">some text 4</a></li>
    </ul>
  </div>
...
...

From there, you'd set up the rest of your rule as you normally would.

 

Answers (1)

Answers (1)

Avatar

Avatar

thefoxman80

Avatar

thefoxman80

thefoxman80

16-11-2020

Can you add an event listener to it?