Skip to content

Commit 36611c9

Browse files
committed
Update event to send widgets as a string and not as an array
1 parent bb4ad60 commit 36611c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
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.description]
238238
}
239239
}
240240

0 commit comments

Comments
 (0)