diff --git a/app/(marketing)/docs/page.tsx b/app/(marketing)/docs/page.tsx index 49af5e98..8234d34f 100644 --- a/app/(marketing)/docs/page.tsx +++ b/app/(marketing)/docs/page.tsx @@ -24,7 +24,7 @@ const DOCS: DocCard[] = [ href: "/docs/statistics", title: "Statistics", description: - "Install the cookieless tracker, collect pageviews and interactions, and send custom events from any frontend stack.", + "Install the cookieless tracker, collect pageviews and interactions, and send custom events from any frontend stack. Also reachable at /docs/stats-tracker.", }, { href: "/docs/autoblog-webhook", diff --git a/app/(marketing)/docs/stats-tracker/page.tsx b/app/(marketing)/docs/stats-tracker/page.tsx index 30dec7de..61d3f47e 100644 --- a/app/(marketing)/docs/stats-tracker/page.tsx +++ b/app/(marketing)/docs/stats-tracker/page.tsx @@ -1 +1,11 @@ -export { metadata, default } from "../statistics/page"; +// /docs/stats-tracker is a legacy alias of /docs/statistics. +// Re-export the page but override metadata so search engines treat the +// canonical URL as /docs/statistics and don't index this as duplicate content. +export const metadata = { + title: "Statistics", + description: + "Install the cookieless tracker, collect pageviews and interactions, and send custom events from any frontend stack.", + alternates: { canonical: "/docs/statistics" }, +}; + +export { default } from "../statistics/page"; \ No newline at end of file