forked from organicmaps/organicmaps
[MAPSME-4368] [ios] Fixed common stats for HLA.
This commit is contained in:
parent
8617cfadc7
commit
dcb8d99376
2 changed files with 12 additions and 11 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue