Skip to content

Commit 10c8b7d

Browse files
authored
Merge pull request #7782 from woocommerce/issue/widget-analytics
2 parents bb4ad60 + a1cb7f2 commit 10c8b7d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

WooCommerce/Classes/Analytics/WooAnalytics.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

WooCommerce/Classes/Analytics/WooAnalyticsEvent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)