[iOSAddAddressManually] Added metrics to track user actions
This CLA adds user metrics to track taps on the 'Add' and 'Save' buttons within the manual address entry flow. Change-Id: I2b22b645c8d315e1300ce62055bc28f1014e9fb7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6427841 Reviewed-by: Tommy Martino <tmartino@chromium.org> Commit-Queue: Sourav Uttam Sinha <sinhasourav@google.com> Reviewed-by: Noémie St-Onge <noemies@google.com> Cr-Commit-Position: refs/heads/main@{#1442782}
This commit is contained in:
ios/chrome/browser
autofill
ui_bundled
address_editor
settings
ui_bundled
tools/metrics/actions
8
ios/chrome/browser/autofill/ui_bundled/address_editor/autofill_profile_edit_table_view_controller.mm
8
ios/chrome/browser/autofill/ui_bundled/address_editor/autofill_profile_edit_table_view_controller.mm
@@ -5,6 +5,8 @@
|
|||||||
#import "ios/chrome/browser/autofill/ui_bundled/address_editor/autofill_profile_edit_table_view_controller.h"
|
#import "ios/chrome/browser/autofill/ui_bundled/address_editor/autofill_profile_edit_table_view_controller.h"
|
||||||
|
|
||||||
#import "base/apple/foundation_util.h"
|
#import "base/apple/foundation_util.h"
|
||||||
|
#import "base/metrics/user_metrics.h"
|
||||||
|
#import "base/metrics/user_metrics_action.h"
|
||||||
#import "base/strings/sys_string_conversions.h"
|
#import "base/strings/sys_string_conversions.h"
|
||||||
#import "components/autofill/core/browser/data_model/addresses/autofill_profile.h"
|
#import "components/autofill/core/browser/data_model/addresses/autofill_profile.h"
|
||||||
#import "components/autofill/core/browser/field_types.h"
|
#import "components/autofill/core/browser/field_types.h"
|
||||||
@@ -503,6 +505,12 @@ const CGFloat kLineSpacingBetweenErrorAndFooter = 12.0f;
|
|||||||
|
|
||||||
- (void)didTapButton {
|
- (void)didTapButton {
|
||||||
CHECK(!_settingsView);
|
CHECK(!_settingsView);
|
||||||
|
if (_addManualAddress) {
|
||||||
|
base::RecordAction(
|
||||||
|
base::UserMetricsAction("AddAddressManually_AddressSaved"));
|
||||||
|
} else if (_hasSaveButton) {
|
||||||
|
base::RecordAction(base::UserMetricsAction("AddressInfobar_AddressSaved"));
|
||||||
|
}
|
||||||
[_delegate didSaveProfileFromModal];
|
[_delegate didSaveProfileFromModal];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -901,6 +901,8 @@ typedef NS_ENUM(NSInteger, ItemType) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
base::RecordAction(base::UserMetricsAction("AddAddressManually_Opened"));
|
||||||
|
|
||||||
autofill::AddressDataManager& addressDataManager =
|
autofill::AddressDataManager& addressDataManager =
|
||||||
_personalDataManager->address_data_manager();
|
_personalDataManager->address_data_manager();
|
||||||
|
|
||||||
|
@@ -2555,6 +2555,33 @@ should be able to be added at any place in this file.
|
|||||||
<description>Please enter the description of this user action.</description>
|
<description>Please enter the description of this user action.</description>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
|
<action name="AddAddressManually_AddressSaved">
|
||||||
|
<owner>sinhasourav@google.com</owner>
|
||||||
|
<owner>bling-transactions@google.com</owner>
|
||||||
|
<description>
|
||||||
|
Recorded when the user taps on "Save" button to save a new address
|
||||||
|
from scratch manually. iOS only.
|
||||||
|
</description>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action name="AddAddressManually_Opened">
|
||||||
|
<owner>sinhasourav@google.com</owner>
|
||||||
|
<owner>bling-transactions@google.com</owner>
|
||||||
|
<description>
|
||||||
|
Recorded when the user opens a surface for manually adding a new address.
|
||||||
|
iOS only.
|
||||||
|
</description>
|
||||||
|
</action>
|
||||||
|
|
||||||
|
<action name="AddressInfobar_AddressSaved">
|
||||||
|
<owner>sinhasourav@google.com</owner>
|
||||||
|
<owner>bling-transactions@google.com</owner>
|
||||||
|
<description>
|
||||||
|
Recorded when the user taps on "Save" button to save a new address
|
||||||
|
through an infobar. iOS only.
|
||||||
|
</description>
|
||||||
|
</action>
|
||||||
|
|
||||||
<action name="AddSupervisionDialog_AttemptedSignoutAfterEnrollment">
|
<action name="AddSupervisionDialog_AttemptedSignoutAfterEnrollment">
|
||||||
<owner>tobyhuang@chromium.org</owner>
|
<owner>tobyhuang@chromium.org</owner>
|
||||||
<owner>michaelpg@chromium.org</owner>
|
<owner>michaelpg@chromium.org</owner>
|
||||||
|
Reference in New Issue
Block a user