I
I
Ilyaploskov2018-05-25 01:12:04
Drupal
Ilyaploskov, 2018-05-25 01:12:04

Yametrica's goal is to submit a webform7 drupal 7 form. Onsubmit does not work. Another way?

<form class="webform-client-form webform-client-form-1538" onsubmit="yaCounter46051725.reachGoal('ras');return true;" action="/projects/pb-110" method="post" id="webform-client-form-1538" accept-charset="UTF-8"><div><div class="name form-item webform-component webform-component-textfield webform-component--name">
  <label class="element-invisible" for="edit-submitted-name">Имя <span class="form-required" title="Это поле обязательно для заполнения.">*</span></label>
 <input required="required" placeholder="Имя" type="text" id="edit-submitted-name" name="submitted[name]" value="" size="60" maxlength="128" class="form-text required">
</div>
<div class="phone ico-phone form-item webform-component webform-component-textfield webform-component--phone">
  <label class="element-invisible" for="edit-submitted-phone">Телефон <span class="form-required" title="Это поле обязательно для заполнения.">*</span></label>
 <input required="required" placeholder="Телефон" type="text" id="edit-submitted-phone" name="submitted[phone]" value="" size="60" maxlength="128" class="form-text required">
</div>
<div class="form-item webform-component webform-component-textfield webform-component--ispolnenie">
  <label class="element-invisible" for="edit-submitted-ispolnenie">Исполнение <span class="form-required" title="Это поле обязательно для заполнения.">*</span></label>
 <select required="required" id="edit-submitted-ispolnenie" name="submitted[ispolnenie]" class="form-select required"><option value="" selected="selected">Выберите исполнение</option><option value="Каркасная технология">Каркасная технология</option><option value="Нестроганый брус">Нестроганый брус</option><option value="Сухой проф. брус">Сухой проф. брус</option></select>
</div>
<input type="hidden" name="details[sid]">
<input type="hidden" name="details[page_num]" value="1">
<input type="hidden" name="details[page_count]" value="1">
<input type="hidden" name="details[finished]" value="0">
<input type="hidden" name="form_build_id" value="form-lTAac3ZcfZQw326ASR5RTNqFarLCeckzHNpLG4GMrUM">
<input type="hidden" name="form_token" value="HNN7VaYaXNlA-JOfUwBjI38NpTpqmlcRuGfbTQ7my1s">
<input type="hidden" name="form_id" value="webform_client_form_1538">
<input type="hidden" name="webform_ajax_wrapper_id" value="webform-ajax-wrapper-1538">
<div class="form-actions"><input class="webform-submit button-primary form-submit ajax-processed" type="submit" id="edit-webform-ajax-submit-1538" name="op" value="Рассчитать"></div></div></form>

onsubmit="yaCounter46051725.reachGoal('ras');return true;" - the goal does not work
I read the info somewhere, apparently it does not work, because of ajax. Help the SEO to figure out how to implement the goal triggering after submitting the form. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2018-05-26
@andead

Hang up sending not on the onsubmit of the form, but on the onmousedown of the button.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question