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
|
||||
|
||||
Reference in New Issue
Block a user