File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
WooCommerce/Classes/Analytics Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,9 @@ private extension WooAnalytics {
218218
219219 /// Builds the necesary properties for the `application_opened` event.
220220 ///
221- func applicationOpenedProperties( _ configurationResult: Result < [ WidgetInfo ] , Error > ) -> [ String : [ String ] ] {
221+ func applicationOpenedProperties( _ configurationResult: Result < [ WidgetInfo ] , Error > ) -> [ String : String ] {
222222 guard let installedWidgets = try ? configurationResult. get ( ) else {
223- return [ " widgets " : [ ] ]
223+ return [ " widgets " : " " ]
224224 }
225225
226226 // Translate the widget kind into a name recognized by tracks.
@@ -234,7 +234,7 @@ private extension WooAnalytics {
234234 }
235235 }
236236
237- return [ " widgets " : widgetAnalyticNames]
237+ return [ " widgets " : widgetAnalyticNames. joined ( separator : " , " ) ]
238238 }
239239}
240240
Original file line number Diff line number Diff line change @@ -1614,7 +1614,7 @@ extension WooAnalyticsEvent {
16141614 }
16151615
16161616 enum Name : String {
1617- case todayStats = " today_stats "
1617+ case todayStats = " today-stats "
16181618 }
16191619
16201620 /// Event when a widget is tapped and opens the app.
You can’t perform that action at this time.
0 commit comments