Answer the question
In order to leave comments, you need to log in
What code should be written for the YandexMetrics goal when the send button is clicked?
<form method="post" id="form2">
<input type="text" name="yourname" placeholder="Ваше имя" yourbest="true" >
<input type="tel" name="yourphone" placeholder="Телефон" yourbest="true" >
<div align="center" style="padding-top:14px">
<div class="g-recaptcha" data-sitekey="************************************"></div></div>
<div id="OTVET" style="display: none;"><!--Ответ формы--></div>
<input type="button" value="ОСТАВИТЬ ЗАЯВКУ" class="button" onsubmit="yaCounter*********.reachGoal('push_button'); return true;" onclick="AjaxFormRequestSlider('OTVET', 'form2', './form2.php')">
<div class="blavtors"></div>
<input type="hidden" name="landingname" value="Заявка">
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question