{"action":"created","issue":{"url":"https://api.github.com/repos/ideals/Ideal-CMS/issues/457","repository_url":"https://api.github.com/repos/ideals/Ideal-CMS","labels_url":"https://api.github.com/repos/ideals/Ideal-CMS/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/ideals/Ideal-CMS/issues/457/comments","events_url":"https://api.github.com/repos/ideals/Ideal-CMS/issues/457/events","html_url":"https://github.com/ideals/Ideal-CMS/issues/457","id":230152129,"number":457,"title":"Ведение списка заказчиков на сайте (MicroCRM)","user":{"login":"ideals","id":3163039,"avatar_url":"https://avatars1.githubusercontent.com/u/3163039?v=3","gravatar_id":"","url":"https://api.github.com/users/ideals","html_url":"https://github.com/ideals","followers_url":"https://api.github.com/users/ideals/followers","following_url":"https://api.github.com/users/ideals/following{/other_user}","gists_url":"https://api.github.com/users/ideals/gists{/gist_id}","starred_url":"https://api.github.com/users/ideals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ideals/subscriptions","organizations_url":"https://api.github.com/users/ideals/orgs","repos_url":"https://api.github.com/users/ideals/repos","events_url":"https://api.github.com/users/ideals/events{/privacy}","received_events_url":"https://api.github.com/users/ideals/received_events","type":"User","site_admin":false},"labels":[{"id":52246142,"url":"https://api.github.com/repos/ideals/Ideal-CMS/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ideals/Ideal-CMS/milestones/7","html_url":"https://github.com/ideals/Ideal-CMS/milestone/7","labels_url":"https://api.github.com/repos/ideals/Ideal-CMS/milestones/7/labels","id":1891961,"number":7,"title":"4.0","description":"","creator":{"login":"ideals","id":3163039,"avatar_url":"https://avatars1.githubusercontent.com/u/3163039?v=3","gravatar_id":"","url":"https://api.github.com/users/ideals","html_url":"https://github.com/ideals","followers_url":"https://api.github.com/users/ideals/followers","following_url":"https://api.github.com/users/ideals/following{/other_user}","gists_url":"https://api.github.com/users/ideals/gists{/gist_id}","starred_url":"https://api.github.com/users/ideals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ideals/subscriptions","organizations_url":"https://api.github.com/users/ideals/orgs","repos_url":"https://api.github.com/users/ideals/repos","events_url":"https://api.github.com/users/ideals/events{/privacy}","received_events_url":"https://api.github.com/users/ideals/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":1,"state":"open","created_at":"2016-07-19T13:15:20Z","updated_at":"2017-07-09T05:59:32Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-05-20T12:56:48Z","updated_at":"2017-07-09T05:59:32Z","closed_at":"2017-07-09T05:59:32Z","body":"Задача\r\n---\r\n\r\nНеобходимо отслеживать повторные обращения от одного и того же лида (учитывать реальные заявки с сайта, игнорируя тестовые и учитывать, что один чел может заказать с разных устройств, с разных почтовых ящиков и телефонов).\r\n\r\nРешение\r\n---\r\n\r\nДля этого добавить таблицу i_ideal_structure_crm. В этой таблице будут храниться люди (в смысле их реквизиты), а каждый заказ должен быть привязан к опредёленной персоне.\r\n\r\nПри добавлении нового заказа система ищет, нет ли уже человека с таким Client ID, email или телефоном. Если такой человек есть, заказ привязывается к нему.\r\n\r\nClient ID берётся из Google Analytics.\r\n\r\nЕсли человека нет, то создаётся новый человек с указанными в заказе данными.\r\n\r\nУ менеджера должна быть возможность объединить несколько созданных людей. При объединении сливается список Client ID, телефонов, почт и заказов.\r\n\r\nВ списке людей создаётся тестовый человек, у которого телефон 00000000000 к нему будут относится все тестовые заказы.\r\n\r\nДалее нужно исправить систему отображения конверсии: после вкладки \"Общее кол-во\" ([см. скриншот](https://docs.google.com/document/d/12J9Kfoq8-Z7Ka63KJaICR1pVi_SzTLpSi7Ro8bblhLQ/edit)) добавить вкладку \"Кол-во лидов\" и там отображать аналогичные данные, но из одного лида брать только одну — первую заявку.\r\n\r\n\r\n\r\nА также нужно добавить чекбокс к фильтру — только новые лиды при нажатии на которую не учитываются заявки, отнесённые к тем лидам, по которым были заявки в предыдущих месяцах.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ideals/Ideal-CMS/issues/comments/313901098","html_url":"https://github.com/ideals/Ideal-CMS/issues/457#issuecomment-313901098","issue_url":"https://api.github.com/repos/ideals/Ideal-CMS/issues/457","id":313901098,"user":{"login":"ideals","id":3163039,"avatar_url":"https://avatars1.githubusercontent.com/u/3163039?v=3","gravatar_id":"","url":"https://api.github.com/users/ideals","html_url":"https://github.com/ideals","followers_url":"https://api.github.com/users/ideals/followers","following_url":"https://api.github.com/users/ideals/following{/other_user}","gists_url":"https://api.github.com/users/ideals/gists{/gist_id}","starred_url":"https://api.github.com/users/ideals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ideals/subscriptions","organizations_url":"https://api.github.com/users/ideals/orgs","repos_url":"https://api.github.com/users/ideals/repos","events_url":"https://api.github.com/users/ideals/events{/privacy}","received_events_url":"https://api.github.com/users/ideals/received_events","type":"User","site_admin":false},"created_at":"2017-07-09T05:59:32Z","updated_at":"2017-07-09T05:59:32Z","body":"Сделано"}}
{"actor":{"display_login":"ideals"}}