π 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Remove comments
Blue Mouse1ed651e84ec2
diff --git a/backend/apps/cloud/src/project/gsc.service.ts b/backend/apps/cloud/src/project/gsc.service.tsindex a2128406b..bc04531f1 100644--- a/backend/apps/cloud/src/project/gsc.service.ts+++ b/backend/apps/cloud/src/project/gsc.service.ts@@ -350,10 +350,6 @@ export class GSCService {} as any)}- // ---------------------------------------------------------------------------- // Filter parsing with schema validation + country code normalization- // ----------------------------------------------------------------------------private parseFilters(filtersStr?: string) {if (!filtersStr) return undefined@@ -401,7 +397,6 @@ export class GSCService {dimension = 'query'} else if (column === 'country' || column === 'cc') {dimension = 'country'- // Normalize alpha-2 β alpha-3 for GSCif (expression.length === 2) {const alpha3 = countries.alpha2ToAlpha3(expression.toUpperCase())if (!alpha3) continue@@ -469,10 +464,6 @@ export class GSCService {)}- // ---------------------------------------------------------------------------- // Brand keywords- // ----------------------------------------------------------------------------private async getProjectBrandKeywords(pid: string): Promise<string[]> {const project = await this.projectService.findOne({where: { id: pid },@@ -511,10 +502,6 @@ export class GSCService {return Array.from(keywords)}- // ---------------------------------------------------------------------------- // Generic GSC query helper (eliminates duplication across query methods)- // ----------------------------------------------------------------------------private async queryGSC(ctx: GSCContext,from: string,@@ -551,10 +538,6 @@ export class GSCService {return Math.max(0, offset || 0)}- // ---------------------------------------------------------------------------- // Public query methods- // ----------------------------------------------------------------------------async getKeywords(pid: string,from: string,@@ -870,10 +853,6 @@ export class GSCService {}}- // ---------------------------------------------------------------------------- // Dashboard orchestrator β fetches GSC context once, passes to all sub-queries- // ----------------------------------------------------------------------------async getDashboard(pid: string,from: string,diff --git a/web/app/api/api.server.ts b/web/app/api/api.server.tsindex 9ab3bac82..cbffee718 100644--- a/web/app/api/api.server.ts+++ b/web/app/api/api.server.ts@@ -2406,10 +2406,6 @@ export async function getGSCKeywordsServer()}-// ============================================================================-// MARK: GSC Dashboard API-// ============================================================================-interface GSCDateSeriesEntry {date: stringclicks: number@@ -2511,10 +2507,6 @@ export async function getGSCDashboardServer()}-// ============================================================================-// MARK: GSC Details API (Keyword-to-Page mapping)-// ============================================================================-export interface GSCDetailsResponse {type: 'queries' | 'pages' | 'none'data: Array<{diff --git a/web/app/pages/Project/tabs/SEO/seo-chart-options.ts b/web/app/pages/Project/tabs/SEO/seo-chart-options.tsindex fe0dfc1f7..25b45d598 100644--- a/web/app/pages/Project/tabs/SEO/seo-chart-options.ts+++ b/web/app/pages/Project/tabs/SEO/seo-chart-options.ts@@ -7,10 +7,6 @@ import type { TFunction } from 'i18next'import { escapeHtml, nFormatter } from '~/utils/generic'import type { DateSeriesEntry, SEOMetricKey } from './seo-utils'-// ----------------------------------------------------------------------------// Main time-series chart-// ----------------------------------------------------------------------------export function buildMainChartOptions(series: DateSeriesEntry[],activeMetrics: Record<SEOMetricKey, boolean>,@@ -179,10 +175,6 @@ export function buildMainChartOptions(}}-// ----------------------------------------------------------------------------// Quadrant scatter chart-// ----------------------------------------------------------------------------export interface QuadrantData {positions: number[]ctrs: number[]@@ -297,10 +289,6 @@ export function buildQuadrantChartOptions(}}-// ----------------------------------------------------------------------------// Branded traffic donut chart-// ----------------------------------------------------------------------------export function buildDonutChartOptions(branded: number,nonBranded: number,diff --git a/web/app/pages/Project/tabs/SEO/seo-utils.ts b/web/app/pages/Project/tabs/SEO/seo-utils.tsindex 27b613091..f0a513e4b 100644--- a/web/app/pages/Project/tabs/SEO/seo-utils.ts+++ b/web/app/pages/Project/tabs/SEO/seo-utils.ts@@ -93,10 +93,6 @@ export const aggregateDateSeries = (})}-/**- * Filters that the backend's GSC parseFilters can handle.- * Country code conversion (alpha-2 β alpha-3) is now done server-side.- */export const getGSCCompatibleFilters = (filters: Filter[]): Filter[] => {return filters.flatMap((filter) => {if (diff --git a/web/app/routes/projects.$id.tsx b/web/app/routes/projects.$id.tsxindex 3a4e1cbd5..e65b0c4c9 100644--- a/web/app/routes/projects.$id.tsx+++ b/web/app/routes/projects.$id.tsx@@ -487,7 +487,6 @@ export async function loader({ request, params }: LoaderFunctionArgs) {).then((res) => res.data)}} else if (seoTabId && tab === seoTabId) {- // Fetch traffic data for referral breakdowns (search engines / AI referrals)trafficData = getProjectDataServer(request,projectId,