diff options
author | Maxim Pimenov <m@maps.me> | 2016-02-03 18:12:38 +0300 |
---|---|---|
committer | Maxim Pimenov <m@maps.me> | 2016-02-03 18:14:25 +0300 |
commit | 110919fc04803ac0860b8a366506ec084fb9e4ca (patch) | |
tree | 035df7b200f8b7099c2eb817080ef01595b9828d /map | |
parent | 6d52e521bc87fede597d7d89d40a32f98d3af74d (diff) |
[search] Added an event that identifies which search result was chosen.
This commit introduces a new Alohalytics event key: "searchShowResult".
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 82b9259c96..4e4a0c48d1 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1082,6 +1082,10 @@ void Framework::ShowSearchResult(search::Result const & res) using namespace search; using namespace feature; + alohalytics::TStringMap stats = {{"pos", strings::to_string(res.GetPositionInResults())}, + {"result", DebugPrint(res)}}; + alohalytics::LogEvent("searchShowResult", stats); + switch (res.GetResultType()) { case Result::RESULT_FEATURE: |