1.1.15 add YandexMetrika tag for feedback form v4

This commit is contained in:
2024-06-21 13:48:37 +03:00
parent 96c0111428
commit 729f03ca47
2 changed files with 10 additions and 2 deletions

View File

@@ -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