V
V
Vlad2016-04-12 20:14:21
JavaScript
Vlad, 2016-04-12 20:14:21

Why doesn't the Share event fire?

Patient: multmult.ru/20360-telekanal-disney.html
The source code contains codes that should track clicks on the Yandex "share" widget. There are 2 such widgets on the page. So, clicks on the first widget are tracked, but not on the second. Why?
Absolutely identical code for both widgets...

Ya.share2('#my-share1', {
      hooks: {
          onshare: function (name) {
              yaCounter12086338.reachGoal('share');
              yaCounter12086338.reachGoal('share1');
          }
      }
    });
    Ya.share2('#my-share2', {
      hooks: {
          onshare: function (name) {
              yaCounter12086338.reachGoal('share');
              yaCounter12086338.reachGoal('share2');
          }
      }
    });

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question