Skip to content

Commit 81cc234

Browse files
chore: remove some umami event properties
1 parent 036a730 commit 81cc234

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

src/widget.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Fitness First Widget
33
// =======================================
44

5-
const VERSION = "1.1.0";
5+
const VERSION = "1.1.1";
66

77
const fm = FileManager.local();
88
const CACHE_DIR = fm.joinPath(fm.documentsDirectory(), "fitnessfirst-widget-cache");
@@ -321,18 +321,16 @@ function getUmamiPayload(sessionId) {
321321
data: {
322322
widget_version: VERSION,
323323
device: {
324-
name: Device.name(),
325324
isUsingDarkApppearance: Device.isUsingDarkAppearance(),
326325
locale: Device.locale(),
327-
language: Device.language(),
328326
screen: `${screen.width}x${screen.height}`,
329-
operating_system: Device.systemName(),
330327
operating_system_version: Device.systemVersion(),
331-
model: Device.model(),
332-
brand: "Apple",
333328
},
334329
user: {
335-
club: SELECTED_CLUB
330+
club: {
331+
name: SELECTED_CLUB?.name,
332+
usage_id: SELECTED_CLUB?.usage_id
333+
}
336334
}
337335
}
338336
}

0 commit comments

Comments
 (0)