diff --git a/map/search_mark.cpp b/map/search_mark.cpp index d146ae27b9..8dc73970ef 100644 --- a/map/search_mark.cpp +++ b/map/search_mark.cpp @@ -19,6 +19,8 @@ #include #include +#include "3party/Alohalytics/src/alohalytics.h" + namespace { enum class SearchMarkType @@ -715,7 +717,14 @@ void SearchMarks::OnActivate(FeatureID const & featureId) if (unavailableIt != m_unavailable.cend()) { mark->SetAvailable(false); - mark->SetReason(platform::GetLocalizedString(unavailableIt->second)); + + auto const & reasonKey = unavailableIt->second; + + if (!reasonKey.empty()) + { + mark->SetReason(platform::GetLocalizedString(reasonKey)); + alohalytics::Stats::Instance().LogEvent("Search_Map_Notification", {{"message", reasonKey}}); + } } }); }