P
P
Pavel2018-02-02 11:31:25
Yandex.Metrica
Pavel, 2018-02-02 11:31:25

Where to insert the Yandex.Metrica goal code?

I can't figure out where to insert the Yandex.Metrica goal code into the form?
Form code

<form class="form_popup" method="POST" > 

              <input type="text" required placeholder="Введите имя" class="name2" name="Имя">
              <input id="phone2" type="text" required placeholder="Введите телефон" class="name2" name="Телефон">              
              <input type="submit" class="main-button2" value="Отправить">
          </form>

And here is the code that was sent, which needs to be inserted into the site
on_submit="try { ga ('send', 'event', 'click', 'otpravka');}catch(exc) {console.dir(exc);} try{yaCounter47377579.reachGoal('otpravka');} catch(exc) {console.dir(exc);}

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