You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/features/soft_navigations/aggregate/initial-page-load-interaction.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,8 @@ export class InitialPageLoadInteraction extends Interaction {
14
14
super(agentRef,IPL_TRIGGER_NAME,0,null)
15
15
this.queueTime=agentRef.info.queueTime
16
16
this.appTime=agentRef.info.applicationTime
17
-
this.oldURL=document.referrer
17
+
/** @type {string|undefined} we assign as undefined if no referrer value is available so that URL grouping is not applied to an empty string at ingest */
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
34
+
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
62
+
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
90
+
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
118
+
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
146
+
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
35
+
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
62
+
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
89
+
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
116
+
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
142
+
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
191
+
if(browserMatch(notIOS))expect(interactionEvents[0].oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual(documentReferrer)// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
239
+
if(browserMatch(notIOS))expect(ipl.oldURL).toEqual('')// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
...(browserMatch(notIOS) ? {oldURL: referrer} : {}),// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
61
+
...(browserMatch(notIOS) ? {oldURL: ''} : {}),// ios on lambdatest appears to return the wrong value for referrer when using browser.execute, which breaks this test condition. Confirmed referrer behavior works in real env
0 commit comments