📈 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
Glossary
Blue Mouse09e83675559f
diff --git a/docs/app/components/Footer.tsx b/docs/app/components/Footer.tsxindex 67c33c527..85c38ecd4 100644--- a/docs/app/components/Footer.tsx+++ b/docs/app/components/Footer.tsx@@ -154,6 +154,12 @@ const resources: NavItem[] = [icon: BookOpenIcon,iconColor: "text-sky-400",},+ {+ name: "Glossary",+ href: `${SITE}/glossary`,+ icon: ArticleIcon,+ iconColor: "text-violet-400",+ },{name: "Pricing",href: `${SITE}/#pricing`,diff --git a/docs/content/docs/glossary.mdx b/docs/content/docs/glossary.mdxnew file mode 100644index 000000000..91b2c7dd6--- /dev/null+++ b/docs/content/docs/glossary.mdx@@ -0,0 +1,23 @@+---+title: Web Analytics Glossary+description: Learn common website analytics metrics, traffic source terms, privacy concepts, and conversion definitions.+icon: BookOpenText+---++Swetrix maintains a practical [Web Analytics Glossary](https://swetrix.com/glossary) for the terms you will see across traffic reports, attribution, privacy compliance, SEO, and conversion tracking.++Use it when you need a quick definition for metrics such as [bounce rate](https://swetrix.com/glossary/bounce-rate), [conversion rate](https://swetrix.com/glossary/conversion-rate), [unique visitor](https://swetrix.com/glossary/unique-visitor), [session](https://swetrix.com/glossary/session), or [UTM code](https://swetrix.com/glossary/utm-code).++<Callout type="info">+ The glossary lives on the main Swetrix website so it can also serve standalone SEO pages for+ analytics terms.+</Callout>++## Useful starting points++- [Web Analytics](https://swetrix.com/glossary/web-analytics)+- [Page View](https://swetrix.com/glossary/page-view)+- [Traffic Channel](https://swetrix.com/glossary/traffic-channel)+- [Referral Traffic](https://swetrix.com/glossary/referral-traffic)+- [GDPR](https://swetrix.com/glossary/gdpr)+- [Cookie Consent Banner](https://swetrix.com/glossary/cookie-consent-banner)diff --git a/docs/content/docs/introduction.mdx b/docs/content/docs/introduction.mdxindex b29c88cd5..871a4de5c 100644--- a/docs/content/docs/introduction.mdx+++ b/docs/content/docs/introduction.mdx@@ -57,7 +57,11 @@ Understand your visitors, traffic sources, and page views at a glance.</Card><Card title="Self-hosting" href="/selfhosting/how-to">-Run Swetrix on your own infrastructure with full data ownership.+ Run Swetrix on your own infrastructure with full data ownership.+</Card>++<Card title="Web Analytics Glossary" href="https://swetrix.com/glossary">+ Learn common website metrics, traffic sources, privacy terms, and conversion analytics definitions.</Card></Cards>diff --git a/docs/content/docs/meta.json b/docs/content/docs/meta.jsonindex b2b4f6082..01216817a 100644--- a/docs/content/docs/meta.json+++ b/docs/content/docs/meta.json@@ -22,6 +22,7 @@"...adblockers","...api","---Resources---",+ "glossary","selfhosting","contribute","---Captcha---",diff --git a/web/app/components/Footer/index.tsx b/web/app/components/Footer/index.tsxindex 6a7331a67..46343de4d 100644--- a/web/app/components/Footer/index.tsx+++ b/web/app/components/Footer/index.tsx@@ -362,6 +362,13 @@ const productionNavigation = {icon: BookOpenIcon,iconColor: 'text-sky-400',},+ {+ key: 'glossary',+ href: routesPath.glossary,+ internal: true,+ icon: ArticleIcon,+ iconColor: 'text-violet-400',+ },{key: 'pricing',href: `${routesPath.main}#pricing`,@@ -423,6 +430,13 @@ const communityEditionNavigation = {icon: BookOpenIcon,iconColor: 'text-sky-400',},+ {+ key: 'glossary',+ href: `https://swetrix.com${routesPath.glossary}`,+ internal: false,+ icon: ArticleIcon,+ iconColor: 'text-violet-400',+ },{key: 'pricing',href: `https://swetrix.com/#pricing`,diff --git a/web/app/components/LocaleLinks.tsx b/web/app/components/LocaleLinks.tsxindex 8276fd636..a25872562 100644--- a/web/app/components/LocaleLinks.tsx+++ b/web/app/components/LocaleLinks.tsx@@ -43,7 +43,7 @@ const getAlternateLinks = (location: Location) => {}}-const NO_ALTERNATE_LINKS = [/^\/blog/i]+const NO_ALTERNATE_LINKS = [/^\/blog/i, /^\/glossary/i]const getShouldBeIgnored = (location: Location) => {const unprefixed = stripLangFromPath(location.pathname)diff --git a/web/app/data/glossary.ts b/web/app/data/glossary.tsnew file mode 100644index 000000000..4e97e87d9--- /dev/null+++ b/web/app/data/glossary.ts@@ -0,0 +1,604 @@+export interface GlossaryItem {+ title: string+ slug: string+ category: string+ description: string+}++export const glossaryItems: GlossaryItem[] = [+ {+ title: 'A/B Testing',+ slug: 'a-b-testing',+ category: 'Experimentation',+ description:+ 'A method for comparing two versions of a page, flow, or feature to see which one performs better against a defined goal.',+ },+ {+ title: 'Adblocker',+ slug: 'adblocker',+ category: 'Privacy',+ description:+ 'Software that blocks ads, trackers, analytics scripts, and other third-party resources before they load in the browser.',+ },+ {+ title: 'Attribution Model',+ slug: 'attribution-model',+ category: 'Attribution',+ description:+ 'The rule set an analytics platform uses to assign conversion credit across traffic sources, campaigns, and touchpoints.',+ },+ {+ title: 'Alerting',+ slug: 'alerting',+ category: 'Monitoring',+ description:+ 'Automated notifications that warn teams about traffic spikes, drops, errors, uptime issues, or other analytics changes.',+ },+ {+ title: 'Assisted Conversion',+ slug: 'assisted-conversion',+ category: 'Attribution',+ description:+ 'A conversion where a channel or touchpoint helped influence the final action but was not the last interaction before it.',+ },+ {+ title: 'Average Session Duration',+ slug: 'average-session-duration',+ category: 'Metrics',+ description:+ 'The average time visitors spend on a website during one session, useful for judging engagement and content depth.',+ },+ {+ title: 'Bounce Rate',+ slug: 'bounce-rate',+ category: 'Metrics',+ description:+ 'The percentage of sessions where a visitor leaves after viewing one page without triggering another meaningful interaction.',+ },+ {+ title: 'Bot Filtering',+ slug: 'bot-filtering',+ category: 'Data quality',+ description:+ 'The process of detecting and excluding automated bot traffic so analytics reports better reflect real human visitors.',+ },+ {+ title: 'Bot Traffic',+ slug: 'bot-traffic',+ category: 'Data quality',+ description:+ 'Visits and requests generated by automated crawlers, scrapers, monitors, malicious scripts, or other non-human clients.',+ },+ {+ title: 'Call to Action',+ slug: 'call-to-action',+ category: 'Conversion',+ description:+ 'A prompt that asks a visitor to take the next step, such as signing up, booking a demo, downloading a guide, or buying.',+ },+ {+ title: 'CCPA',+ slug: 'ccpa',+ category: 'Privacy',+ description:+ 'The California Consumer Privacy Act, a privacy law that gives California residents rights over how businesses use personal data.',+ },+ {+ title: 'Canonical URL',+ slug: 'canonical-url',+ category: 'SEO',+ description:+ 'The preferred URL for a page when duplicate or similar versions exist, helping search engines consolidate ranking signals.',+ },+ {+ title: 'Click-through Rate',+ slug: 'click-through-rate',+ category: 'Metrics',+ description:+ 'The percentage of people who click a link, ad, search result, email link, or button after seeing it.',+ },+ {+ title: 'Conversion',+ slug: 'conversion',+ category: 'Conversion',+ description:+ 'A completed action that matters to a business, such as a signup, purchase, form submission, activation step, or download.',+ },+ {+ title: 'Conversion Rate',+ slug: 'conversion-rate',+ category: 'Conversion',+ description:+ 'The percentage of visitors or sessions that complete a desired action during a selected reporting period.',+ },+ {+ title: 'Consent Management Platform',+ slug: 'consent-management-platform',+ category: 'Privacy',+ description:+ 'Software that collects, stores, and applies visitor consent choices for cookies, analytics, ads, and other data processing.',+ },+ {+ title: 'Conversion Rate Optimization',+ slug: 'conversion-rate-optimization',+ category: 'Conversion',+ description:+ 'The practice of improving pages, journeys, and offers so more visitors complete the actions that matter.',+ },+ {+ title: 'Cookie',+ slug: 'cookie',+ category: 'Privacy',+ description:+ 'A small piece of browser-stored data that websites can use for preferences, sessions, measurement, or tracking.',+ },+ {+ title: 'Cookieless Tracking',+ slug: 'cookieless-tracking',+ category: 'Privacy',+ description:+ 'Analytics measurement that does not store tracking cookies in the visitor browser while still reporting traffic and events.',+ },+ {+ title: 'Cookie Consent Banner',+ slug: 'cookie-consent-banner',+ category: 'Privacy',+ description:+ 'A notice that asks visitors to accept, reject, or configure cookies and similar tracking technologies.',+ },+ {+ title: 'Cost per Click',+ slug: 'cost-per-click',+ category: 'Campaigns',+ description:+ 'The amount an advertiser pays each time someone clicks an ad, often used to evaluate paid search and paid social efficiency.',+ },+ {+ title: 'Custom Event',+ slug: 'custom-event',+ category: 'Product analytics',+ description:+ 'A named action tracked inside a website or app, such as clicking a pricing button, submitting a form, or creating a project.',+ },+ {+ title: 'Core Web Vitals',+ slug: 'core-web-vitals',+ category: 'Performance',+ description:+ 'Google-defined user experience metrics that measure loading speed, interactivity, and visual stability on real pages.',+ },+ {+ title: 'Data Processing Agreement',+ slug: 'data-processing-agreement',+ category: 'Privacy',+ description:+ 'A contract that defines how a processor handles personal data on behalf of a controller under privacy laws such as GDPR.',+ },+ {+ title: 'Data Residency',+ slug: 'data-residency',+ category: 'Privacy',+ description:+ 'The physical or legal region where analytics data is stored and processed, often important for compliance and governance.',+ },+ {+ title: 'Data Retention',+ slug: 'data-retention',+ category: 'Privacy',+ description:+ 'The policy that defines how long analytics, event, user, and operational data is kept before deletion or aggregation.',+ },+ {+ title: 'Dark Social',+ slug: 'dark-social',+ category: 'Attribution',+ description:+ 'Traffic from private sharing channels such as messaging apps, email, documents, and communities that often appears as direct.',+ },+ {+ title: 'Direct Traffic',+ slug: 'direct-traffic',+ category: 'Attribution',+ description:+ 'Traffic where the analytics platform cannot identify a referring website, campaign tag, search engine, or known source.',+ },+ {+ title: 'Engagement Rate',+ slug: 'engagement-rate',+ category: 'Metrics',+ description:+ 'A percentage that shows how often visitors or users interact meaningfully with a page, product, or campaign.',+ },+ {+ title: 'Error Tracking',+ slug: 'error-tracking',+ category: 'Monitoring',+ description:+ 'The practice of collecting and analyzing frontend or backend errors so teams can fix broken user experiences faster.',+ },+ {+ title: 'Event Tracking',+ slug: 'event-tracking',+ category: 'Product analytics',+ description:+ 'The practice of recording user actions such as clicks, submissions, purchases, downloads, and product interactions.',+ },+ {+ title: 'Experiment',+ slug: 'experiment',+ category: 'Experimentation',+ description:+ 'A controlled test that exposes visitors or users to variants and measures which version performs better against a goal.',+ },+ {+ title: 'Exit Rate',+ slug: 'exit-rate',+ category: 'Metrics',+ description:+ 'The percentage of page views where a page was the final page in a session before the visitor left the website.',+ },+ {+ title: 'Feature Flag',+ slug: 'feature-flag',+ category: 'Product analytics',+ description:+ 'A switch that lets teams enable, disable, target, or gradually roll out product features without deploying new code.',+ },+ {+ title: 'First-party Data',+ slug: 'first-party-data',+ category: 'Privacy',+ description:+ 'Data collected directly from your own audience, website, product, or customers rather than purchased from external brokers.',+ },+ {+ title: 'First Party Cookie',+ slug: 'first-party-cookie',+ category: 'Privacy',+ description:+ 'A cookie set by the website domain a visitor is currently using, usually for sessions, preferences, or same-site analytics.',+ },+ {+ title: 'Funnel',+ slug: 'funnel',+ category: 'Conversion',+ description:+ 'A sequence of steps visitors move through before reaching a goal, such as landing page, signup, checkout, and payment.',+ },+ {+ title: 'Funnel Drop-off',+ slug: 'funnel-drop-off',+ category: 'Conversion',+ description:+ 'The point in a funnel where visitors leave before completing the next step or reaching the final conversion.',+ },+ {+ title: 'GDPR',+ slug: 'gdpr',+ category: 'Privacy',+ description:+ 'The European Union privacy regulation that governs how organizations collect, process, store, and protect personal data.',+ },+ {+ title: 'Goal Tracking',+ slug: 'goal-tracking',+ category: 'Conversion',+ description:+ 'The setup and measurement of important website or product outcomes such as signups, purchases, leads, and activations.',+ },+ {+ title: 'Google Analytics 4',+ slug: 'google-analytics-4',+ category: 'Analytics platforms',+ description:+ "Google Analytics 4, often called GA4, is Google's event-based analytics platform for websites and apps.",+ },+ {+ title: 'Indexability',+ slug: 'indexability',+ category: 'SEO',+ description:+ 'A page status that determines whether search engines are allowed and able to include the page in search results.',+ },+ {+ title: 'IP Address',+ slug: 'ip-address',+ category: 'Technology',+ description:+ 'A network address assigned to a device or connection, often used for routing, approximate geolocation, security, and abuse prevention.',+ },+ {+ title: 'JavaScript Error',+ slug: 'javascript-error',+ category: 'Monitoring',+ description:+ 'A browser-side runtime error that can break user interactions, tracking, forms, checkout flows, or product features.',+ },+ {+ title: 'Landing Page',+ slug: 'landing-page',+ category: 'Conversion',+ description:+ 'The page a visitor lands on after clicking a search result, ad, campaign link, referral link, or social post.',+ },+ {+ title: 'Last-click Attribution',+ slug: 'last-click-attribution',+ category: 'Attribution',+ description:+ 'An attribution model that gives full conversion credit to the final known source or touchpoint before conversion.',+ },+ {+ title: 'Live Visitors',+ slug: 'live-visitors',+ category: 'Real-time analytics',+ description:+ 'The visitors currently active on a website, usually shown in real time with their pages, sources, and locations.',+ },+ {+ title: 'Customer Acquisition Cost',+ slug: 'customer-acquisition-cost',+ category: 'Campaigns',+ description:+ 'The average cost to acquire a new customer, calculated from sales and marketing spend over a defined period.',+ },+ {+ title: 'Customer Lifetime Value',+ slug: 'customer-lifetime-value',+ category: 'Campaigns',+ description:+ 'The estimated total revenue or gross profit a customer generates over their relationship with a business.',+ },+ {+ title: 'Meta Description',+ slug: 'meta-description',+ category: 'SEO',+ description:+ 'An HTML summary of a page that can appear in search results and influence search click-through rate.',+ },+ {+ title: 'Multi-touch Attribution',+ slug: 'multi-touch-attribution',+ category: 'Attribution',+ description:+ 'Attribution that distributes conversion credit across multiple channels or touchpoints in a customer journey.',+ },+ {+ title: 'Organic Search',+ slug: 'organic-search',+ category: 'Acquisition',+ description:+ 'Unpaid traffic from search engines, typically driven by ranking pages, technical SEO, content quality, and search intent.',+ },+ {+ title: 'Page Title',+ slug: 'page-title',+ category: 'SEO',+ description:+ 'The HTML title of a page, used by browsers and search engines to describe the page topic in tabs and results.',+ },+ {+ title: 'Page Speed',+ slug: 'page-speed',+ category: 'Performance',+ description:+ 'How quickly a page loads and becomes usable, including server response, asset loading, rendering, and Core Web Vitals.',+ },+ {+ title: 'Page View',+ slug: 'page-view',+ category: 'Metrics',+ description:+ 'A tracked instance of a page being loaded or viewed, often counted every time a visitor opens or navigates to a page.',+ },+ {+ title: 'Personal Data',+ slug: 'personal-data',+ category: 'Privacy',+ description:+ 'Information that can identify a person directly or indirectly, such as an email address, user ID, precise location, or IP address.',+ },+ {+ title: 'Public Dashboard',+ slug: 'public-dashboard',+ category: 'Reporting',+ description:+ 'A shareable analytics dashboard that lets people view selected metrics without needing full account access.',+ },+ {+ title: 'Real User Monitoring',+ slug: 'real-user-monitoring',+ category: 'Performance',+ description:+ 'Performance monitoring based on real visitor devices, browsers, networks, and pages rather than lab tests alone.',+ },+ {+ title: 'Referral Traffic',+ slug: 'referral-traffic',+ category: 'Attribution',+ description:+ 'Visitors who arrive after clicking a link from another website, excluding common search engines and tagged campaigns.',+ },+ {+ title: 'Referrer',+ slug: 'referrer',+ category: 'Attribution',+ description:+ 'The source URL or origin the browser reports when a visitor clicks from one page to another.',+ },+ {+ title: 'Return on Investment',+ slug: 'return-on-investment',+ category: 'Campaigns',+ description:+ 'A profitability metric that compares the value generated by a campaign, channel, or project against its cost.',+ },+ {+ title: 'Revenue Analytics',+ slug: 'revenue-analytics',+ category: 'Revenue',+ description:+ 'Analytics that connects traffic, campaigns, users, events, and conversions to revenue and payment data.',+ },+ {+ title: 'Revenue Attribution',+ slug: 'revenue-attribution',+ category: 'Attribution',+ description:+ 'The process of connecting revenue back to the channels, campaigns, pages, and touchpoints that influenced it.',+ },+ {+ title: 'Robots.txt',+ slug: 'robots-txt',+ category: 'SEO',+ description:+ 'A text file that tells search engine crawlers which parts of a website they are allowed or disallowed to crawl.',+ },+ {+ title: 'Search Analytics',+ slug: 'search-analytics',+ category: 'SEO',+ description:+ 'The analysis of search queries, impressions, clicks, rankings, pages, and search visibility over time.',+ },+ {+ title: 'Search Query',+ slug: 'search-query',+ category: 'SEO',+ description:+ 'The word or phrase a person enters into a search engine before seeing or clicking a search result.',+ },+ {+ title: 'SERP',+ slug: 'serp',+ category: 'SEO',+ description:+ 'The search engine results page shown after a query, including organic results, ads, snippets, and other features.',+ },+ {+ title: 'Server-side Tracking',+ slug: 'server-side-tracking',+ category: 'Technology',+ description:+ 'Analytics collection performed from a server rather than only from browser JavaScript, often used for reliability and control.',+ },+ {+ title: 'Search Engine Optimization',+ slug: 'search-engine-optimization',+ category: 'SEO',+ description:+ 'The practice of improving a website so search engines can discover, understand, and rank its pages for relevant queries.',+ },+ {+ title: 'Segmentation',+ slug: 'segmentation',+ category: 'Analysis',+ description:+ 'The practice of splitting analytics data into groups by source, country, device, browser, campaign, behavior, or user property.',+ },+ {+ title: 'Session',+ slug: 'session',+ category: 'Metrics',+ description:+ 'A group of interactions from one visitor within a defined time window, usually ending after inactivity or a new campaign source.',+ },+ {+ title: 'Session Replay',+ slug: 'session-replay',+ category: 'Product analytics',+ description:+ 'A recorded reconstruction of a visitor session that helps teams debug journeys, friction, errors, and UX issues.',+ },+ {+ title: 'Sitemap',+ slug: 'sitemap',+ category: 'SEO',+ description:+ 'A file or page that lists important URLs so search engines and users can discover website content more easily.',+ },+ {+ title: 'Scroll Depth',+ slug: 'scroll-depth',+ category: 'Metrics',+ description:+ 'A measurement of how far visitors scroll down a page, often used to evaluate content engagement.',+ },+ {+ title: 'Third Party Cookie',+ slug: 'third-party-cookie',+ category: 'Privacy',+ description:+ 'A cookie set by a domain other than the website a visitor is viewing, commonly used for cross-site advertising and tracking.',+ },+ {+ title: 'Time on Page',+ slug: 'time-on-page',+ category: 'Metrics',+ description:+ 'The estimated amount of time a visitor spends on a page before navigating away, closing the tab, or becoming inactive.',+ },+ {+ title: 'Traffic Channel',+ slug: 'traffic-channel',+ category: 'Attribution',+ description:+ 'A grouped source of website visits, such as organic search, referral, direct, paid search, email, social, or display.',+ },+ {+ title: 'Traffic Spike',+ slug: 'traffic-spike',+ category: 'Monitoring',+ description:+ 'A sudden increase in website visits, events, errors, or conversions compared with the normal baseline.',+ },+ {+ title: 'UTM Code',+ slug: 'utm-code',+ category: 'Campaigns',+ description:+ 'A campaign tracking parameter added to URLs so analytics tools can identify source, medium, campaign, term, and content.',+ },+ {+ title: 'Unique Visitor',+ slug: 'unique-visitor',+ category: 'Metrics',+ description:+ 'An estimate of one distinct visitor during a reporting period, counted once even if they view multiple pages.',+ },+ {+ title: 'Uptime Monitoring',+ slug: 'uptime-monitoring',+ category: 'Monitoring',+ description:+ 'Automated checks that verify whether a website, endpoint, or service is reachable and responding as expected.',+ },+ {+ title: 'User Agent',+ slug: 'user-agent',+ category: 'Technology',+ description:+ 'A browser-provided string that identifies the client application, operating system, device type, and browser version.',+ },+ {+ title: 'User Profile',+ slug: 'user-profile',+ category: 'Product analytics',+ description:+ 'A view of known user or visitor activity that groups sessions, events, attributes, and journey history.',+ },+ {+ title: 'Web Analytics',+ slug: 'web-analytics',+ category: 'Analytics fundamentals',+ description:+ 'The collection and analysis of website traffic, visitor behavior, conversion, performance, and acquisition data.',+ },+ {+ title: 'Website Monitoring',+ slug: 'website-monitoring',+ category: 'Monitoring',+ description:+ 'The ongoing measurement of website availability, performance, errors, and traffic health so issues are caught quickly.',+ },+]diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.tsindex aefb35f83..b48181f08 100644--- a/web/app/lib/constants/index.ts+++ b/web/app/lib/constants/index.ts@@ -487,6 +487,7 @@ export const localisedLanguages = whitelist.filter(// as do API routes and other internal endpoints.const UNLOCALISED_PATH_PATTERNS: RegExp[] = [/^\/blog(\/|$)/,+ /^\/glossary(\/|$)/,/^\/api(\/|$)/,/^\/backend(\/|$)/,/^\/_internal_data/,diff --git a/web/app/routes/glossary.tsx b/web/app/routes/glossary.tsxnew file mode 100644index 000000000..28a2fa7e8--- /dev/null+++ b/web/app/routes/glossary.tsx@@ -0,0 +1,299 @@+import { ArrowRightIcon } from '@phosphor-icons/react'+import { redirect, type MetaFunction } from 'react-router'+import type { SitemapFunction } from 'remix-sitemap'++import { glossaryItems, type GlossaryItem } from '~/data/glossary'+import {+ getOgImageUrl,+ isDisableMarketingPages,+ isSelfhosted,+} from '~/lib/constants'+import { Badge } from '~/ui/Badge'+import Button from '~/ui/Button'+import { Link } from '~/ui/Link'+import { Text } from '~/ui/Text'+import { getDescription, getPreviewImage, getTitle } from '~/utils/seo'++const title = 'Web Analytics Glossary'+const description =+ 'A clear web analytics glossary for marketers, founders, and developers. Learn common website metrics, traffic sources, attribution terms, privacy concepts, SEO terms, and conversion analytics definitions.'++const recommendedSlugs = [+ 'web-analytics',+ 'bounce-rate',+ 'conversion-rate',+ 'utm-code',+ 'traffic-channel',+ 'gdpr',+] as const++const glossaryBySlug = new Map(glossaryItems.map((item) => [item.slug, item]))++const groupedItems = glossaryItems+ .slice()+ .sort((a, b) => a.title.localeCompare(b.title))+ .reduce<Record<string, GlossaryItem[]>>((groups, item) => {+ const letter = item.title.charAt(0).toUpperCase()+ groups[letter] = groups[letter] || []+ groups[letter].push(item)+ return groups+ }, {})++const recommendedItems = recommendedSlugs+ .map((slug) => glossaryBySlug.get(slug))+ .filter((item): item is GlossaryItem => Boolean(item))++const letters = Object.keys(groupedItems).sort((a, b) => a.localeCompare(b))++export const meta: MetaFunction = () => [+ ...getTitle(title),+ ...getDescription(description),+ ...getPreviewImage(getOgImageUrl(title, description)),+]++export const sitemap: SitemapFunction = () => ({+ priority: 0.8,+ exclude: isSelfhosted || isDisableMarketingPages,+})++export async function loader() {+ if (isSelfhosted || isDisableMarketingPages) {+ return redirect('/dashboard', 302)+ }++ return null+}++export default function Glossary() {+ return (+ <div className='bg-gray-50 dark:bg-slate-950'>+ <main className='mx-auto max-w-6xl px-4 py-12 sm:px-6 lg:px-8 lg:py-16'>+ <header className='border-b border-gray-200 pb-10 dark:border-slate-800'>+ <div className='max-w-3xl'>+ <Badge label='Glossary' colour='slate' />+ <Text as='h1' weight='bold' className='mt-5 text-4xl text-pretty'>+ Web Analytics Glossary+ </Text>+ <Text+ as='p'+ size='lg'+ colour='secondary'+ className='mt-5 max-w-2xl leading-8 text-pretty'+ >+ Plain definitions for the web analytics metrics, privacy terms,+ traffic sources, attribution concepts, SEO language, and+ conversion signals used by modern website analytics teams.+ </Text>+ </div>++ <dl className='mt-8 flex flex-wrap gap-x-10 gap-y-5 border-t border-gray-200 pt-6 dark:border-slate-800'>+ <div>+ <Text as='dt' size='xs' colour='secondary' weight='medium'>+ Terms+ </Text>+ <Text+ as='dd'+ size='lg'+ weight='semibold'+ className='mt-1 tabular-nums'+ >+ {glossaryItems.length}+ </Text>+ </div>+ <div>+ <Text as='dt' size='xs' colour='secondary' weight='medium'>+ Coverage+ </Text>+ <Text as='dd' size='lg' weight='semibold' className='mt-1'>+ Metrics to privacy+ </Text>+ </div>+ <div>+ <Text as='dt' size='xs' colour='secondary' weight='medium'>+ Updated+ </Text>+ <Text as='dd' size='lg' weight='semibold' className='mt-1'>+ June 2026+ </Text>+ </div>+ </dl>+ </header>++ <section className='mt-12'>+ <div className='flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between'>+ <div>+ <Text as='h2' size='2xl' weight='bold'>+ Recommended first reads+ </Text>+ <Text as='p' colour='secondary' className='mt-2 max-w-2xl'>+ Start here if you want the shortest route from raw visitor+ activity to analytics you can act on.+ </Text>+ </div>+ <Link+ to='#all-terms'+ className='group inline-flex max-w-max items-center text-sm font-medium text-slate-900 transition-colors duration-150 ease-out hover:text-slate-700 dark:text-slate-100 dark:hover:text-white'+ >+ View all terms+ <ArrowRightIcon className='ml-1.5 size-4 transition-transform duration-150 ease-out group-hover:translate-x-0.5' />+ </Link>+ </div>++ <div className='mt-6 divide-y divide-gray-200 border-y border-gray-200 dark:divide-slate-800 dark:border-slate-800'>+ {recommendedItems.map((item, index) => (+ <Link+ key={item.slug}+ to={`/glossary/${item.slug}`}+ className='group flex gap-4 py-4 transition-colors duration-150 ease-out hover:bg-gray-100/70 sm:gap-6 dark:hover:bg-slate-900/70'+ >+ <Text+ as='span'+ size='sm'+ colour='secondary'+ className='w-6 shrink-0 pt-0.5 tabular-nums'+ >+ {String(index + 1).padStart(2, '0')}+ </Text>+ <div className='min-w-0 flex-1'>+ <div className='flex flex-wrap items-center gap-2'>+ <Text as='h3' size='lg' weight='semibold'>+ {item.title}+ </Text>+ <Badge label={item.category} colour='slate' size='sm' />+ </div>+ <Text+ as='p'+ size='sm'+ colour='secondary'+ className='mt-1.5 max-w-3xl leading-6'+ >+ {item.description}+ </Text>+ </div>+ <ArrowRightIcon className='mt-1 size-4 shrink-0 text-gray-700 opacity-60 transition-[opacity,transform] duration-150 ease-out group-hover:translate-x-0.5 group-hover:opacity-100 dark:text-gray-200' />+ </Link>+ ))}+ </div>+ </section>++ <section id='all-terms' className='mt-14'>+ <div className='border-b border-gray-200 pb-5 dark:border-slate-800'>+ <div>+ <Text as='h2' size='2xl' weight='bold'>+ All glossary terms+ </Text>+ <Text+ as='p'+ colour='secondary'+ className='mt-2 max-w-2xl leading-7'+ >+ An alphabetical index of Swetrix glossary entries for website+ analytics, product analytics, privacy-first measurement, and+ conversion tracking.+ </Text>+ </div>+ </div>++ <div className='divide-y divide-gray-200 dark:divide-slate-800'>+ {letters.map((letter) => (+ <section+ key={letter}+ className='grid gap-4 py-8 md:grid-cols-[4rem_minmax(0,1fr)]'+ >+ <div>+ <Text as='h3' size='3xl' weight='bold' colour='secondary'>+ {letter}+ </Text>+ </div>++ <div className='divide-y divide-gray-200 dark:divide-slate-800'>+ {groupedItems[letter].map((item) => (+ <Link+ key={item.slug}+ to={`/glossary/${item.slug}`}+ className='group flex gap-4 py-4 first:pt-0 last:pb-0'+ >+ <div className='min-w-0 flex-1'>+ <div className='flex flex-wrap items-center gap-2'>+ <Text as='h4' weight='semibold'>+ {item.title}+ </Text>+ <Badge+ label={item.category}+ colour='slate'+ size='sm'+ className='hidden sm:inline-flex'+ />+ </div>+ <Text+ as='p'+ size='sm'+ colour='secondary'+ className='mt-1.5 max-w-3xl leading-6'+ >+ {item.description}+ </Text>+ </div>+ <ArrowRightIcon className='mt-1 size-4 shrink-0 text-gray-700 opacity-0 transition-[opacity,transform] duration-150 ease-out group-hover:translate-x-0.5 group-hover:opacity-100 sm:opacity-50 dark:text-gray-200' />+ </Link>+ ))}+ </div>+ </section>+ ))}+ </div>+ </section>++ <section className='mt-14 border-t border-gray-200 pt-8 dark:border-slate-800'>+ <div className='flex flex-col gap-5 sm:flex-row sm:items-center sm:justify-between'>+ <div>+ <Text as='h2' size='2xl' weight='bold'>+ Measure it without the surveillance baggage+ </Text>+ <Text+ as='p'+ colour='secondary'+ className='mt-2 max-w-2xl leading-7'+ >+ Swetrix tracks traffic, conversions, funnels, custom events,+ performance, errors, and revenue with privacy-first analytics.+ </Text>+ </div>+ <div className='flex flex-wrap gap-3'>+ <Button to='/signup' className='active:scale-[0.97]'>+ Start free trial+ <ArrowRightIcon className='ml-1.5 size-4' />+ </Button>+ <Button+ to='/'+ variant='secondary'+ className='active:scale-[0.97]'+ >+ Learn more+ </Button>+ </div>+ </div>+ </section>+ </main>+ <script+ type='application/ld+json'+ dangerouslySetInnerHTML={{+ __html: JSON.stringify({+ '@context': 'https://schema.org',+ '@type': 'DefinedTermSet',+ name: title,+ description,+ url: 'https://swetrix.com/glossary',+ hasDefinedTerm: glossaryItems.map((item) => ({+ '@type': 'DefinedTerm',+ name: item.title,+ description: item.description,+ url: `https://swetrix.com/glossary/${item.slug}`,+ })),+ })+ .replace(/</g, '\\u003c')+ .replace(/\u2028|\u2029/g, ''),+ }}+ />+ </div>+ )+}diff --git a/web/app/utils/routes.ts b/web/app/utils/routes.tsindex 3d590141c..dc3f1be2c 100644--- a/web/app/utils/routes.ts+++ b/web/app/utils/routes.ts@@ -36,6 +36,7 @@ const routes = Object.freeze({ga4_import_connected: '/ga4-import-connected',open: '/open',blog: '/blog',+ glossary: '/glossary',imprint: '/imprint',forMarketers: '/for-marketers',forStartups: '/for-startups',diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex d639b6744..695350aa6 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -3507,6 +3507,7 @@"pp": "Privacy Policy","tos": "Terms of Service","blog": "Blog",+ "glossary": "Glossary","tools": "Free tools","utm": "UTM Generator","ctr": "CTR Calculator",