I can’t set up tracking of clicks on buttons in GTM, all that is displayed in the data layer is a class, and it does not see the class specified for the link, respectively, except as a class of this variable in the variable and not

  • It will be clearer if you provide references to the technologies used (gtm) and provide code examples. - Roman Paradeev Nov.
  • I use gtm.click, example code: <div class = "ya-share2 ya-share2_inited" data-services = "vkontakte, facebook, gplus" data-url = "http: // ,,,,"> <div class = "ya-share2__container ya-share2__container_size_m"> <ul class = "" -a2322 ya-share2__list_direction_horizontal " com / ... "rel =" nofollow "target =" _ blank "title =" VKontakte "> <span class =" ya-share2__badge "> - user227904
  • <span class = "ya-share2__badge"> <span class = "ya-share2__icon"> </ span> <span class = "ya-share2__counter"> </ span> </ span> In gtm.element.Classes: ' ya-share2__icon ', nothing else gets - user227904
  • This is auto-generated code, it doesn’t bring us much closer to the solution. You can formulate the problem in more detail in the question: what do you want to achieve, what is happening at the moment? You can prepare an example of a page on which the error is reproduced. What is gtm.click, too, would be nice to briefly tell. - Roman Paradeev
  • It is desirable, with examples of code and data, because the phrase "everything that is displayed in the data layer is a class, but it does not see the class specified for the link, respectively, except as a class of this variable in the variable and not" outside the context is very difficult to understand. - Roman Paradeev

0