Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Updated page titles.
Mike Caod5b4da63dfe5
diff --git a/src/app/(main)/console/TestConsole.tsx b/src/app/(main)/console/TestConsole.tsxindex 9d8ecb24c..86a4792e3 100644--- a/src/app/(main)/console/TestConsole.tsx+++ b/src/app/(main)/console/TestConsole.tsx@@ -1,5 +1,4 @@import { Button } from 'react-basics';-import Head from 'next/head';import Link from 'next/link';import Script from 'next/script';import WebsiteSelect from 'components/input/WebsiteSelect';@@ -73,9 +72,6 @@ export function TestConsole({ websiteId }: { websiteId: string }) {return (<Page isLoading={isLoading} error={error}>- <Head>- <title>{website ? `${website.name} | Umami Console` : 'Umami Console'}</title>- </Head><PageHeader title="Test console"><WebsiteSelect websiteId={website?.id} onSelect={handleChange} /></PageHeader>diff --git a/src/app/(main)/console/[[...websiteId]]/page.tsx b/src/app/(main)/console/[[...websiteId]]/page.tsxindex e9a6f722d..2cbdddcc0 100644--- a/src/app/(main)/console/[[...websiteId]]/page.tsx+++ b/src/app/(main)/console/[[...websiteId]]/page.tsx@@ -16,5 +16,5 @@ export default async function ({ params: { websiteId } }) {}export const metadata: Metadata = {- title: 'Test Console | Umami',+ title: 'Test Console',};diff --git a/src/app/(main)/dashboard/page.tsx b/src/app/(main)/dashboard/page.tsxindex 634a26169..7a6051100 100644--- a/src/app/(main)/dashboard/page.tsx+++ b/src/app/(main)/dashboard/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Dashboard | Umami',+ title: 'Dashboard',};diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsxindex f5aeab67d..0ecce22cd 100644--- a/src/app/(main)/layout.tsx+++ b/src/app/(main)/layout.tsx@@ -1,3 +1,4 @@+import { Metadata } from 'next';import App from './App';import NavBar from './NavBar';import Page from 'components/layout/Page';@@ -17,3 +18,10 @@ export default function ({ children }) {</App>);}++export const metadata: Metadata = {+ title: {+ template: '%s | Umami',+ default: 'Umami',+ },+};diff --git a/src/app/(main)/profile/page.tsx b/src/app/(main)/profile/page.tsxindex c653624bf..0c1f0082e 100644--- a/src/app/(main)/profile/page.tsx+++ b/src/app/(main)/profile/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Profile | Umami',+ title: 'Profile',};diff --git a/src/app/(main)/reports/ReportsPage.tsx b/src/app/(main)/reports/ReportsPage.tsxindex 498bce57f..6a63c2cb0 100644--- a/src/app/(main)/reports/ReportsPage.tsx+++ b/src/app/(main)/reports/ReportsPage.tsx@@ -11,5 +11,5 @@ export default function ReportsPage({ teamId }: { teamId: string }) {);}export const metadata = {- title: 'Reports | Umami',+ title: 'Reports',};diff --git a/src/app/(main)/reports/[reportId]/page.tsx b/src/app/(main)/reports/[reportId]/page.tsxindex 12bf553aa..690daf478 100644--- a/src/app/(main)/reports/[reportId]/page.tsx+++ b/src/app/(main)/reports/[reportId]/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { reportId } }) {}export const metadata: Metadata = {- title: 'Reports | Umami',+ title: 'Reports',};diff --git a/src/app/(main)/reports/create/page.tsx b/src/app/(main)/reports/create/page.tsxindex 4a5928453..c2b1c18c5 100644--- a/src/app/(main)/reports/create/page.tsx+++ b/src/app/(main)/reports/create/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Create Report | Umami',+ title: 'Create Report',};diff --git a/src/app/(main)/reports/event-data/page.tsx b/src/app/(main)/reports/event-data/page.tsxindex 1f2936e61..2d6477e1a 100644--- a/src/app/(main)/reports/event-data/page.tsx+++ b/src/app/(main)/reports/event-data/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Event Data Report | Umami',+ title: 'Event Data Report',};diff --git a/src/app/(main)/reports/funnel/page.tsx b/src/app/(main)/reports/funnel/page.tsxindex e00cfd51b..40270bba9 100644--- a/src/app/(main)/reports/funnel/page.tsx+++ b/src/app/(main)/reports/funnel/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Funnel Report | Umami',+ title: 'Funnel Report',};diff --git a/src/app/(main)/reports/insights/page.tsx b/src/app/(main)/reports/insights/page.tsxindex cb3b90162..1e9e0ea6d 100644--- a/src/app/(main)/reports/insights/page.tsx+++ b/src/app/(main)/reports/insights/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Insights Report | Umami',+ title: 'Insights Report',};diff --git a/src/app/(main)/reports/page.tsx b/src/app/(main)/reports/page.tsxindex 44a034a06..4b495aca8 100644--- a/src/app/(main)/reports/page.tsx+++ b/src/app/(main)/reports/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { teamId } }: { params: { teamId: string } })}export const metadata: Metadata = {- title: 'Reports | Umami',+ title: 'Reports',};diff --git a/src/app/(main)/reports/retention/page.tsx b/src/app/(main)/reports/retention/page.tsxindex 810714031..0f04fe981 100644--- a/src/app/(main)/reports/retention/page.tsx+++ b/src/app/(main)/reports/retention/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Create Report | Umami',+ title: 'Retention Report',};diff --git a/src/app/(main)/settings/layout.tsx b/src/app/(main)/settings/layout.tsxindex 487a9d596..573897d5e 100644--- a/src/app/(main)/settings/layout.tsx+++ b/src/app/(main)/settings/layout.tsx@@ -1,4 +1,5 @@import SettingsLayout from './SettingsLayout';+import { Metadata } from 'next';export default function ({ children }) {if (process.env.cloudMode) {@@ -7,3 +8,10 @@ export default function ({ children }) {return <SettingsLayout>{children}</SettingsLayout>;}++export const metadata: Metadata = {+ title: {+ template: '%s | Settings | Umami',+ default: 'Settings | Umami',+ },+};diff --git a/src/app/(main)/settings/teams/[teamId]/members/page.tsx b/src/app/(main)/settings/teams/[teamId]/members/page.tsxindex e36e92148..fbee6a8ea 100644--- a/src/app/(main)/settings/teams/[teamId]/members/page.tsx+++ b/src/app/(main)/settings/teams/[teamId]/members/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { teamId } }) {}export const metadata: Metadata = {- title: 'Team members - Umami',+ title: 'Team Members',};diff --git a/src/app/(main)/settings/teams/[teamId]/team/page.tsx b/src/app/(main)/settings/teams/[teamId]/team/page.tsxindex de2c96576..0c4dd2012 100644--- a/src/app/(main)/settings/teams/[teamId]/team/page.tsx+++ b/src/app/(main)/settings/teams/[teamId]/team/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { teamId } }) {}export const metadata: Metadata = {- title: 'Teams Settings - Umami',+ title: 'Teams Details',};diff --git a/src/app/(main)/settings/teams/[teamId]/websites/page.tsx b/src/app/(main)/settings/teams/[teamId]/websites/page.tsxindex ac4eb94f6..cfb465fb4 100644--- a/src/app/(main)/settings/teams/[teamId]/websites/page.tsx+++ b/src/app/(main)/settings/teams/[teamId]/websites/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { teamId } }) {}export const metadata: Metadata = {- title: 'Teams Websites - Umami',+ title: 'Teams Websites',};diff --git a/src/app/(main)/settings/teams/page.tsx b/src/app/(main)/settings/teams/page.tsxindex e45d6f2d3..93be83a20 100644--- a/src/app/(main)/settings/teams/page.tsx+++ b/src/app/(main)/settings/teams/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Teams Settings - Umami',+ title: 'Teams',};diff --git a/src/app/(main)/settings/users/[userId]/page.tsx b/src/app/(main)/settings/users/[userId]/page.tsxindex 414ad4831..d5dc5005d 100644--- a/src/app/(main)/settings/users/[userId]/page.tsx+++ b/src/app/(main)/settings/users/[userId]/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { userId } }) {}export const metadata: Metadata = {- title: 'User Settings - Umami',+ title: 'User Settings',};diff --git a/src/app/(main)/settings/users/page.tsx b/src/app/(main)/settings/users/page.tsxindex fa63cf188..a3209ab3c 100644--- a/src/app/(main)/settings/users/page.tsx+++ b/src/app/(main)/settings/users/page.tsx@@ -5,5 +5,5 @@ export default function () {return <UsersPage />;}export const metadata: Metadata = {- title: 'Users | Umami',+ title: 'Users',};diff --git a/src/app/(main)/settings/websites/[websiteId]/page.tsx b/src/app/(main)/settings/websites/[websiteId]/page.tsxindex b8eb85303..33caff5ac 100644--- a/src/app/(main)/settings/websites/[websiteId]/page.tsx+++ b/src/app/(main)/settings/websites/[websiteId]/page.tsx@@ -6,5 +6,5 @@ export default async function ({ params: { websiteId } }) {}export const metadata: Metadata = {- title: 'Website settings - Umami',+ title: 'Website',};diff --git a/src/app/(main)/settings/websites/page.tsx b/src/app/(main)/settings/websites/page.tsxindex 50a2df87b..8d305e6b7 100644--- a/src/app/(main)/settings/websites/page.tsx+++ b/src/app/(main)/settings/websites/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { teamId } }: { params: { teamId: string } })}export const metadata: Metadata = {- title: 'Websites Settings | Umami',+ title: 'Websites',};diff --git a/src/app/(main)/teams/[teamId]/layout.tsx b/src/app/(main)/teams/[teamId]/layout.tsxindex f18d802af..c804c7463 100644--- a/src/app/(main)/teams/[teamId]/layout.tsx+++ b/src/app/(main)/teams/[teamId]/layout.tsx@@ -1,5 +1,10 @@import TeamProvider from './TeamProvider';+import { Metadata } from 'next';export default function ({ children, params: { teamId } }) {return <TeamProvider teamId={teamId}>{children}</TeamProvider>;}++export const metadata: Metadata = {+ title: 'Teams',+};diff --git a/src/app/(main)/teams/[teamId]/reports/page.tsx b/src/app/(main)/teams/[teamId]/reports/page.tsxindex 6eedabb47..5404e128a 100644--- a/src/app/(main)/teams/[teamId]/reports/page.tsx+++ b/src/app/(main)/teams/[teamId]/reports/page.tsx@@ -1,3 +1,8 @@import Page from 'app/(main)/reports/page';+import { Metadata } from 'next';export default Page;++export const metadata: Metadata = {+ title: 'Team Reports',+};diff --git a/src/app/(main)/teams/[teamId]/settings/layout.tsx b/src/app/(main)/teams/[teamId]/settings/layout.tsxindex c86d01962..b32d39e85 100644--- a/src/app/(main)/teams/[teamId]/settings/layout.tsx+++ b/src/app/(main)/teams/[teamId]/settings/layout.tsx@@ -1,5 +1,10 @@import TeamSettingsLayout from './TeamSettingsLayout';+import { Metadata } from 'next';export default function ({ children, params: { teamId } }) {return <TeamSettingsLayout teamId={teamId}>{children}</TeamSettingsLayout>;}++export const metadata: Metadata = {+ title: 'Team Settings',+};diff --git a/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx b/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsxindex e4203177f..d917c6d71 100644--- a/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx+++ b/src/app/(main)/websites/[websiteId]/WebsiteDetails.tsx@@ -1,3 +1,4 @@+'use client';import { Loading } from 'react-basics';import { usePathname } from 'next/navigation';import Page from 'components/layout/Page';diff --git a/src/app/(main)/websites/[websiteId]/event-data/page.tsx b/src/app/(main)/websites/[websiteId]/event-data/page.tsxindex 5ae0799a8..24cf4feaa 100644--- a/src/app/(main)/websites/[websiteId]/event-data/page.tsx+++ b/src/app/(main)/websites/[websiteId]/event-data/page.tsx@@ -6,5 +6,5 @@ export default async function ({ params: { websiteId } }) {}export const metadata: Metadata = {- title: 'Event Data | Umami',+ title: 'Event Data',};diff --git a/src/app/(main)/websites/[websiteId]/page.tsx b/src/app/(main)/websites/[websiteId]/page.tsxindex d7e6fcd0e..ddb6c833b 100644--- a/src/app/(main)/websites/[websiteId]/page.tsx+++ b/src/app/(main)/websites/[websiteId]/page.tsx@@ -1,6 +1,10 @@-'use client';import WebsiteDetails from './WebsiteDetails';+import { Metadata } from 'next';export default function WebsitePage({ params: { websiteId } }) {return <WebsiteDetails websiteId={websiteId} />;}++export const metadata: Metadata = {+ title: 'Websites',+};diff --git a/src/app/(main)/websites/[websiteId]/realtime/page.tsx b/src/app/(main)/websites/[websiteId]/realtime/page.tsxindex 1ce90b13c..0ca7ffd83 100644--- a/src/app/(main)/websites/[websiteId]/realtime/page.tsx+++ b/src/app/(main)/websites/[websiteId]/realtime/page.tsx@@ -1,5 +1,10 @@import WebsiteRealtimePage from './WebsiteRealtimePage';+import { Metadata } from 'next';export default function ({ params: { websiteId } }) {return <WebsiteRealtimePage websiteId={websiteId} />;}++export const metadata: Metadata = {+ title: 'Real-time',+};diff --git a/src/app/(main)/websites/[websiteId]/reports/page.tsx b/src/app/(main)/websites/[websiteId]/reports/page.tsxindex 7726a2cd6..caa805a63 100644--- a/src/app/(main)/websites/[websiteId]/reports/page.tsx+++ b/src/app/(main)/websites/[websiteId]/reports/page.tsx@@ -1,5 +1,10 @@import WebsiteReportsPage from './WebsiteReportsPage';+import { Metadata } from 'next';export default function ({ params: { websiteId } }) {return <WebsiteReportsPage websiteId={websiteId} />;}++export const metadata: Metadata = {+ title: 'Website Reports',+};diff --git a/src/app/(main)/websites/page.tsx b/src/app/(main)/websites/page.tsxindex ee6e4336b..ee49cb8af 100644--- a/src/app/(main)/websites/page.tsx+++ b/src/app/(main)/websites/page.tsx@@ -6,5 +6,5 @@ export default function ({ params: { teamId, userId } }) {}export const metadata: Metadata = {- title: 'Websites | Umami',+ title: 'Websites',};diff --git a/src/app/layout.tsx b/src/app/layout.tsxindex 970c33f0b..33ae9fa99 100644--- a/src/app/layout.tsx+++ b/src/app/layout.tsx@@ -32,5 +32,8 @@ export default function ({ children }) {}export const metadata: Metadata = {- title: 'umami',+ title: {+ template: '%s | Umami',+ default: 'Umami',+ },};diff --git a/src/app/login/page.tsx b/src/app/login/page.tsxindex ee4c0a70e..6f34d987e 100644--- a/src/app/login/page.tsx+++ b/src/app/login/page.tsx@@ -6,5 +6,5 @@ export default async function () {}export const metadata: Metadata = {- title: 'Login | Umami',+ title: 'Login',};diff --git a/src/app/logout/page.tsx b/src/app/logout/page.tsxindex b74f65847..a253049a9 100644--- a/src/app/logout/page.tsx+++ b/src/app/logout/page.tsx@@ -6,5 +6,5 @@ export default function () {}export const metadata: Metadata = {- title: 'Logout | Umami',+ title: 'Logout',};diff --git a/src/app/share/[...shareId]/page.tsx b/src/app/share/[...shareId]/page.tsxindex 02d244e99..e8ca8e607 100644--- a/src/app/share/[...shareId]/page.tsx+++ b/src/app/share/[...shareId]/page.tsx@@ -1,10 +1,5 @@import SharePage from './SharePage';-import { Metadata } from 'next';export default function ({ params: { shareId } }) {return <SharePage shareId={shareId[0]} />;}--export const metadata: Metadata = {- title: 'umami',-};