| Index: components/payments/core/journey_logger.cc
|
| diff --git a/components/payments/core/journey_logger.cc b/components/payments/core/journey_logger.cc
|
| index aeae9aa0652bf7083c6e76c8c5f482a4c06a61d4..953e307dd2d572357c16eb0c691bc31fc18ab000 100644
|
| --- a/components/payments/core/journey_logger.cc
|
| +++ b/components/payments/core/journey_logger.cc
|
| @@ -116,6 +116,8 @@ void JourneyLogger::RecordJourneyStatsHistograms(
|
| DCHECK(!has_recorded_);
|
| has_recorded_ = true;
|
|
|
| + RecordCheckoutFlowMetrics();
|
| +
|
| RecordSectionSpecificStats(completion_status);
|
|
|
| // Record the CanMakePayment metrics based on whether the transaction was
|
| @@ -125,6 +127,23 @@ void JourneyLogger::RecordJourneyStatsHistograms(
|
| RecordUrlKeyedMetrics(completion_status);
|
| }
|
|
|
| +void JourneyLogger::RecordCheckoutFlowMetrics() {
|
| + UMA_HISTOGRAM_BOOLEAN("PaymentRequest.CheckoutFunnel.Initiated", true);
|
| +
|
| + if (events_ & EVENT_SHOWN)
|
| + UMA_HISTOGRAM_BOOLEAN("PaymentRequest.CheckoutFunnel.Shown", true);
|
| +
|
| + if (events_ & EVENT_PAY_CLICKED)
|
| + UMA_HISTOGRAM_BOOLEAN("PaymentRequest.CheckoutFunnel.PayClicked", true);
|
| +
|
| + if (events_ & EVENT_RECEIVED_INSTRUMENT_DETAILS)
|
| + UMA_HISTOGRAM_BOOLEAN(
|
| + "PaymentRequest.CheckoutFunnel.ReceivedInstrumentDetails", true);
|
| +
|
| + if (events_ & EVENT_SKIPPED_SHOW)
|
| + UMA_HISTOGRAM_BOOLEAN("PaymentRequest.CheckoutFunnel.SkippedShow", true);
|
| +}
|
| +
|
| void JourneyLogger::RecordSectionSpecificStats(
|
| CompletionStatus completion_status) {
|
| // Record whether the user had suggestions for each requested information.
|
|
|