From 42765249eebb7f898e5b83b2ab724159049e1ed0 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Tue, 23 Jun 2026 15:10:27 -0700 Subject: [PATCH] remove shouldSkipSnapshot rule --- src/queries/sql/heatmap/getHeatmap.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/queries/sql/heatmap/getHeatmap.ts b/src/queries/sql/heatmap/getHeatmap.ts index f3283506a..2872b7c57 100644 --- a/src/queries/sql/heatmap/getHeatmap.ts +++ b/src/queries/sql/heatmap/getHeatmap.ts @@ -137,7 +137,7 @@ async function relationalQuery( { ...filterContext.queryParams, websiteId, eventType, startDate, endDate }, FUNCTION_NAME, ); - const pages = rawPages.filter(page => !shouldSkipSnapshot(page.urlPath)); + const pages = rawPages; if (!urlPath) { return { mode, pages, points: [], snapshot: null, scroll: emptyScroll() }; @@ -336,8 +336,7 @@ async function clickhouseQuery( urlPath: p.urlPath, count: Number(p.count), sessions: Number(p.sessions), - })) - .filter(page => !shouldSkipSnapshot(page.urlPath)); + })); if (!urlPath) { return { mode, pages, points: [], snapshot: null, scroll: emptyScroll() }; @@ -561,7 +560,7 @@ async function getIframeSnapshot({ pageW: number | null; pageH: number | null; }): Promise { - if (!urlPath || !viewportW || !pageW || !pageH || shouldSkipSnapshot(urlPath)) { + if (!urlPath || !viewportW || !pageW || !pageH) { return null; } @@ -623,11 +622,6 @@ function buildHeatmapPageUrl(domain: string | null | undefined, urlPath: string) } } -function shouldSkipSnapshot(urlPath: string) { - // Internal Umami app routes cannot be rendered from the tracked website domain. - return urlPath.startsWith('/teams/'); -} - function pickSnapshotViewport( points: HeatmapPoint[], ): { width: number; height: number; pageW: number; pageH: number } | null {