Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

fix: Keep getGSCDetails on the typed params contract

Blue Mouse0f0f9a998858
diff --git a/web/app/routes/api.analytics.ts b/web/app/routes/api.analytics.ts
index 48819b32a..e46a187cb 100644
--- a/web/app/routes/api.analytics.ts
+++ b/web/app/routes/api.analytics.ts
@@ -152,6 +152,8 @@ interface ProxyRequest {
resultFilter?: string
search?: string
profileType?: 'all' | 'anonymous' | 'identified'
+ page?: string
+ query?: string
}
}
@@ -819,8 +821,8 @@ export async function action({ request }: ActionFunctionArgs) {
to: formatDateForBackend(params.to),
timezone: params.timezone,
password: password || undefined,
- page: (body as any).page,
- query: (body as any).query,
+ page: params.page,
+ query: params.query,
})
return data<ProxyResponse<GSCDetailsResponse>>({
data: result.data,