Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/map
diff options
context:
space:
mode:
authorMaxim Pimenov <m@maps.me>2016-02-03 18:12:38 +0300
committerMaxim Pimenov <m@maps.me>2016-02-03 18:14:25 +0300
commit110919fc04803ac0860b8a366506ec084fb9e4ca (patch)
tree035df7b200f8b7099c2eb817080ef01595b9828d /map
parent6d52e521bc87fede597d7d89d40a32f98d3af74d (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.cpp4
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: