Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

remove shouldSkipSnapshot rule

Francis Cao42765249eebb
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<HeatmapSnapshotIframe | null> {
- 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 {