remove shouldSkipSnapshot rule
This commit is contained in:
@@ -137,7 +137,7 @@ async function relationalQuery(
|
|||||||
{ ...filterContext.queryParams, websiteId, eventType, startDate, endDate },
|
{ ...filterContext.queryParams, websiteId, eventType, startDate, endDate },
|
||||||
FUNCTION_NAME,
|
FUNCTION_NAME,
|
||||||
);
|
);
|
||||||
const pages = rawPages.filter(page => !shouldSkipSnapshot(page.urlPath));
|
const pages = rawPages;
|
||||||
|
|
||||||
if (!urlPath) {
|
if (!urlPath) {
|
||||||
return { mode, pages, points: [], snapshot: null, scroll: emptyScroll() };
|
return { mode, pages, points: [], snapshot: null, scroll: emptyScroll() };
|
||||||
@@ -336,8 +336,7 @@ async function clickhouseQuery(
|
|||||||
urlPath: p.urlPath,
|
urlPath: p.urlPath,
|
||||||
count: Number(p.count),
|
count: Number(p.count),
|
||||||
sessions: Number(p.sessions),
|
sessions: Number(p.sessions),
|
||||||
}))
|
}));
|
||||||
.filter(page => !shouldSkipSnapshot(page.urlPath));
|
|
||||||
|
|
||||||
if (!urlPath) {
|
if (!urlPath) {
|
||||||
return { mode, pages, points: [], snapshot: null, scroll: emptyScroll() };
|
return { mode, pages, points: [], snapshot: null, scroll: emptyScroll() };
|
||||||
@@ -561,7 +560,7 @@ async function getIframeSnapshot({
|
|||||||
pageW: number | null;
|
pageW: number | null;
|
||||||
pageH: number | null;
|
pageH: number | null;
|
||||||
}): Promise<HeatmapSnapshotIframe | null> {
|
}): Promise<HeatmapSnapshotIframe | null> {
|
||||||
if (!urlPath || !viewportW || !pageW || !pageH || shouldSkipSnapshot(urlPath)) {
|
if (!urlPath || !viewportW || !pageW || !pageH) {
|
||||||
return null;
|
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(
|
function pickSnapshotViewport(
|
||||||
points: HeatmapPoint[],
|
points: HeatmapPoint[],
|
||||||
): { width: number; height: number; pageW: number; pageH: number } | null {
|
): { width: number; height: number; pageW: number; pageH: number } | null {
|
||||||
|
|||||||
Reference in New Issue
Block a user