diff --git a/api/index.php b/api/index.php index 234fa80..ea253c9 100644 --- a/api/index.php +++ b/api/index.php @@ -2502,6 +2502,7 @@ switch($PARAM_1) "page_name" => $REQ['FORM_FIELD_PAGE_NAME'], "sale_type" => $REQ['FORM_FIELD_SALE_TYPE'], "inn" => $REQ['FORM_FIELD_INN'], + "clientID" => $REQ['FORM_FIELD_INN'], ]; if(!empty($REQ['FORM_FIELD_IS_IZT'])) { diff --git a/local/components/evolution/form.leasing.nomail/templates/.default/script.js b/local/components/evolution/form.leasing.nomail/templates/.default/script.js index 3fabcc0..67ae1aa 100644 --- a/local/components/evolution/form.leasing.nomail/templates/.default/script.js +++ b/local/components/evolution/form.leasing.nomail/templates/.default/script.js @@ -56,6 +56,13 @@ function form_leasing_request_submit() formData.append("FORM_FIELD_TERM", $("#FORM_FIELD_TERM").val() ? $("#FORM_FIELD_TERM").val() : ""); formData.append("FORM_FIELD_REDEMPTION", $("#FORM_FIELD_REDEMPTION").val() ? $("#FORM_FIELD_REDEMPTION").val() : ""); + try + { + formData.append("FORM_FIELD_YM_CLIENT_ID", Ya._metrika.getCounters()[0].id); + } + catch(e) + {} + grecaptcha.ready(function() { grecaptcha.execute($("meta[name=recaptcha_site_key]").attr("content"), { action: 'submit' }).then(function(token) diff --git a/local/components/evolution/form.leasing.used/templates/.default/script.js b/local/components/evolution/form.leasing.used/templates/.default/script.js index 5d5c6cd..3b45c62 100644 --- a/local/components/evolution/form.leasing.used/templates/.default/script.js +++ b/local/components/evolution/form.leasing.used/templates/.default/script.js @@ -58,6 +58,13 @@ function form_leasing_request_submit() formData.append("FORM_FIELD_REDEMPTION", $("#FORM_FIELD_REDEMPTION").val() ? $("#FORM_FIELD_REDEMPTION").val() : ""); formData.append("FORM_FIELD_IS_IZT", $("#FORM_FIELD_IS_IZT").val() !== "" ? $("#FORM_FIELD_IS_IZT").val() : ""); + try + { + formData.append("FORM_FIELD_YM_CLIENT_ID", Ya._metrika.getCounters()[0].id); + } + catch(e) + {} + grecaptcha.ready(function() { grecaptcha.execute($("meta[name=recaptcha_site_key]").attr("content"), { action: 'submit' }).then(function(token) diff --git a/local/components/evolution/form.leasing/templates/.default/script.js b/local/components/evolution/form.leasing/templates/.default/script.js index 3fabcc0..67ae1aa 100644 --- a/local/components/evolution/form.leasing/templates/.default/script.js +++ b/local/components/evolution/form.leasing/templates/.default/script.js @@ -56,6 +56,13 @@ function form_leasing_request_submit() formData.append("FORM_FIELD_TERM", $("#FORM_FIELD_TERM").val() ? $("#FORM_FIELD_TERM").val() : ""); formData.append("FORM_FIELD_REDEMPTION", $("#FORM_FIELD_REDEMPTION").val() ? $("#FORM_FIELD_REDEMPTION").val() : ""); + try + { + formData.append("FORM_FIELD_YM_CLIENT_ID", Ya._metrika.getCounters()[0].id); + } + catch(e) + {} + grecaptcha.ready(function() { grecaptcha.execute($("meta[name=recaptcha_site_key]").attr("content"), { action: 'submit' }).then(function(token)