diff --git a/static/js/user_profile.js b/static/js/user_profile.js index b9e57e7..291abaf 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -541,7 +541,7 @@ function sendRoute(el, routeID = null){ // if (selected_owner_type[0].classList.contains('selected')){ // // }else{} - let owner_type_value = document.getElementById('hide_owner_type').value + let owner_type_value = document.getElementById('hide_owner_type').value let form = el.form let formData = new FormData(form); @@ -596,6 +596,18 @@ function sendRoute(el, routeID = null){ my_routes.classList.add('selected') middleWareJS() + if(data.owner_type === 'customer' && typeof ym === 'function' ){ + ym(97070898,'reachGoal','customer') + return true + } else if(data.owner_type === 'mover' && typeof ym === 'function'){ + ym(97070898,'reachGoal','mover') + return true + } + + + // + + }, error: function (data, exception){ document.querySelector(".info_profile").innerHTML = data.responseJSON.html; diff --git a/templates/blocks/b_footer.html b/templates/blocks/b_footer.html index 1a5da59..66f5dcb 100644 --- a/templates/blocks/b_footer.html +++ b/templates/blocks/b_footer.html @@ -64,7 +64,10 @@ {% if not user.is_authenticated %}
- {% trans "Регистрация" %} + {% trans "Регистрация" %} {% trans "Войти" %}
{% endif %} diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index d7c6527..df67331 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -106,6 +106,7 @@
{% trans "Регистрация" %}