From 9053fb9cac1ada9eb3e4fa0842b44abd6b4f54e3 Mon Sep 17 00:00:00 2001 From: Paul D'Ambra Date: Thu, 28 Nov 2024 13:24:06 +0000 Subject: [PATCH] fix --- cypress/e2e/session-recording.cy.ts | 1 + src/extensions/replay/sessionrecording.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/session-recording.cy.ts b/cypress/e2e/session-recording.cy.ts index 56f1134b4..0875c32dd 100644 --- a/cypress/e2e/session-recording.cy.ts +++ b/cypress/e2e/session-recording.cy.ts @@ -523,6 +523,7 @@ describe('Session recording', () => { capturedSnapshot['properties']['$snapshot_data'][3], capturedSnapshot['properties']['$snapshot_data'][4], ]) + expectPageViewCustomEvent(customEvents[0]) expectPostHogConfigCustomEvent(customEvents[1]) expectSessionOptionsCustomEvent(customEvents[2]) diff --git a/src/extensions/replay/sessionrecording.ts b/src/extensions/replay/sessionrecording.ts index 6ae0fc8a9..ce5f9d067 100644 --- a/src/extensions/replay/sessionrecording.ts +++ b/src/extensions/replay/sessionrecording.ts @@ -509,7 +509,7 @@ export class SessionRecording { const href = event?.properties.$current_url ? this._maskUrl(event?.properties.$current_url) : '' - if (!href || this.status !== 'active') { + if (!href) { return } this._tryAddCustomEvent('$pageview', { href })