diff --git a/posthog/components/PostHog.tsx b/posthog/components/PostHog.tsx index 2c46f846f..12b28a1b9 100644 --- a/posthog/components/PostHog.tsx +++ b/posthog/components/PostHog.tsx @@ -27,7 +27,7 @@ const snippet = () => { // Flags and additional dimentions const props: Record = {}; const trackPageview = () => - globalThis.window.posthog?.capture("pageview", props); + globalThis.window.posthog?.capture("$pageview", props); // Attach pushState and popState listeners const originalPushState = history.pushState; if (originalPushState) { diff --git a/shopify/loaders/ProductListingPage.ts b/shopify/loaders/ProductListingPage.ts index 0997cee8d..6986070f8 100644 --- a/shopify/loaders/ProductListingPage.ts +++ b/shopify/loaders/ProductListingPage.ts @@ -217,9 +217,9 @@ export const cacheKey = (props: Props, req: Request): string | null => { startCursor, sort, }); - + url.searchParams.forEach((value, key) => { - if(!key.startsWith("filter.")) return; + if (!key.startsWith("filter.")) return; searchParams.append(key, value); }); diff --git a/vtex/loaders/product/extend.ts b/vtex/loaders/product/extend.ts index 1c201f30c..4fb47a50e 100644 --- a/vtex/loaders/product/extend.ts +++ b/vtex/loaders/product/extend.ts @@ -17,7 +17,6 @@ export interface Props { * @description Adds brand information to products, useful for Intelligent Search loaders. */ brands?: boolean; - products: Product[]; }