Skip to content

Commit 9941585

Browse files
authored
fix: added platform to events request (#34)
1 parent cfb5246 commit 9941585

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/analytics/api/events.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Platform } from 'react-native';
12
import type { DetourEvent } from '../types';
23

34
const EVENT_API_URL = 'https://godetour.dev/api/analytics/event';
@@ -19,6 +20,7 @@ export const sendEvent = async (
1920
event_name: event.eventName,
2021
data: event.data,
2122
timestamp: new Date().toISOString(),
23+
platform: Platform.OS,
2224
}),
2325
});
2426

0 commit comments

Comments
 (0)