From 0f7ca8966f3dfc513db282f2f3c684680510e27c Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 19 Mar 2024 13:57:17 +0000 Subject: [PATCH] alex/simplify-iframe: logging --- apps/dotcom/src/components/IFrameProtector.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/dotcom/src/components/IFrameProtector.tsx b/apps/dotcom/src/components/IFrameProtector.tsx index 5db47a367..6a3add92a 100644 --- a/apps/dotcom/src/components/IFrameProtector.tsx +++ b/apps/dotcom/src/components/IFrameProtector.tsx @@ -80,10 +80,13 @@ export function IFrameProtector({ const url = useUrl() useEffect(() => { - console.log({ embeddedState, isInIframe: isInIframe(), parentOrigin: getParentOrigin() }) switch (embeddedState) { case 'iframe-not-allowed': - trackAnalyticsEvent('iframe_not_allowed', { slug, context }) + trackAnalyticsEvent('iframe_not_allowed', { + slug, + context, + parentOrigin: getParentOrigin(), + }) break case 'iframe-ok': trackAnalyticsEvent('connect_to_room_in_iframe', {