File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ public enum WooAnalyticsStat: String {
156156 case orderStatusChangeSuccess = " order_status_change_success "
157157 case orderStatusChangeFailed = " order_status_change_failed "
158158 case orderStatusChangeUndo = " order_status_change_undo "
159+ case orderTrackingLoaded = " order_tracking_loaded "
159160
160161 // Push Notifications Events
161162 //
Original file line number Diff line number Diff line change @@ -536,13 +536,16 @@ private extension OrderDetailsViewController {
536536 }
537537
538538 func syncTracking( onCompletion: ( ( Error ? ) -> Void ) ? = nil ) {
539+ let orderID = viewModel. order. orderID
539540 let action = ShipmentAction . synchronizeShipmentTrackingData ( siteID: viewModel. order. siteID,
540- orderID: viewModel . order . orderID) { error in
541+ orderID: orderID) { error in
541542 if let error = error {
542543 DDLogError ( " ⛔️ Error synchronizing tracking: \( error. localizedDescription) " )
543544 onCompletion ? ( error)
544545 return
545546 }
547+
548+ WooAnalytics . shared. track ( . orderTrackingLoaded, withProperties: [ " id " : orderID] )
546549 onCompletion ? ( nil )
547550 }
548551
You can’t perform that action at this time.
0 commit comments