1.1.17 add YandexMetrika tag for create_routes, registration button in header/footer v2

This commit is contained in:
2024-06-21 15:41:19 +03:00
parent 2fc153843f
commit b6a0fcdf07

View File

@@ -596,10 +596,10 @@ function sendRoute(el, routeID = null){
my_routes.classList.add('selected') my_routes.classList.add('selected')
middleWareJS() middleWareJS()
if(data.owner_type === 'customer' && typeof ym === 'function' ){ if(owner_type_value === 'customer' && typeof ym === 'function' ){
ym(97070898,'reachGoal','customer') ym(97070898,'reachGoal','customer')
return true return true
} else if(data.owner_type === 'mover' && typeof ym === 'function'){ } else if(owner_type_value === 'mover' && typeof ym === 'function'){
ym(97070898,'reachGoal','mover') ym(97070898,'reachGoal','mover')
return true return true
} }