Skip to content

Commit 9ce91fe

Browse files
committed
cleanup: remove connection info
1 parent 6fa03be commit 9ce91fe

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

packages/tracker/src/core/tracker.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -250,19 +250,6 @@ export class BaseTracker {
250250
return pathname;
251251
}
252252

253-
protected getConnectionInfo() {
254-
const connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
255-
if (!connection) {
256-
return {};
257-
}
258-
259-
return {
260-
connection_type: connection.effectiveType || connection.type || undefined,
261-
rtt: connection.rtt || undefined,
262-
downlink: connection.downlink || undefined,
263-
};
264-
}
265-
266253
protected getUtmParams() {
267254
if (this.isServer()) {
268255
return {};
@@ -283,7 +270,6 @@ export class BaseTracker {
283270
}
284271

285272
const utmParams = this.getUtmParams();
286-
const connectionInfo = this.getConnectionInfo();
287273

288274
let width: number | undefined = window.innerWidth;
289275
let height: number | undefined = window.innerHeight;
@@ -327,9 +313,6 @@ export class BaseTracker {
327313
viewport_size,
328314
timezone,
329315
language: navigator.language,
330-
connection_type: connectionInfo.connection_type,
331-
rtt: connectionInfo.rtt,
332-
downlink: connectionInfo.downlink,
333316
...utmParams,
334317
};
335318
}

packages/tracker/src/core/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ export type EventContext = {
4646
viewport_size?: string;
4747
timezone?: string;
4848
language: string;
49-
connection_type?: string;
50-
rtt?: number;
51-
downlink?: number;
5249
utm_source?: string;
5350
utm_medium?: string;
5451
utm_campaign?: string;

0 commit comments

Comments
 (0)