D
D
Dmitry2018-11-09 09:56:31
Google Analytics
Dmitry, 2018-11-09 09:56:31

How to track click on all nested classes in tagmanager?

Friends, please advise how to track a click through tagmanager on any nested block in the "page-preview page". Or you will have to create separate triggers for clicking on an image and a link.

<div class="page-preview page">
  <a href="/" class="sw-link preview sw-link_styled" target="">
    <div  class="preview-image" style="background-image: url(&quot;///;);">
    <img data-v-4ae2140e="" src="///"></div>
  </a>
  <div class="content">
    <a href="/" class="sw-link sw-link_styled" target="">Текст</a>
  </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Kravchenko, 2018-11-09
@AntonKravchenko

if all clicks are considered equal, then why not assign one more additional class to all nested blocks and put 1 trigger on it?
Or try another option to select "matches CSS selector" in the settings and use ".page-preview *":
5be5829e57d0b064882343.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question