{
    "metrics": [{
        "name": "impressions",
        "title": "Показы",
        "info": "Количество показов рекламных объявлений",
        "group": "visitsAndConversions",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 98,
        "type": "integer",
        "formula": "{impressions} ? {impressions} : 0"
    }, {
        "name": "ctr",
        "title": "CTR",
        "info": "Показатель кликабельности объявлений\nВизиты \/ Показы * 100%",
        "group": "visitsAndConversions",
        "is_has_attribution_model": false,
        "is_absolute": false,
        "order": 99,
        "type": "percent",
        "formula": "{impressions} ? (100 * {visits} \/ {impressions}) : 0"
    }, {
        "name": "visits",
        "title": "Визиты",
        "info": "Количество посещений сайта с уникальным рекламным источником",
        "group": "visitsAndConversions",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 100,
        "type": "integer",
        "formula": "{visits} ? {visits} : 0"
    }, {
        "name": "conversion_visits_to_leads",
        "title": "Конверсия в заявки",
        "info": "Доля заявок от общего числа визитов\nЗаявки \/ Визиты * 100%",
        "group": "visitsAndConversions",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 150,
        "type": "percent",
        "formula": "{visits} ? (100*{leads}\/{visits}) : 0"
    }, {
        "name": "leads",
        "title": "Заявки",
        "info": "Заявки (лиды) — это любые обращения, поступившие в ваш бизнес. Например: отправленные формы на сайте, звонки, диалоги онлайн консультантов и т.п.",
        "group": "orders",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 200,
        "type": "integer",
        "formula": "{leads} ? {leads} : 0"
    }, {
        "name": "conversion_leads_to_sales",
        "title": "Конверсия в продажи",
        "info": "Доля продаж от общего числа заявок\nПродажи \/ Заявки * 100%",
        "group": "visitsAndConversions",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 300,
        "type": "percent",
        "formula": "{leads} ? (100*{sales}\/{leads}) : 0"
    }, {
        "name": "sales",
        "title": "Продажи",
        "info": "Заявки со статусом «Оплаченные»",
        "group": "orders",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 400,
        "type": "integer",
        "formula": "{sales} ? {sales} : 0"
    }, {
        "name": "leads_in_progress",
        "title": "Потенциальные продажи",
        "info": "Заявки со статусом «В работе»",
        "group": "orders",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 2100,
        "type": "integer",
        "formula": "{leads_in_progress} ? {leads_in_progress} : 0"
    }, {
        "name": "conversion_visits_to_sales",
        "title": "Абсолютная конверсия",
        "info": "Доля продаж от общего числа визитов\nПродажи \/ Визиты * 100%",
        "group": "visitsAndConversions",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 600,
        "type": "percent",
        "formula": "{visits} ? (100*{sales}\/{visits}) : 0"
    }, {
        "name": "potential_sales",
        "title": "Прогнозируемые продажи",
        "info": "Заявки со статусами «Оплаченные» и «В работе»",
        "group": "orders",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 2600,
        "type": "integer",
        "formula": "{sales}+{leads_in_progress}"
    }, {
        "name": "canceled_leads",
        "title": "Отмененные сделки",
        "info": "Заявки со статусом «Отменённые»",
        "group": "orders",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 2300,
        "type": "integer",
        "formula": "{leads}-{leads_in_progress}-{sales}"
    }, {
        "name": "revenue_in_progress",
        "title": "Потенциальная выручка",
        "info": "Потенциальная выручка от заявок со статусом «В работе»",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 2200,
        "type": "money",
        "formula": "{revenue_in_progress}\n                  ? {revenue_in_progress}\n                  : ({sales} ? {revenue}*{leads_in_progress}\/{sales} : 0)"
    }, {
        "name": "revenue",
        "title": "Выручка",
        "info": "Выручка по заявкам со статусами «Оплаченные»",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 700,
        "type": "money",
        "formula": "{revenue} ? {revenue} : 0"
    }, {
        "name": "potential_revenue",
        "title": "Прогнозируемая выручка",
        "info": "Выручка по заявкам со статусами «Оплаченные» и в «В работе»",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 2700,
        "type": "money",
        "formula": "({revenue}?{revenue}:0)+({revenue_in_progress}?{revenue_in_progress}:({sales}?{revenue}*{leads_in_progress}\/{sales}:0))"
    }, {
        "name": "revenue_canceled",
        "title": "Выручка отмененных заявок",
        "info": "Выручка по заявкам со статусами «Отмененные»",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 2750,
        "type": "money",
        "formula": "{revenue_canceled} ? {revenue_canceled} : 0"
    }, {
        "name": "net_cost",
        "title": "Себестоимость",
        "info": "Себестоимость заявки можно установить в разделе «Настройки» или импортировать из CRM",
        "group": "cost",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 1000,
        "type": "money",
        "formula": "{net_cost}\n                    ? {net_cost}\n                    : ( {revenue} * (1 - ({$profitFactor} ? {$profitFactor} : 1)) )"
    }, {
        "name": "profit",
        "title": "Прибыль",
        "info": "Разница между Выручкой и Себестоимостью\nВыручка - Себестомость",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 1100,
        "type": "money",
        "formula": "{net_cost}\n                    ? ( {revenue} - {net_cost} )\n                    : ( {revenue} * {$profitFactor} )"
    }, {
        "name": "potential_profit",
        "title": "Прогнозируемая прибыль",
        "info": "Максимально возможная прибыль по заявкам со статусами «Оплаченные» и «В работе»",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 2800,
        "type": "money",
        "formula": "{$isHasCost}\n                    ? ( ({revenue} ? {revenue} : 0)\n                        + ({revenue_in_progress}\n                            ? {revenue_in_progress}\n                            : ( {sales} ? {sales} * {leads_in_progress} \/ {sales} : 0 ))\n                        - {net_cost} )\n                    : ( ( ({revenue} ? {revenue} : 0)\n                        + ({revenue_in_progress}\n                            ? {revenue_in_progress}\n                            : ( {sales} ? {revenue} * {leads_in_progress} \/ {sales} : 0 )) )\n                        * {$profitFactor} )"
    }, {
        "name": "average_sale",
        "title": "Средний чек",
        "info": "Средняя сумма продажи\nВыручка \/ Продажи",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 800,
        "type": "money",
        "formula": "{sales}?{revenue}\/{sales}:0"
    }, {
        "name": "potential_average_sale",
        "title": "Прогнозируемый средний чек",
        "info": "Средняя сумма продажи с учётом потенциальных продаж\nПрогнозируемая выручка \/ Прогнозируемые продажи",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 2900,
        "type": "money",
        "formula": "({leads_in_progress}+{sales})\n                    ?({revenue}+({revenue_in_progress}?{revenue_in_progress}:({sales}?{revenue}*{leads_in_progress}\/{sales}:0)))\/({leads_in_progress}+{sales})\n                    :0"
    }, {
        "name": "average_profit",
        "title": "Средняя прибыль",
        "info": "Средняя прибыль от одной продажи\nПрибыль \/ Продажи",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 900,
        "type": "money",
        "formula": "{sales}?(({net_cost}?({revenue}-{net_cost}):({revenue}*{$profitFactor}))\/{sales}):0"
    }, {
        "name": "marketing_cost",
        "title": "Расходы",
        "info": "Маркетинговые расходы",
        "group": "cost",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 1300,
        "type": "money",
        "formula": "{marketing_cost} ? {marketing_cost} : 0"
    }, {
        "name": "cpo",
        "title": "CPO",
        "info": "Средняя стоимость привлечения оплаченной заявки\nРасходы \/ Продажи",
        "group": "cost",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 1900,
        "type": "money",
        "formula": "{marketing_cost} ? ({sales}?{marketing_cost}\/{sales}:0) : 0"
    }, {
        "name": "roi",
        "title": "ROI",
        "info": "Возврат инвестиций\n(Прибыль - Расходы) \/ Расходы * 100%",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 1400,
        "type": "percent",
        "formula": "{marketing_cost} ? (100*(({net_cost} ? ({revenue}-{net_cost}) : ({revenue}*{$profitFactor}))-{marketing_cost})\/{marketing_cost}) : 0"
    }, {
        "name": "romi",
        "title": "ROMI",
        "info": "Возврат инвестиций без учёта себестоимости\n(Выручка - Расходы) \/ Расходы * 100%",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 1500,
        "type": "percent",
        "formula": "{marketing_cost} ? (100 * ({revenue} - {marketing_cost})\/{marketing_cost}) : 0"
    }, {
        "name": "potential_roi",
        "title": "Прогнозируемый ROI",
        "info": "Возврат инвестиций с учётом заявок со статусами «Оплаченные» и «В работе»\n(Прогнозируемая прибыль - Расходы) \/ Расходы * 100%",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 2500,
        "type": "percent",
        "formula": "{marketing_cost}\n                    ? (100*(\n                        ({net_cost}\n                            ? ({revenue}+({revenue_in_progress}?{revenue_in_progress}:({sales}?{revenue}*{leads_in_progress}\/{sales}:0))-{net_cost})\n                            : (({revenue}+({revenue_in_progress}?{revenue_in_progress}:({sales}?{revenue}*{leads_in_progress}\/{sales}:0)))*{$profitFactor}))-{marketing_cost})\n                        \/{marketing_cost})\n                    : 0"
    }, {
        "name": "cpc",
        "title": "CPC",
        "info": "Средняя стоимость визита\nРасходы \/ Визиты",
        "group": "cost",
        "is_has_attribution_model": false,
        "is_absolute": false,
        "order": 1700,
        "type": "money",
        "formula": "{visits} ? {marketing_cost}\/{visits} : 0"
    }, {
        "name": "cpl",
        "title": "CPL",
        "info": "Средняя стоимость заявки\nРасходы \/ Заявки",
        "group": "cost",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 1800,
        "type": "money",
        "formula": "{leads} ? {marketing_cost}\/{leads} : 0"
    }, {
        "name": "net_profit",
        "title": "Чистая прибыль",
        "info": "Разница между Прибылью и Расходами\nПрибыль - Расходы",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": true,
        "order": 1200,
        "type": "money",
        "formula": "({net_cost}\n                    ? ( {revenue} - {net_cost} )\n                    : ( {revenue} * {$profitFactor}) ) - {marketing_cost}"
    }, {
        "name": "clients",
        "title": "Клиенты",
        "info": "Количество клиентов",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 3000,
        "type": "integer",
        "formula": "{clients} ? {clients} : 0"
    }, {
        "name": "repeated_leads",
        "title": "Повторные заявки",
        "info": "Количество повторных заявок\nЗаявки - Клиенты",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 3200,
        "type": "integer",
        "formula": "{clients} ? ({leads} - {clients}) : 0"
    }, {
        "name": "repeated_leads_rate",
        "title": "Повторные заявки, %",
        "info": "Доля повторных заявок\nПовторные заявки \/ Заявки * 100%",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": false,
        "order": 3300,
        "type": "percent",
        "formula": "({clients} && {leads}) ? (({leads} - {clients}) * 100 \/ {leads}) : 0"
    }, {
        "name": "cac",
        "title": "CAC",
        "info": "Средняя стоимость привлечения оплатившего клиента\nРасходы \/ Оплатившие клиенты",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": false,
        "order": 3600,
        "type": "money",
        "formula": "{paid_clients} ? ({marketing_cost} \/ {paid_clients}) : 0"
    }, {
        "name": "ltv",
        "title": "LTV",
        "info": "Средняя прибыль от плативших клиентов\nПрибыль \/ Оплатившие клиенты",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": false,
        "order": 3700,
        "type": "money",
        "formula": "{paid_clients} ? (\n                    ({net_cost}\n                        ? ( {revenue} - {net_cost} )\n                        : ( {revenue} * {$profitFactor} ))\n                    \/ {paid_clients}) : 0"
    }, {
        "name": "paid_clients",
        "title": "Оплатившие клиенты",
        "info": "Учитываются уникальные клиенты в рамках календарного месяца. Если отчет строится за несколько месяцев, один и тот же клиент будет учтен несколько раз",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 3100,
        "type": "integer",
        "formula": "{paid_clients} ? {paid_clients} : 0"
    }, {
        "name": "repeated_sales",
        "title": "Повторные продажи",
        "info": "Количество повторных продаж\nПродажи - Оплатившие клиенты",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 3400,
        "type": "integer",
        "formula": "{paid_clients} ? ({sales} - {paid_clients}) : 0"
    }, {
        "name": "repeated_sales_rate",
        "title": "Повторные продажи, %",
        "info": "Доля повторных продаж\nПовторные продажи \/ Продажи * 100%",
        "group": "client",
        "is_has_attribution_model": false,
        "is_absolute": false,
        "order": 3500,
        "type": "percent",
        "formula": "({paid_clients} && {sales}) ? (({sales} - {paid_clients}) * 100 \/ {sales}) : 0"
    }, {
        "name": "marketing_cost_rate",
        "title": "ДРР, %",
        "info": "Доля рекламного расхода в прибыли\nРасходы \/ Прибыль * 100%",
        "group": "cost",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 1600,
        "type": "percent",
        "formula": "{net_cost}\n                    ? (({revenue} - {net_cost}) !== 0\n                        ? {marketing_cost} \/ ({revenue} - {net_cost}) * 100\n                        : 0)\n                    : ({revenue}\n                        ? {marketing_cost} \/ ({revenue} * {$profitFactor}) * 100\n                        : 0)"
    }, {
        "name": "potential_cpo",
        "title": "Прогнозируемый CPO",
        "info": "Средняя стоимость привлечения заявок со статусами «Оплаченные» и «В работе»\nРасходы \/ Прогнозируемые продажи",
        "group": "cost",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 2400,
        "type": "money",
        "formula": "{marketing_cost} && ({sales} || {leads_in_progress})\n                    ? ({marketing_cost}) \/ ({sales}+{leads_in_progress})\n                    : 0"
    }, {
        "name": "marginality_rate",
        "title": "Маржинальность, %",
        "info": "Доля себестоимости от прибыли\nПрибыль \/ Себестоимость * 100%",
        "group": "profit",
        "is_has_attribution_model": true,
        "is_absolute": false,
        "order": 2000,
        "type": "percent",
        "formula": "{net_cost}\n                    ? ((({revenue} - {net_cost}) \/ {net_cost}) * 100)\n                    : 0"
    }, {
        "name": "event_meta_1",
        "title": "test",
        "info": "Событие test",
        "group": "events",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 3800,
        "type": "integer",
        "formula": "{event_meta_1} ? {event_meta_1} : 0"
    }, {
        "name": "event_meta_unique_1",
        "title": "test (пользователи)",
        "info": "Количество пользователей, вызвавших событие test",
        "group": "events",
        "is_has_attribution_model": false,
        "is_absolute": true,
        "order": 3900,
        "type": "integer",
        "formula": "{event_meta_unique_1} ? {event_meta_unique_1} : 0"
    }],
    "status": "success"
}