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!

Remove unused code

Blue Mousee5e76d692903
diff --git a/web/app/hooks/useAnalyticsProxy.ts b/web/app/hooks/useAnalyticsProxy.ts
index d282dd738..2d6e16253 100644
--- a/web/app/hooks/useAnalyticsProxy.ts
+++ b/web/app/hooks/useAnalyticsProxy.ts
@@ -24,7 +24,6 @@ import type {
LiveVisitorInfo,
ProjectDataCustomEventsResponse,
UserFlowResponse,
- GSCKeywordsResponse,
GSCDashboardResponse,
RevenueStatus,
RevenueDataResponse,
@@ -808,38 +807,6 @@ export function useUserFlowProxy() {
return { fetchUserFlow, data, error, isLoading }
}
-export function useGSCKeywordsProxy() {
- const [data, setData] = useState<GSCKeywordsResponse | null>(null)
- const [error, setError] = useState<string | null>(null)
- const [isLoading, setIsLoading] = useState(false)
-
- const fetchKeywords = useCallback(
- async (projectId: string, params: ClientAnalyticsParams = {}) => {
- setIsLoading(true)
- setError(null)
-
- try {
- const result = await postAnalytics<GSCKeywordsResponse>({
- action: 'getGSCKeywords',
- projectId,
- params,
- })
- setData(result.data)
- setError(result.error)
- return result.data
- } catch (err) {
- setError(err instanceof Error ? err.message : 'Unknown error')
- return null
- } finally {
- setIsLoading(false)
- }
- },
- [],
- )
-
- return { fetchKeywords, data, error, isLoading }
-}
-
export function useGSCDashboardProxy() {
const [data, setData] = useState<GSCDashboardResponse | null>(null)
const [error, setError] = useState<string | null>(null)