📈 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
Update translations
Blue Mouseb1fc247f17fb
diff --git a/web/app/pages/Project/View/ViewProject.helpers.tsx b/web/app/pages/Project/View/ViewProject.helpers.tsxindex 4864bf3cf..ee286abaf 100644--- a/web/app/pages/Project/View/ViewProject.helpers.tsx+++ b/web/app/pages/Project/View/ViewProject.helpers.tsx@@ -2148,7 +2148,7 @@ const typeNameMapping = (t: typeof i18next.t) => ({rg: t('project.mapping.rg'),ct: t('project.mapping.ct'),pg: t('project.mapping.pg'),- keywords: t('dashboard.seoTopQueries'),+ keywords: t('project.seo.topQueries'),entryPage: t('project.entryPages'),exitPage: t('project.exitPages'),lc: t('project.mapping.lc'),diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsxindex 21cbeb65e..d5a6ac0b5 100644--- a/web/app/pages/Project/View/ViewProject.tsx+++ b/web/app/pages/Project/View/ViewProject.tsx@@ -725,7 +725,7 @@ const ViewProjectContent = () => {},{id: PROJECT_TABS.seo,- label: t('dashboard.seo'),+ label: t('project.seo.title'),icon: MagnifyingGlassIcon,},{diff --git a/web/app/pages/Project/tabs/SEO/SEOView.tsx b/web/app/pages/Project/tabs/SEO/SEOView.tsxindex 47af31929..f93c0819b 100644--- a/web/app/pages/Project/tabs/SEO/SEOView.tsx+++ b/web/app/pages/Project/tabs/SEO/SEOView.tsx@@ -200,22 +200,22 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {() => [{id: SEO_METRICS.clicks,- label: t('dashboard.seoClicks'),+ label: t('project.seo.clicks'),active: activeMetrics.clicks,},{id: SEO_METRICS.impressions,- label: t('dashboard.seoImpressions'),+ label: t('project.seo.impressions'),active: activeMetrics.impressions,},{id: SEO_METRICS.position,- label: t('dashboard.seoAvgPosition'),+ label: t('project.seo.avgPosition'),active: activeMetrics.position,},{id: SEO_METRICS.ctr,- label: t('dashboard.seoAvgCTR'),+ label: t('project.seo.avgCTR'),active: activeMetrics.ctr,},],@@ -408,13 +408,13 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {let needsY2 = falseif (activeMetrics.clicks) {- const label = t('dashboard.seoClicks')+ const label = t('project.seo.clicks')columns.push([label, ...aggregatedSeries.map((d) => d.clicks)])colors[label] = '#3b82f6' // blue-500 - matching GSC}if (activeMetrics.impressions) {- const label = t('dashboard.seoImpressions')+ const label = t('project.seo.impressions')columns.push([label, ...aggregatedSeries.map((d) => d.impressions)])colors[label] = '#5b21b6' // violet-800 - matching GSCif (activeMetrics.clicks) {@@ -424,7 +424,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {}if (activeMetrics.position) {- const label = t('dashboard.seoAvgPosition')+ const label = t('project.seo.avgPosition')columns.push([label, ...aggregatedSeries.map((d) => d.position)])colors[label] = '#d97706' // amber-600 - matching GSCif (activeMetrics.clicks || activeMetrics.impressions) {@@ -434,7 +434,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {}if (activeMetrics.ctr) {- const label = t('dashboard.seoAvgCTR')+ const label = t('project.seo.avgCTR')columns.push([label, ...aggregatedSeries.map((d) => d.ctr)])colors[label] = '#0d9488' // teal-600 - matching GSCif (activeMetrics.clicks || activeMetrics.impressions) {@@ -538,8 +538,8 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {<li class='font-semibold pb-1 mb-1 border-b border-gray-200 dark:border-slate-800 sticky top-0 bg-gray-50 dark:bg-slate-900'>${headerLabel}</li>${items.map((el: any) => {- const isCtr = el.name === t('dashboard.seoAvgCTR')- const isPos = el.name === t('dashboard.seoAvgPosition')+ const isCtr = el.name === t('project.seo.avgCTR')+ const isPos = el.name === t('project.seo.avgPosition')let formatted = nFormatter(el.value, 1)if (isCtr) formatted = `${Number(el.value).toFixed(1)}%`else if (isPos) formatted = Number(el.value).toFixed(1)@@ -564,19 +564,19 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {const detailsExtraColumns = useMemo(() => [{- header: t('dashboard.seoImpressions'),+ header: t('project.seo.impressions'),render: (entry: any) => nFormatter(entry.impressions ?? 0, 1),sortLabel: 'impressions',getSortValue: (entry: any) => entry.impressions ?? 0,},{- header: t('dashboard.seoCTR'),+ header: t('project.seo.ctr'),render: (entry: any) => `${entry.ctr ?? 0}%`,sortLabel: 'ctr',getSortValue: (entry: any) => entry.ctr ?? 0,},{- header: t('dashboard.seoPosition'),+ header: t('project.seo.position'),render: (entry: any) => entry.position ?? 0,sortLabel: 'position',getSortValue: (entry: any) => entry.position ?? 0,@@ -618,14 +618,14 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {/></div><Text size='xl' weight='bold' className='mb-2'>- {t('dashboard.seoConnectGSC')}+ {t('project.seo.connectGSC')}</Text><Text size='sm' className='mb-6 text-gray-500 dark:text-gray-400'>- {t('dashboard.seoConnectGSCDesc')}+ {t('project.seo.connectGSCDesc')}</Text>{data?.noProperty ? (<Text size='sm' className='mb-4 text-amber-600 dark:text-amber-400'>- {t('dashboard.seoNoProperty')}+ {t('project.seo.noProperty')}</Text>) : null}<Link@@ -633,13 +633,13 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {className='inline-flex items-center gap-2 rounded-lg bg-slate-900 px-5 py-2.5 text-sm font-medium text-white transition-colors hover:bg-slate-800 dark:bg-slate-100 dark:text-slate-900 dark:hover:bg-slate-200'><LinkIcon className='size-4' />- {t('dashboard.seoConnectButton')}+ {t('project.seo.connectButton')}</Link>{refEntries.length > 0 ? (<div className='mt-10 grid w-full grid-cols-1 gap-3 sm:grid-cols-2'><Panel- name={t('dashboard.seoSearchEngines')}+ name={t('project.seo.searchEngines')}data={searchEngineEntries}icon={panelIconMapping.ref}id='seo-search-engines'@@ -650,7 +650,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {valuesHeaderName={t('project.visitors')}/><Panel- name={t('dashboard.seoAIReferrals')}+ name={t('project.seo.aiReferrals')}data={aiReferralEntries}icon={<RobotIcon className='h-5 w-5' />}id='seo-ai-referrals'@@ -716,7 +716,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {</div><div className='mb-5 flex flex-wrap justify-center gap-5 lg:justify-start'><MetricCard- label={t('dashboard.seoClicks')}+ label={t('project.seo.clicks')}value={data?.summary?.clicks ?? 0}change={data?.previousSummary@@ -729,7 +729,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {}/><MetricCard- label={t('dashboard.seoImpressions')}+ label={t('project.seo.impressions')}value={data?.summary?.impressions ?? 0}change={data?.previousSummary@@ -743,7 +743,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {}/><MetricCard- label={t('dashboard.seoAvgCTR')}+ label={t('project.seo.avgCTR')}value={_round(data?.summary?.ctr ?? 0, 2)}change={data?.previousSummary@@ -757,7 +757,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {}/><MetricCard- label={t('dashboard.seoAvgPosition')}+ label={t('project.seo.avgPosition')}value={_round(data?.summary?.position ?? 0, 1)}change={data?.previousSummary@@ -786,7 +786,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {<div className='mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2'><Panel- name={t('dashboard.seoSearchEngines')}+ name={t('project.seo.searchEngines')}data={searchEngineEntries}icon={panelIconMapping.ref}id='seo-search-engines'@@ -797,7 +797,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {valuesHeaderName={t('project.visitors')}/><Panel- name={t('dashboard.seoAIReferrals')}+ name={t('project.seo.aiReferrals')}data={aiReferralEntries}icon={<RobotIcon className='h-5 w-5' />}id='seo-ai-referrals'@@ -811,27 +811,27 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {<div className='mt-3 grid grid-cols-1 gap-3 sm:grid-cols-2'><Panel- name={t('dashboard.seoTopPages')}+ name={t('project.seo.topPages')}data={topPagesAsEntries}icon={panelIconMapping.pg}id='pg'activeTabId='pg'disableRowClick={false}getFilterLink={getFilterLink}- valuesHeaderName={t('dashboard.seoClicks')}+ valuesHeaderName={t('project.seo.clicks')}detailsExtraColumns={detailsExtraColumns}hidePercentageInDetailsdataLoading={isLoading}/><Panel- name={t('dashboard.seoTopQueries')}+ name={t('project.seo.topQueries')}data={topQueriesAsEntries}icon={<MagnifyingGlassIcon className='h-5 w-5' />}id='keywords'activeTabId='keywords'disableRowClick={false}getFilterLink={getFilterLink}- valuesHeaderName={t('dashboard.seoClicks')}+ valuesHeaderName={t('project.seo.clicks')}detailsExtraColumns={detailsExtraColumns}hidePercentageInDetailsdataLoading={isLoading}@@ -848,7 +848,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {disableRowClickgetFilterLink={noopFilterLink}rowMapper={countryRowMapper}- valuesHeaderName={t('dashboard.seoClicks')}+ valuesHeaderName={t('project.seo.clicks')}detailsExtraColumns={detailsExtraColumns}hidePercentageInDetailsdataLoading={isLoading}@@ -863,7 +863,7 @@ const SEOViewInner = ({ projectId, tnMapping }: SEOViewProps) => {getFilterLink={noopFilterLink}rowMapper={deviceRowMapper}capitalize- valuesHeaderName={t('dashboard.seoClicks')}+ valuesHeaderName={t('project.seo.clicks')}detailsExtraColumns={detailsExtraColumns}hidePercentageInDetailsdataLoading={isLoading}diff --git a/web/app/referrers.map.json b/web/app/referrers.map.jsonindex 982f537bd..f26681c27 100644--- a/web/app/referrers.map.json+++ b/web/app/referrers.map.json@@ -19,7 +19,11 @@{"name": "Google","category": "search",- "patterns": ["google.com", "doubleclick.net", "android-app://com.google.android.gm/"]+ "patterns": [+ "google.com",+ "doubleclick.net",+ "android-app://com.google.android.gm/"+ ]},{"name": "Bing",diff --git a/web/app/routes/projects.$id.tsx b/web/app/routes/projects.$id.tsxindex d2624e57f..b32fe45ec 100644--- a/web/app/routes/projects.$id.tsx+++ b/web/app/routes/projects.$id.tsx@@ -167,7 +167,7 @@ export const meta: MetaFunction<typeof loader> = ({ data, location }) => {const tabNames: Record<keyof typeof PROJECT_TABS | 'settings', string> = {[PROJECT_TABS.traffic]: t('dashboard.traffic'),[PROJECT_TABS.performance]: t('dashboard.performance'),- [PROJECT_TABS.seo]: t('dashboard.seo'),+ [PROJECT_TABS.seo]: t('project.seo.title'),[PROJECT_TABS.profiles]: t('dashboard.profiles'),[PROJECT_TABS.sessions]: t('dashboard.sessions'),[PROJECT_TABS.errors]: t('dashboard.errors'),diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex 811ba198b..95979fc64 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -1085,34 +1085,6 @@"cumulativeMode": "Cumulative mode","traffic": "Traffic","performance": "Performance",- "seo": "SEO",- "seoDesc": "Search performance for {{url}}",- "seoConnectGSC": "Connect Google Search Console to see search performance data",- "seoConnectGSCDesc": "Link your Google Search Console account to view clicks, impressions, search queries, and top pages from Google Search.",- "seoConnectButton": "Connect Search Console",- "seoSearchEngines": "Search engines",- "seoAIReferrals": "AI referrals",- "seoClicks": "Clicks",- "seoImpressions": "Impressions",- "seoAvgCTR": "Avg CTR",- "seoAvgPosition": "Avg Position",- "seoClicksAndImpressions": "Clicks & Impressions",- "seoAvgPositionChart": "Avg Position",- "seoCTRvsPosition": "CTR vs Position",- "seoTopPages": "Top pages",- "seoTopQueries": "Top queries",- "seoQueriesForPage": "Queries for this page",- "seoPagesForQuery": "Pages ranking for this query",- "seoPage": "Page",- "seoQuery": "Query",- "seoCTR": "CTR",- "seoPosition": "Pos.",- "seoLowerIsBetter": "Lower is better",- "seoYourCTR": "Your CTR",- "seoBenchmark": "Benchmark",- "seoSearchPages": "Search pages",- "seoSearchQueries": "Search queries",- "seoNoProperty": "No Search Console property selected. Go to Settings to select one.","profiles": "Profiles","funnels": "Funnels","sessions": "Sessions",@@ -1410,6 +1382,36 @@"unknownError": "Unknown error"},"project": {+ "seo": {+ "title": "SEO",+ "desc": "Search performance for {{url}}",+ "connectGSC": "Connect Google Search Console to see search performance data",+ "connectGSCDesc": "Link your Google Search Console account to view clicks, impressions, search queries, and top pages from Google Search.",+ "connectButton": "Connect Search Console",+ "searchEngines": "Search engines",+ "aiReferrals": "AI referrals",+ "clicks": "Clicks",+ "impressions": "Impressions",+ "avgCTR": "Average CTR",+ "avgPosition": "Average Position",+ "clicksAndImpressions": "Clicks & Impressions",+ "avgPositionChart": "Average Position",+ "ctrVsPosition": "CTR vs Position",+ "topPages": "Top pages",+ "topQueries": "Top queries",+ "queriesForPage": "Queries for this page",+ "pagesForQuery": "Pages ranking for this query",+ "page": "Page",+ "query": "Query",+ "ctr": "CTR",+ "position": "Pos.",+ "lowerIsBetter": "Lower is better",+ "yourCTR": "Your CTR",+ "benchmark": "Benchmark",+ "searchPages": "Search pages",+ "searchQueries": "Search queries",+ "noProperty": "No Search Console property selected. Go to Settings to select one."+ },"passwordProtectedHint": "Please enter the password to view this dashboard.","captchaCompletions": "CAPTCHA completions","addAnnotation": "Add annotation",