vic4884
9/20/2019 - 3:55 PM

как повесить цели яндекса на кнопки

как повесить цели яндекса на кнопки

 $(document).ready(function(){
      $('[data-cell]').each(function(){
          $(this).on("click",function(e){
             e.preventDefault()

                let number = $(this).attr("data-cell-number");
                let cell = $(this).attr("data-cell");
                let name = $(this).attr("data-cell-name");

                 ym(number, cell, name);
                 return true;

          });
      });
  });    

//<a id="lead" 
//data-remodal-target="whatsappphone" 
//data-cell-number="000000" 
//data-cell="reachGoal" 
//data-cell-name="Whatsapp" 
//href="#" class="form-link w-inline-block">whatsapp</a>