1.1.15 add YandexMetrika tag for feedback form v4
This commit is contained in:
@@ -21,7 +21,15 @@ function SendRegistrationForm(el){
|
||||
window.sessionStorage.removeItem('mailingSubscribeRequired')
|
||||
window.sessionStorage.removeItem('email')
|
||||
|
||||
ym(97070898,'reachGoal','Registration')
|
||||
|
||||
if(typeof ym === 'function'){
|
||||
ym(97070898,'reachGoal','Registration')
|
||||
return true;
|
||||
}else {
|
||||
console.log('Скрипт Яндекс.Метрики не найден. Статистика не будет отправлена.');
|
||||
}
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
document.querySelector(".register").innerHTML = data.responseJSON.html
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="button_register">
|
||||
<button id="registration" onclick="SendRegistrationForm(this)"> {% translate "Зарегистрироваться" %} </button>
|
||||
<button type="submit" id="registration" onclick="SendRegistrationForm(this)"> {% translate "Зарегистрироваться" %} </button>
|
||||
<div class="info_text_wrapper">
|
||||
<div class="info_text">{% trans 'На Вашу почту отправлено письмо для подтверждения регистрации.' %}</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user