File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed
packages/tracker/src/core Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments