<div class="click_number_header">
    057-098-28
    <span class="num_hide">-52</span>
    <span class="sh_nmr">показать</span>
</div>
jQuery(document).ready(function($){
  $.fn.textToggle = function(cls, str) {
    return this.each(function(i) {
      $(this).click(function() {
        var c = 0, el = $(cls).eq(i), arr = [str,el.text()];
        return function() {
          el.text(arr[c++ % arr.length]);
        }
      }());
    })
  };
  $(function(){
    $('.sh_nmr').textToggle(".sh_nmr","").click();
    $('.sh_nmr').textToggle(".num_hide","ХХХ").click();
    $('.click_number_header').on("click" , () => {
      alert("detect click");
      ga('send', 'event', 'click_number_header', 'click', 'Click number header')
    });
  });
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js