[MAPSME-4368] [ios] Fixed common stats for HLA.

This commit is contained in:
Ilya Grechuhin 2017-08-02 12:28:11 +03:00 committed by Roman Kuznetsov
parent 8617cfadc7
commit dcb8d99376
2 changed files with 12 additions and 11 deletions

View file

@ -598,6 +598,16 @@ void logPointEvent(MWMRoutePoint * pt, NSString * eventType)
auto url = [NSURL URLWithString:data.localAdsURL];
if (!url)
return;
auto const & feature = data.featureId;
[Statistics logEvent:kStatPlacePageOwnershipButtonClick
withParameters:@{
@"mwm_name" : @(feature.GetMwmName().c_str()),
@"mwm_version" : @(feature.GetMwmVersion()),
@"feature_id" : @(feature.m_index)
}
atLocation:[MWMLocationManager lastLocation]];
[self.ownerViewController openUrl:url];
}

View file

@ -156,18 +156,9 @@
case MetainfoRows::Operator:
case MetainfoRows::OpeningHours:
case MetainfoRows::Address:
case MetainfoRows::Internet: break;
case MetainfoRows::Internet:
case MetainfoRows::LocalAdsCustomer:
case MetainfoRows::LocalAdsCandidate:
auto const & feature = data.featureId;
[Statistics logEvent:kStatPlacePageOwnershipButtonClick
withParameters:@{
@"mwm_name" : @(feature.GetMwmName().c_str()),
@"mwm_version" : @(feature.GetMwmVersion()),
@"feature_id" : @(feature.m_index)
}
atLocation:[MWMLocationManager lastLocation]];
break;
case MetainfoRows::LocalAdsCandidate: break;
}
}