OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(public): redirects work again and compare pages are redesigned (#557)
Carl-Gerhard Lindesvärd0675707d88d2
diff --git a/apps/public/content/articles/cohort-analysis.mdx b/apps/public/content/articles/cohort-analysis.mdxindex 188c09e8a..2449e080d 100644--- a/apps/public/content/articles/cohort-analysis.mdx+++ b/apps/public/content/articles/cohort-analysis.mdx@@ -75,6 +75,13 @@ You don't need SQL or a spreadsheet full of `VLOOKUP`s. Any product analytics to4. **Choose the interval.** Daily for high-frequency consumer apps, weekly for most B2B and SaaS products, monthly for low-frequency tools like tax software. Match the interval to how often a healthy user is supposed to come back.5. **Read the grid, then the curve.** Scan down the columns for the cohort-over-cohort trend, then across the rows to see where the curve flattens. Build the report once in a tool like [OpenPanel's retention view](/features/retention) and it updates as new cohorts mature.+<ArticleCta+ id="cohort-analysis-steps"+ title="Build this cohort grid on your own data"+ description="OpenPanel's retention report turns your signup and return events into a cohort table and retention curve, and you can save behavioral cohorts to filter any other report. Start a 30-day trial and add the SDK in a few minutes."+ secondary={{ text: 'See the retention report', href: '/features/retention' }}+/>+## A worked exampleA small SaaS team is worried about churn. Their total active users are flat, which they read as "stable." The cohort grid tells a different story.diff --git a/apps/public/content/articles/open-source-web-analytics.mdx b/apps/public/content/articles/open-source-web-analytics.mdxindex 352eeb728..e9e4ced18 100644--- a/apps/public/content/articles/open-source-web-analytics.mdx+++ b/apps/public/content/articles/open-source-web-analytics.mdx@@ -115,7 +115,7 @@ After your 30-day free trial, you pick the plan that covers your monthly events.OpenPanel can replace Mixpanel, Amplitude, and Google Analytics by offering both product and web analytics in a single, privacy-friendly platform. It tracks events, pageviews, user journeys, funnels, and retention — all without cookies.</FaqItem><FaqItem question="What's included in the open source version of OpenPanel?">-Everything — custom dashboards, charts, real-time views, user/session drill-downs, funnels, retention, and all SDKs ship under an AGPL-3.0 license with no feature gating. The self-hosted version is identical to the cloud version.+Everything — custom dashboards, charts, real-time views, user/session drill-downs, funnels and retention — ships in the AGPL-3.0 platform with no feature gating. The SDKs are MIT. Self-hosting is the full product, with releases arriving a month or two after Cloud.</FaqItem><FaqItem question="What are the hosting requirements for OpenPanel?">A mid-range VPS (approximately 4 vCPU, 8 GB RAM, SSD) running Docker Compose is sufficient for most projects. Scale vertically as event volume grows. A decent VPS costs $20-50/month and can handle millions of events.@@ -125,6 +125,13 @@ Yes. OpenPanel Cloud starts with a 30-day free trial (no credit card required),</FaqItem></Faqs>+<ArticleCta+ id="open-source-web-analytics-openpanel"+ title="Try the open source option with product analytics built in"+ description="Start a 30-day cloud trial and set up a funnel or retention report on your own events in a few minutes. Prefer to run it yourself? The AGPL-3.0 platform self-hosts with Docker Compose."+ secondary={{ text: 'Self-host OpenPanel', href: '/docs/self-hosting/self-hosting' }}+/>+### Alternative to OpenPanel**Plausible Analytics**- Open source, privacy-focused web analytics with flat pricing@@ -183,7 +190,7 @@ Anonymous events are 55-80% cheaper than identified events, which can significanPostHog uses volume-based step-down pricing. After the first 1M free events, you pay $0.00005 per event for the next million, then the rate drops as volume increases. A company sending 12M events monthly would pay approximately $393/month.</FaqItem><FaqItem question="What's the difference between PostHog and OpenPanel?">-OpenPanel is more affordable than PostHog once you exceed 1 million events, making it a cost-effective choice for growing projects. While PostHog offers a broader range of features (flags, experiments, surveys, error tracking), OpenPanel focuses on web and product analytics with simpler self-hosting and identical cloud/self-hosted feature parity.+OpenPanel is more affordable than PostHog once you exceed 1 million events, making it a cost-effective choice for growing projects. While PostHog offers a broader range of features (flags, experiments, surveys, error tracking), OpenPanel focuses on web and product analytics with simpler self-hosting and no feature gating between cloud and self-hosted.</FaqItem><FaqItem question="What tools can PostHog replace?">By bundling product analytics, web analytics, session replay, feature flags, experiments, error tracking, and surveys, PostHog can replace Mixpanel, Amplitude, Google Analytics, Hotjar/FullStory, and LaunchDarkly in one stack.diff --git a/apps/public/content/articles/self-hosted-product-analytics.mdx b/apps/public/content/articles/self-hosted-product-analytics.mdxindex 7060c845d..b956867cc 100644--- a/apps/public/content/articles/self-hosted-product-analytics.mdx+++ b/apps/public/content/articles/self-hosted-product-analytics.mdx@@ -77,7 +77,7 @@ Full guide: [How to self-host OpenPanel](/articles/how-to-self-host-openpanel) |### Pricing-Self-hosting is free. All features included — the self-hosted version is identical to the cloud version with no feature gating.+Self-hosting is free. All features included, with no feature gating; releases reach self-hosted a month or two after Cloud.Cloud plans start at $2.50/month (5,000 events) and scale to $90/month for 1 million events. Every tier includes every feature.diff --git a/apps/public/content/articles/self-hosted-web-analytics.mdx b/apps/public/content/articles/self-hosted-web-analytics.mdxindex cad17c060..b99b503a0 100644--- a/apps/public/content/articles/self-hosted-web-analytics.mdx+++ b/apps/public/content/articles/self-hosted-web-analytics.mdx@@ -67,7 +67,7 @@ For detailed instructions, see the [self-hosting guide](/docs/self-hosting/self-- Product analytics: funnels, retention, user identification, custom events- Cookieless tracking — GDPR/CCPA compliant without consent banners- Multiple SDKs (JavaScript, React, Next.js, Vue, and more)-- Self-hosted version is identical to the cloud version — no feature gating+- Self-hosting is the full product with no feature gating; releases reach self-hosted a month or two after Cloud### PricingSelf-hosting is free. Cloud plans start at $2.50/month for up to 5,000 events, scaling to $90/month for 1 million events. All features included at every tier.@@ -76,13 +76,20 @@ Self-hosting is free. Cloud plans start at $2.50/month for up to 5,000 events, s- Only self-hosted tool that combines web and product analytics at this price point- Simple Docker Compose deployment with guided setup- Cookieless by default — no cookie banners needed-- Open source (AGPL-3.0) with no feature differences between cloud and self-hosted+- Open source (AGPL-3.0), and self-hosting is not a cut-down community edition### Cons- Newer project with a smaller community than Matomo or PostHog- No built-in heatmaps (yet)- Self-hosting still requires server maintenance+<ArticleCta+ id="self-hosted-web-analytics-openpanel"+ title="See OpenPanel on your own traffic first"+ description="Start a 30-day cloud trial to try funnels, retention and the web dashboard on real data before you provision a server. When you're ready, deploy it yourself with Docker Compose."+ secondary={{ text: 'Read the self-hosting guide', href: '/docs/self-hosting/self-hosting' }}+/>+---## Plausiblediff --git a/apps/public/content/compare/amplitude-alternative.json b/apps/public/content/compare/amplitude-alternative.jsonindex 00bd871fd..d83a90271 100644--- a/apps/public/content/compare/amplitude-alternative.json+++ b/apps/public/content/compare/amplitude-alternative.json@@ -425,24 +425,6 @@}]},- "benefits_section": {- "label": "Why teams switch",- "title": "Everything you need, none of what you don't",- "description": "Amplitude packs in features most teams never use — and charges accordingly. OpenPanel focuses on the analytics that actually drive product decisions, at a price that makes sense from day one.",- "cta": {- "label": "Start free with OpenPanel",- "href": "https://dashboard.openpanel.dev/onboarding"- },- "benefits": [- "Event tracking, funnels, retention, and cohorts — without the enterprise learning curve",- "Cookie-free by default: no consent banners, no GDPR headaches for EU users",- "2.3 KB SDK vs Amplitude's 36–96 KB — real impact on page speed and Core Web Vitals",- "Self-host on your own infrastructure with Docker, or use our EU-only cloud",- "Transparent pricing from $2.50/month — no MTU surprises, no overage fees at 1.2x",- "Open source (AGPL-3.0): inspect the code, fork it, run it yourself",- "Web analytics and product analytics in one tool — no stitching together separate products"- ]- },"faqs": {"title": "Frequently asked questions","intro": "Common questions about Amplitude alternatives and switching to OpenPanel.",diff --git a/apps/public/content/compare/plausible-alternative.json b/apps/public/content/compare/plausible-alternative.jsonindex 561f5c142..fdd798177 100644--- a/apps/public/content/compare/plausible-alternative.json+++ b/apps/public/content/compare/plausible-alternative.json@@ -2,278 +2,269 @@"slug": "plausible-alternative","page_type": "alternative","seo": {- "title": "Best Plausible Alternative 2026 - Open Source & Free",- "description": "Looking for a Plausible alternative? OpenPanel adds product analytics, user identification, and deeper insights to privacy-first web analytics. Open source and free to self-host.",+ "title": "Plausible Alternative with Retention and User Profiles",+ "description": "OpenPanel vs Plausible: both are cookieless and AGPL. OpenPanel adds retention, cohorts and user profiles. Prices at 10k to 10M pageviews, and when to stay put.","noindex": false},"hero": {- "heading": "Best Plausible Alternative",- "subheading": "Love Plausible's simplicity and privacy focus? OpenPanel adds product analytics capabilities - funnels, cohorts, retention, and user identification - while staying lightweight and cookie-free by default.",+ "heading": "A Plausible alternative for when pageviews stop being enough",+ "subheading": "Plausible tells you how many people came and where from. It can't tell you whether the people who signed up in March are still around in May, because it never knows who anyone is. OpenPanel keeps the cookieless web dashboard and adds retention, cohorts and user profiles on the same events.","badges": [- "Open-source",- "Privacy-first",- "Product Analytics",- "Cookie-free"+ "AGPL-3.0, like Plausible",+ "Cookieless by default",+ "Retention and cohorts",+ "Free to self-host"]},"competitor": {"name": "Plausible Analytics","logo": "/logos/plausible.svg","url": "https://plausible.io",- "short_description": "Privacy-focused, lightweight Google Analytics alternative for websites with EU-based hosting and simple dashboard.",- "founded": 2018,- "headquarters": "Tartu, Estonia"+ "short_description": "Cookieless web analytics with a one-page dashboard, hosted in Germany and built by a small bootstrapped team.",+ "headquarters": "Estonia"+ },+ "meta": {+ "author": "Carl-Gerhard Lindesvärd",+ "updated": "2026-10-18",+ "prices_checked": "2026-10-18"},"overview": {- "title": "Why consider OpenPanel over Plausible?",+ "title": "What Plausible does well, and where it stops","paragraphs": [- "Plausible Analytics has earned a strong reputation as a lightweight, privacy-first alternative to Google Analytics. Its simple dashboard and cookie-free tracking make it a great choice for bloggers and content sites that need basic traffic metrics without the complexity. But as your product grows, you'll quickly hit the limits of what Plausible can offer.",- "OpenPanel shares Plausible's commitment to privacy \u2014 cookie-free tracking, no consent banners, and EU-based data processing \u2014 but goes significantly further with full product analytics capabilities. Where Plausible gives you pageviews, referrers, and country breakdowns, OpenPanel adds funnels, retention analysis, cohort breakdowns, user profiles, and A/B testing. It's the best of both worlds: Plausible-style simplicity for web analytics combined with Mixpanel-style depth for product analytics.",- "Self-hosting is another area where OpenPanel has a clear advantage. Plausible Community Edition requires you to set up and manage PostgreSQL and ClickHouse separately. OpenPanel ships a one-command setup script for its Docker Compose stack (ClickHouse, Postgres, and Redis), making deployment and maintenance far simpler. And like Plausible, OpenPanel is free and unlimited to self-host; its cloud starts at $2.50/month for 5,000 events after a 30-day trial.",- "If you've outgrown simple web analytics and need to understand how users actually interact with your product \u2014 without adding a second analytics tool \u2014 OpenPanel is a natural next step from Plausible."+ "Plausible is a well-made tool. The dashboard fits on one screen, the script is under 1 KB, and nobody on your team needs training to read it. If you run a blog, a docs site or a marketing site, it does the job and you can stop reading here.",+ "The limit is by design. Plausible counts visitors anonymously and never ties events to a person, so it can't answer questions that need a person: what share of last month's signups came back this week, which accounts use a feature, what a single user did before they churned. Its funnels (2 to 8 steps) and user journeys exist, but only on the Business plan, and they count visitors within a visit rather than following a user over weeks.",+ "OpenPanel tracks the same pageviews and referrers without cookies, then lets you call identify() when someone logs in. From that point the same events feed retention tables, cohorts you can reuse as filters, user profiles with their full event history, and funnels you can break down by any property. You don't need a second tool for the logged-in part of your product.",+ "Self-hosting is the other difference. Plausible Community Edition ships twice a year and leaves out funnels, user journeys and revenue goals. OpenPanel's self-hosted version is the full product, with releases arriving a month or two after Cloud."]},"summary_comparison": {- "title": "OpenPanel vs Plausible: Which is right for you?",- "intro": "Both are privacy-focused analytics platforms. Plausible focuses on simple web traffic metrics. OpenPanel adds product analytics with user identification.",- "one_liner": "Plausible excels at simple web analytics; OpenPanel adds product analytics, user identification, and simpler self-hosting.",+ "title": "OpenPanel vs Plausible: which one fits",+ "intro": "Both are open source under AGPL-3.0, both are cookieless, and both host their cloud in Germany. The split is anonymous traffic stats versus product analytics on identified users.",+ "one_liner": "Pick Plausible for traffic stats on a content site. Pick OpenPanel when you also need to know what logged-in users do over time.","best_for_openpanel": [- "SaaS products needing user-level analytics and retention tracking",- "Teams outgrowing simple web analytics needing product features",- "Apps requiring user identification for logged-in users",- "Mobile app developers needing native iOS, Android, React Native, Flutter SDKs"+ "SaaS and apps that need retention by signup cohort",+ "Teams that want funnels and user flows without paying for a Business tier",+ "Products with logged-in users you need to look up one by one",+ "Self-hosters who want funnels and retention, not a reduced community edition",+ "Mobile apps: there are Swift, Kotlin and React Native SDKs"],"best_for_competitor": [- "Simple content sites and blogs wanting traffic stats only",- "Teams valuing the sub-1KB script size above all else",- "Users wanting Google Search Console integration in dashboard",- "Organizations prioritizing Germany/EU-only data hosting"+ "Blogs, docs and marketing sites that only need traffic numbers",+ "Teams that want the smallest possible script (under 1 KB)",+ "Anyone who needs to import years of Google Analytics history",+ "People who value a dashboard nobody has to learn"]},"highlights": {- "title": "Key differences at a glance",- "intro": "Here's how OpenPanel and Plausible compare on key factors.",+ "title": "The differences that decide it",+ "intro": "Most rows in a feature table match. These are the ones that don't.","items": [{- "label": "Analytics Depth",- "openpanel": "Web + Product Analytics",- "competitor": "Web Analytics Only",- "notes": "OpenPanel combines web analytics with product analytics - funnels, retention, cohorts, and user profiles. Plausible focuses purely on website traffic metrics."+ "label": "Who it knows about",+ "openpanel": "Anonymous visitors, plus identified users after you call identify()",+ "competitor": "Anonymous visitors only, by design"+ },+ {+ "label": "Retention and cohorts",+ "openpanel": "Retention tables, curves and saved cohorts on every plan",+ "competitor": "Not available"},{- "label": "User Identification",- "openpanel": "Yes - Track individual users",- "competitor": "No - Anonymous aggregate only",- "notes": "OpenPanel lets you identify and track individual users across sessions. Plausible intentionally doesn't track individuals - all data is anonymous and aggregate."+ "label": "Funnels",+ "openpanel": "Steps from any event, a conversion window, breakdown by any property",+ "competitor": "2 to 8 steps, Business plan only"+ },+ {+ "label": "Self-hosted version",+ "openpanel": "Full product; releases follow Cloud by a month or two",+ "competitor": "Community Edition: twice a year, no funnels, user journeys or revenue goals"+ },+ {+ "label": "Tracking script",+ "openpanel": "About 3 KB gzipped",+ "competitor": "Under 1 KB"+ }+ ]+ },+ "competitor_strengths": {+ "title": "Where Plausible is better",+ "intro": "For traffic stats on a content site, these are good reasons to stay.",+ "items": [+ {+ "title": "A smaller script",+ "description": "Plausible's tracker is under 1 KB. OpenPanel's is about 3 KB gzipped. Both are small next to most analytics tools, but Plausible is smaller."},{- "label": "SDK Size",- "openpanel": "2.3 KB",- "competitor": "< 1 KB",- "notes": "Plausible's script is extremely lightweight at under 1KB. OpenPanel's 2.3KB SDK is still very light but includes more functionality."+ "title": "A dashboard nobody has to learn",+ "description": "Plausible puts everything for a site on one page. OpenPanel has more reports, which also means more to learn."},{- "label": "Cookie-Free",- "openpanel": "Yes (by default)",- "competitor": "Yes (by default)",- "notes": "Both platforms are cookie-free by default and don't require consent banners under GDPR for basic analytics."+ "title": "Google Analytics import",+ "description": "Plausible can import your Google Analytics history. OpenPanel can't, so a switch from GA starts with an empty chart."},{- "label": "Self-Hosting Complexity",- "openpanel": "Docker Compose with one-command setup script",- "competitor": "Docker Compose with PostgreSQL + ClickHouse",- "notes": "Both are Docker Compose stacks. OpenPanel ships a one-command setup script that handles DB init, SSL, and config — Plausible Community Edition requires manual PostgreSQL + ClickHouse configuration."+ "title": "Lower prices for traffic stats only",+ "description": "If you only need pageviews and sources, Plausible Starter is cheaper from 1M pageviews up: $69 against $90 at 1M, and $169 against $350 at 10M."}]},"feature_comparison": {"title": "Feature comparison",- "intro": "Both are privacy-focused, but with different capabilities and depths.",+ "intro": "Plausible plan names are noted where a feature needs a specific tier. Checked against plausible.io on October 18, 2026.","groups": [{- "group": "Web Analytics",+ "group": "Web analytics","features": [{- "name": "Page Views & Visitors",+ "name": "Visitors, pageviews, bounce rate, visit duration","openpanel": true,"competitor": true},{- "name": "Traffic Sources",+ "name": "Referrers and UTM parameters","openpanel": true,"competitor": true},{- "name": "Geographic Data",+ "name": "Country, region and city","openpanel": true,- "competitor": true,- "notes": "Both offer country, region, and city-level data"+ "competitor": true},{- "name": "Device & Browser",+ "name": "Devices, browsers, operating systems","openpanel": true,"competitor": true},{- "name": "UTM Campaign Tracking",+ "name": "Realtime view","openpanel": true,"competitor": true},{- "name": "Real-Time Dashboard",+ "name": "Google Search Console data",+ "openpanel": true,+ "competitor": true+ },+ {+ "name": "Annotations on charts","openpanel": true,"competitor": true}]},{- "group": "Product Analytics",+ "group": "Product analytics","features": [{- "name": "Custom Event Tracking",+ "name": "Custom events","openpanel": true,"competitor": true,- "notes": "Plausible calls these 'Goals'"+ "notes": "Plausible calls them goals"},{- "name": "Funnel Analysis",+ "name": "Custom properties on events","openpanel": true,- "competitor": true,- "notes": "Plausible added funnels (2-8 steps) in 2022"+ "competitor": "Business plan"},{- "name": "Retention Analysis",+ "name": "Funnels","openpanel": true,- "competitor": false,- "notes": "Plausible focuses on aggregate metrics, not user retention"+ "competitor": "Business plan, 2 to 8 steps"},{- "name": "User Profiles",+ "name": "Funnel breakdown by property","openpanel": true,"competitor": false,- "notes": "Plausible intentionally doesn't track individual users"+ "notes": "Plausible funnels can be filtered by source, page, device or location"},{- "name": "Cohort Analysis",+ "name": "User journeys / user flows","openpanel": true,- "competitor": false,- "notes": "Plausible's anonymous model doesn't support cohorts"+ "competitor": "Business plan",+ "notes": "OpenPanel shows flows before, after or between events as a sankey"},{- "name": "User Path Analysis",- "openpanel": true,- "competitor": false,- "notes": "Plausible shows entry/exit pages but not user journeys"- }- ]- },- {- "group": "Advanced Features",- "features": [- {- "name": "A/B Testing",+ "name": "Retention and cohort tables","openpanel": true,- "competitor": false,- "notes": "Plausible is analytics-only, no experimentation"+ "competitor": false},{- "name": "Revenue Tracking",+ "name": "Saved cohorts usable as filters","openpanel": true,- "competitor": true,- "notes": "Plausible added revenue goals for e-commerce"+ "competitor": false},{- "name": "Custom Properties",+ "name": "User profiles with event history","openpanel": true,- "competitor": true,- "notes": "Both support custom dimensions/properties"+ "competitor": false,+ "notes": "Plausible never identifies individual users"},{- "name": "Email/Slack Reports",+ "name": "Group (account) analytics for B2B","openpanel": true,- "competitor": true,- "notes": "Both offer scheduled reports and alerts"+ "competitor": false},{- "name": "Google Search Console",- "openpanel": false,- "competitor": true,- "notes": "Plausible has native GSC integration"+ "name": "Revenue tracking",+ "openpanel": true,+ "competitor": "Business plan"},{- "name": "Google Analytics Import",- "openpanel": false,- "competitor": true,- "notes": "Plausible can import historical GA data"+ "name": "Session replay",+ "openpanel": "Opt-in",+ "competitor": false}]},{- "group": "Privacy & Compliance",+ "group": "Reports and alerts","features": [{- "name": "Cookie-Free by Default",+ "name": "Custom dashboards and saved reports","openpanel": true,- "competitor": true,- "notes": "Both are cookieless by default"+ "competitor": false,+ "notes": "Plausible has one fixed dashboard per site"},{- "name": "No Consent Banner Required",+ "name": "Shared and embedded dashboards","openpanel": true,- "competitor": true,- "notes": "Both claim no consent needed for basic analytics"+ "competitor": "Growth plan and up"},{- "name": "GDPR Compliant",+ "name": "Email and Slack reports or alerts","openpanel": true,"competitor": true},{- "name": "EU Data Hosting",- "openpanel": true,- "competitor": true,- "notes": "Plausible hosted in Falkenstein, Germany (Hetzner)"- },- {- "name": "Self-Hosting Option",- "openpanel": true,- "competitor": true,- "notes": "Plausible Community Edition is free and open-source"- },- {- "name": "IP Anonymization",- "openpanel": true,- "competitor": true,- "notes": "Plausible hashes IPs for counting, never stores them"+ "name": "Import from Google Analytics",+ "openpanel": false,+ "competitor": true}]},{- "group": "Integrations",+ "group": "Privacy and hosting","features": [{- "name": "REST API",+ "name": "Cookieless by default","openpanel": true,- "competitor": true,- "notes": "Plausible has Stats API and Events API"+ "competitor": true},{- "name": "Data Export",+ "name": "Cloud hosted in Germany","openpanel": true,- "competitor": true,- "notes": "CSV export available on both"+ "competitor": true},{- "name": "WordPress Plugin",- "openpanel": true,- "competitor": true,- "notes": "Plausible has official WordPress plugin"+ "name": "Open source license",+ "openpanel": "AGPL-3.0 (SDKs MIT)",+ "competitor": "AGPL-3.0"},{- "name": "NPM Package",+ "name": "Self-hosted funnels and journeys","openpanel": true,- "competitor": true,- "notes": "plausible-tracker package available"+ "competitor": false,+ "notes": "Not included in Plausible Community Edition"}]}@@ -281,204 +272,210 @@},"technical_comparison": {"title": "Technical comparison",- "intro": "For developers evaluating analytics tools, here's the technical breakdown.",+ "intro": "What you install and what you run.","items": [{- "label": "SDK Size",- "openpanel": "2.3 KB (gzipped)",- "competitor": "< 1 KB (gzipped), modular extensions available",+ "label": "Tracking script",+ "openpanel": "About 3 KB gzipped; session replay loads as a separate script only if you enable it",+ "competitor": "Under 1 KB","notes": null},{- "label": "Platforms",+ "label": "SDKs","openpanel": [- "JavaScript/TypeScript",+ "Script tag",+ "JavaScript / Web","React","Next.js","Vue","Astro","Remix",+ "Express / Node.js","React Native",- "Flutter",- "iOS (Swift)",- "Android (Kotlin)",- "Node.js",+ "Swift (iOS)",+ "Kotlin (Android)","Python",- "Ruby",- "Rust",- "Java",- "PHP"+ "REST API"],"competitor": [- "JavaScript (browser)",- "React (via npm)",- "Next.js",- "Vue",- "WordPress",- "Ghost",- "Wix",- "Squarespace",- "Webflow"+ "Script tag",+ "npm tracker",+ "WordPress plugin",+ "Events API"],- "notes": null+ "notes": "Community SDKs exist for OpenPanel in PHP (Laravel), Ruby, Rust and Java."},{- "label": "Open Source",- "openpanel": "Yes - AGPL-3.0",- "competitor": "Yes - AGPL-3.0",- "notes": "Both are open source and AGPL-3.0 licensed."- },- {- "label": "Self Hosting",- "openpanel": "Docker Compose, guided setup wizard",- "competitor": "Docker Compose with PostgreSQL + ClickHouse (2GB RAM minimum)",- "notes": null- },- {- "label": "Database",- "openpanel": "ClickHouse (analytics) + PostgreSQL (config) + Redis",- "competitor": "PostgreSQL (user data) + ClickHouse (analytics data)",+ "label": "Self-hosting stack",+ "openpanel": "Docker Compose: ClickHouse, Postgres and Redis, set up by one command",+ "competitor": "Docker Compose: ClickHouse and Postgres","notes": null},{- "label": "Data Retention",- "openpanel": "Unlimited (self-hosted), configurable (cloud)",- "competitor": "Unlimited on cloud, configurable for self-hosted",+ "label": "Self-hosted release cadence",+ "openpanel": "Follows Cloud by a month or two",+ "competitor": "Community Edition, twice a year","notes": null},{- "label": "Language",- "openpanel": "TypeScript/Node.js",- "competitor": "Elixir",+ "label": "Self-hosted support",+ "openpanel": "GitHub issues and Discord",+ "competitor": "Community support only","notes": null}]},"pricing": {- "title": "Pricing comparison",- "intro": "Neither has a free cloud tier. Both are free to self-host; OpenPanel's cloud starts at $2.50/month.",+ "title": "Pricing at the same traffic",+ "intro": "Plausible bills by monthly pageviews and puts funnels, user journeys and custom properties on Business. OpenPanel bills by events with every feature on every tier; one pageview is one event, and custom events count too. Plausible prices from plausible.io, October 18, 2026, monthly billing.","openpanel": {- "model": "Event-based, transparent",- "description": "Transparent pricing from $2.50/month for 5,000 events, with a 30-day free trial. All features included at every tier. Self-host free with unlimited events."+ "model": "Monthly event volume, all features included",+ "description": "10k events: $5. 100k: $20. 1M: $90. 10M: $350. 30-day free trial, then paid; there is no free tier. Self-hosting is free with no event limit."},"competitor": {- "model": "Pageview-based with 30-day trial",- "description": "10K pageviews: $9/month. 100K: ~$19/month. 1M: ~$69/month. 10M: ~$299/month. All features included. Annual billing saves 2 months. No free tier for cloud (except self-hosted).",- "free_tier": "No free tier (30-day trial only)",+ "model": "Monthly pageviews, features by plan",+ "description": "Starter / Growth / Business at 10k pageviews: $9 / $14 / $19. 100k: $19 / $29 / $39. 1M: $69 / $104 / $139. 10M: $169 / $254 / $339. Yearly billing gives 2 months free. Funnels and user journeys need Business.",+ "free_tier": "No free tier (30-day trial)","pricing_url": "https://plausible.io/#pricing"- }+ },+ "volumes": [+ {+ "volume": "10k pageviews",+ "openpanel": "$5",+ "competitor": "$9 Starter, $14 Growth, $19 Business"+ },+ {+ "volume": "100k pageviews",+ "openpanel": "$20",+ "competitor": "$19 Starter, $29 Growth, $39 Business"+ },+ {+ "volume": "1M pageviews",+ "openpanel": "$90",+ "competitor": "$69 Starter, $104 Growth, $139 Business"+ },+ {+ "volume": "10M pageviews",+ "openpanel": "$350",+ "competitor": "$169 Starter, $254 Growth, $339 Business"+ }+ ]},"migration": {- "title": "Migrating from Plausible to OpenPanel",- "intro": "Both use lightweight scripts and similar event tracking, making migration straightforward.",+ "title": "Moving from Plausible to OpenPanel",+ "intro": "There's no importer for Plausible data, so the usual path is to run both for a few weeks and switch once OpenPanel has enough history.","difficulty": "easy",- "estimated_time": "30 minutes to 2 hours",+ "estimated_time": "An hour of setup, then a few weeks running both","steps": [{- "title": "Install OpenPanel SDK",- "description": "Add the OpenPanel SDK to your application. Both use lightweight scripts, so the transition is minimal."+ "title": "Add OpenPanel next to Plausible",+ "description": "Install the script tag or SDK and leave Plausible running. Both are cookieless, so your consent setup doesn't change."},{- "title": "Map Your Goals to Events",- "description": "Plausible 'Goals' become OpenPanel events. Custom events translate directly - plausible('signup') becomes op.track('signup')."+ "title": "Rename your goals as events",+ "description": "plausible('Signup', { props: { plan: 'pro' } }) becomes op.track('signup', { plan: 'pro' }). Pageview goals need nothing: OpenPanel records every pageview."},{- "title": "Set Up User Identification (New)",- "description": "Unlike Plausible, OpenPanel can identify users. Add op.identify() calls to unlock retention, cohorts, and user profiles."+ "title": "Identify logged-in users",+ "description": "Call op.identify({ profileId }) after login. This is the step Plausible can't do, and it's what retention, cohorts and user profiles need."},{- "title": "Configure Funnels and Dashboards",- "description": "Recreate your Plausible funnels in OpenPanel. You'll now have access to additional product analytics features."+ "title": "Rebuild your funnels and dashboards",+ "description": "Recreate your Plausible funnels, then add the retention report you couldn't have before."},{- "title": "Remove Plausible Script",- "description": "Once verified, remove the Plausible tracking script. Both are cookie-free so no consent changes needed."+ "title": "Remove Plausible when you have enough history",+ "description": "Compare a few weeks of numbers between the two dashboards, then drop the Plausible script and export anything you want to keep."}],"sdk_compatibility": {"similar_api": true,- "notes": "Both use event-based tracking with similar APIs."+ "notes": "Both track named events with a properties object, so goal calls map one to one."},"historical_data": {"can_import": false,- "notes": "Most teams start fresh with OpenPanel and run both tools in parallel briefly."+ "notes": "OpenPanel can't import Plausible history. Export it from Plausible as CSV before you cancel, and run both tools in parallel during the switch."}},"use_cases": {- "title": "Where OpenPanel is a better fit than Plausible",- "intro": "Choose OpenPanel when you need product analytics beyond simple web traffic.",+ "title": "When OpenPanel is the better fit",+ "intro": "If none of these describe you, Plausible is probably the simpler choice.","items": [{- "title": "SaaS Products Needing User Analytics",- "description": "Plausible shows aggregate website traffic. If you need to understand individual user journeys, retention, and behavior within your product, OpenPanel adds these capabilities while staying privacy-friendly.",- "icon": "users"+ "title": "You need retention by signup cohort",+ "description": "\"Of the people who signed up in March, how many still use it?\" needs a stable user ID. Plausible doesn't keep one; OpenPanel builds the cohort table from your signup and return events.",+ "icon": "users",+ "screenshot": {+ "src": "/features/feature-retention.webp",+ "alt": "OpenPanel retention report with a daily retention curve and cohort table for new users"+ }},{- "title": "Teams Outgrowing Simple Web Analytics",- "description": "Started with Plausible for its simplicity but now need funnels with more steps, cohort analysis, or A/B testing? OpenPanel provides these without the complexity of enterprise tools.",- "icon": "trending-up"+ "title": "You want funnels without a Business plan",+ "description": "At 100k pageviews, Plausible Business costs $39 a month for funnels and custom properties. OpenPanel's 100k tier costs $20 with funnels, retention and user flows included.",+ "icon": "trending-up",+ "screenshot": {+ "src": "/features/feature-funnel-report.webp",+ "alt": "OpenPanel funnel report showing conversion between steps"+ }},{- "title": "Apps Requiring User Identification",- "description": "Plausible intentionally doesn't identify users. If you need to track logged-in users, analyze customer segments, or measure retention, OpenPanel lets you do this while respecting privacy.",- "icon": "user-check"+ "title": "Support asks what a specific user did",+ "description": "OpenPanel user profiles list every event and session for one person, so you can answer a support ticket without guessing.",+ "icon": "user-check",+ "screenshot": {+ "src": "/features/feature-profiles-details.webp",+ "alt": "OpenPanel user profile with the person's properties and event history"+ }},{- "title": "Mobile App Analytics",- "description": "Plausible is primarily designed for websites. OpenPanel offers native SDKs for iOS, Android, React Native, and Flutter with full product analytics capabilities.",+ "title": "You have a mobile app as well as a website",+ "description": "OpenPanel has Swift, Kotlin and React Native SDKs, and app and web events land in the same project.","icon": "smartphone"},{- "title": "Simpler Self-Hosting",- "description": "Plausible CE requires you to configure PostgreSQL and ClickHouse separately. OpenPanel ships a one-command ./setup wizard that walks you through configuration and brings the whole Docker Compose stack up in minutes, making self-hosting far more straightforward.",+ "title": "You self-host and want the whole product",+ "description": "Plausible Community Edition leaves out funnels and user journeys and updates twice a year. OpenPanel self-hosts with every feature, and releases follow Cloud by a month or two.","icon": "server"}]},"faqs": {"title": "Frequently asked questions",- "intro": "Common questions about switching from Plausible to OpenPanel.",+ "intro": "Short answers, including the cases where Plausible wins.","items": [{"question": "Is OpenPanel as privacy-friendly as Plausible?",- "answer": "Yes! Both are cookie-free by default and don't require consent banners. The key difference is that OpenPanel allows optional user identification for product analytics, while Plausible is strictly anonymous. You control whether to identify users in OpenPanel."- },- {- "question": "Why switch from Plausible to OpenPanel?",- "answer": "Teams typically switch when they need product analytics capabilities: user identification, retention analysis, cohort analysis, and detailed funnel tracking. Plausible excels at simple web analytics, but if you're building a product and need to understand user behavior, OpenPanel provides these features while maintaining privacy."+ "answer": "For anonymous traffic, yes: neither sets cookies, and both host their cloud in Germany. The difference is that OpenPanel lets you identify logged-in users. If you do, you're processing personal data about those users and should cover it in your privacy policy. If you never call identify, OpenPanel stays anonymous like Plausible."},{- "question": "Does Plausible have a free tier?",- "answer": "No, Plausible Cloud requires a paid subscription starting at $9/month. They offer a 30-day free trial. The self-hosted Community Edition is free but requires you to manage PostgreSQL and ClickHouse infrastructure. OpenPanel is the same: no free cloud tier (30-day trial, then from $2.50/month for 5,000 events), but free and unlimited to self-host."+ "question": "Does Plausible have funnels?",+ "answer": "Yes, on the Business plan. A Plausible funnel has 2 to 8 steps made of pageview or custom event goals, counted per visitor. It can't branch, and you can filter it but not break it down by a property. Funnels aren't included in the self-hosted Community Edition."},{- "question": "Which has the smaller tracking script?",- "answer": "Plausible wins here with a sub-1KB script. OpenPanel's 2.3KB script is still very lightweight but includes more functionality for product analytics. Both are significantly smaller than Google Analytics (45KB+) or Mixpanel."+ "question": "Is OpenPanel cheaper than Plausible?",+ "answer": "It depends on which Plausible plan you'd need. Against Plausible Business, the plan with funnels, OpenPanel costs less at 10k, 100k and 1M pageviews ($5, $20, $90 against $19, $39, $139) and about the same at 10M ($350 against $339). Against Plausible Starter, OpenPanel costs less at 10k and more from 1M up. Custom events count toward OpenPanel's event total, so check your volume."},{- "question": "Can Plausible track mobile apps?",- "answer": "Not officially. Plausible is designed for web analytics and doesn't provide native mobile SDKs. You can send events via their API, but there are no mobile-specific metrics. OpenPanel offers native iOS, Android, React Native, and Flutter SDKs."+ "question": "Does either have a free plan?",+ "answer": "No. Both offer a 30-day trial on their cloud and are free to self-host. OpenPanel's self-hosted version includes every feature; Plausible Community Edition leaves out funnels, user journeys and revenue goals."},{- "question": "What will I lose switching from Plausible?",- "answer": "Plausible's Google Search Console integration and GA import tool are features OpenPanel doesn't have. If you rely heavily on these, consider your needs. However, you'll gain product analytics capabilities that Plausible doesn't offer."+ "question": "Can I import my Plausible data into OpenPanel?",+ "answer": "No. OpenPanel imports from Umami, Mixpanel and Amplitude, not Plausible. Run both tools side by side for a few weeks and export your Plausible stats as CSV before you cancel."},{- "question": "How does self-hosting compare?",- "answer": "Plausible CE requires Docker Compose with PostgreSQL and ClickHouse (2GB RAM minimum). OpenPanel also uses Docker Compose (ClickHouse, Postgres, and Redis) but ships a one-command setup script that handles DB init, SSL, and config. Both use ClickHouse for analytics queries."+ "question": "What do I lose by leaving Plausible?",+ "answer": "Google Analytics import, the sub-1 KB script, and a dashboard so simple nobody needs to learn it. OpenPanel has more reports, which also means more to learn."},{- "question": "Is Plausible or OpenPanel better for blogs/content sites?",- "answer": "For simple content sites where you just need traffic stats, Plausible's simplicity is excellent. If you're running a SaaS, e-commerce, or any product where understanding user behavior matters, OpenPanel's product analytics features provide more value."+ "question": "Which is better for a blog or docs site?",+ "answer": "Plausible, unless you also have a product with logged-in users. For traffic stats alone, its simplicity is the point."}]},"related_links": {"guides": [- {- "title": "Migrate from Google Analytics",- "url": "/guides/migrate-from-google-analytics"- },{"title": "Website analytics setup","url": "/guides/website-analytics-setup"@@ -490,12 +487,16 @@],"articles": [{- "title": "9 best open source web analytics tools",+ "title": "Self-hosted web analytics compared","url": "/articles/self-hosted-web-analytics"},{- "title": "Cookieless analytics",- "url": "/articles/cookieless-analytics"+ "title": "Open source analytics tools survey",+ "url": "/articles/open-source-web-analytics"+ },+ {+ "title": "What is cohort analysis?",+ "url": "/articles/cohort-analysis"}],"alternatives": [@@ -515,7 +516,7 @@},"ctas": {"primary": {- "label": "Start with OpenPanel",+ "label": "Start a 30-day trial","href": "https://dashboard.openpanel.dev/onboarding"},"secondary": {diff --git a/apps/public/content/compare/posthog-alternative.json b/apps/public/content/compare/posthog-alternative.jsonindex 92d189ed1..82a2a4bf6 100644--- a/apps/public/content/compare/posthog-alternative.json+++ b/apps/public/content/compare/posthog-alternative.json@@ -2,264 +2,263 @@"slug": "posthog-alternative","page_type": "alternative","seo": {- "title": "PostHog Alternatives 2026 — Fully Self-Hostable, All Features",- "description": "PostHog deprecated its full self-hosted version — only a hobby build remains and new features ship cloud-only. OpenPanel stays fully open source and self-hostable, with every feature identical between cloud and self-hosted. 2.3 KB SDK, cookie-free by default, AGPL-3.0 platform (SDKs are MIT).",+ "title": "PostHog Alternative: OpenPanel vs PostHog",+ "description": "OpenPanel vs PostHog: a 3 KB vs 105 KB tracking script, cookie-free by default, simpler self-hosting, and what each costs at 1M and 10M events a month.","noindex": false},"hero": {- "heading": "Best PostHog Alternative",- "subheading": "Get powerful product analytics without the complexity. OpenPanel delivers essential insights with a lighter footprint, true cookie-free tracking, and transparent pricing - no enterprise sales calls required.",+ "heading": "OpenPanel vs PostHog",+ "subheading": "PostHog is a large developer platform: analytics, feature flags, experiments, surveys, error tracking and a data warehouse. OpenPanel does product and web analytics only, with a much smaller script, no cookies by default and a self-hosted setup you can run on one server.","badges": [- "Open-source",- "Cookie-free",- "Lightweight SDK",- "Simple Pricing"+ "3 KB script",+ "Cookie-free by default",+ "Self-host with Docker Compose",+ "Open source (AGPL-3.0)"]},"competitor": {"name": "PostHog","logo": "/logos/posthog.svg","url": "https://posthog.com",- "short_description": "All-in-one product analytics platform for developers with features like analytics, feature flags, session replay, and surveys.",+ "short_description": "Developer platform that bundles product analytics, session replay, feature flags, experiments, surveys and error tracking.","founded": 2020,"headquarters": "San Francisco, California, USA"},+ "meta": {+ "author": "Carl-Gerhard Lindesvärd",+ "updated": "2026-10-18",+ "prices_checked": "2026-10-18"+ },"overview": {- "title": "Why consider OpenPanel over PostHog?",+ "title": "When OpenPanel is the better PostHog alternative","paragraphs": [- "PostHog has built an impressive all-in-one platform with product analytics, feature flags, session replay, surveys, A/B testing, and more \u2014 over 10 products under one roof. It's a popular choice among developer-led teams who want everything in a single tool. But that breadth comes with trade-offs: a 52+ KB SDK, complex multi-product pricing, and a self-hosted setup that requires ClickHouse, Kafka, Redis, and PostgreSQL.",- "OpenPanel takes a focused approach. Instead of trying to be everything, it delivers excellent analytics \u2014 events, funnels, retention, cohorts, user profiles, session replay, and web analytics \u2014 with a dramatically smaller footprint. The SDK is just 2.3 KB (over 20x lighter than PostHog), which directly translates to faster page loads and better Core Web Vitals for your users.",- "Cookie-free tracking is another key difference. PostHog uses cookies by default and requires configuration to go cookieless, while OpenPanel is cookie-free out of the box \u2014 no consent banners needed. Self-hosting is also far simpler: OpenPanel runs via a one-command Docker Compose setup (ClickHouse, Postgres, Redis) compared to PostHog's heavier multi-service architecture that also requires Kafka.",- "If you need focused analytics without the feature bloat, want a lighter SDK that doesn't impact performance, and prefer simple event-based pricing over multi-product metering \u2014 OpenPanel gives you exactly what you need without the overhead."+ "If your team uses PostHog to track events, build funnels and retention charts and watch session replays, and never opens feature flags or surveys, you still carry the rest: a larger script, a heavier self-hosted stack and a separate meter for each product.",+ "The script size difference is large. OpenPanel's web script is 3.3 KB gzipped. PostHog's main browser bundle (posthog-js 1.438, dist/array.js) is about 105 KB gzipped when we measured it in October 2026. On a marketing site or a storefront, that is weight your visitors download before anything else runs.",+ "Privacy defaults differ too. PostHog's JavaScript library stores its state in localStorage plus a first-party cookie unless you change persistence. OpenPanel sets no cookies: it identifies anonymous visitors with a daily-rotating salted hash, so you can run it without a consent banner in most setups.",+ "PostHog is the better choice if you want one vendor for analytics, feature flags, A/B experiments with statistics, surveys and error tracking, or if you want to write SQL against your data. OpenPanel has none of those products, and we would rather you know that before you migrate."]},"summary_comparison": {- "title": "OpenPanel vs PostHog: Which is right for you?",- "intro": "Both are open-source analytics platforms. PostHog is an all-in-one platform with many products. OpenPanel focuses on analytics with simplicity.",- "one_liner": "PostHog is an all-in-one platform with 10+ products; OpenPanel focuses on analytics with a lighter footprint.",+ "title": "OpenPanel or PostHog?",+ "intro": "Both are open source and both run on ClickHouse. The difference is scope: PostHog bundles a dozen products, OpenPanel does analytics.",+ "one_liner": "Pick PostHog for an all-in-one developer platform; pick OpenPanel for product and web analytics with a 3 KB script and one-server self-hosting.","best_for_openpanel": [- "Teams wanting focused analytics without feature flags or surveys",- "Privacy-conscious products needing cookie-free tracking by default",- "Performance-conscious applications (2.3KB SDK vs 52KB+)",- "Teams preferring simple Docker deployment over multi-service architecture"+ "Teams that use PostHog mainly for events, funnels, retention and session replay",+ "Sites where script weight matters: storefronts, landing pages, content sites",+ "Products that want cookie-free analytics without a consent banner",+ "Teams that want to self-host on a single server with Docker Compose"],"best_for_competitor": [- "Teams needing all-in-one platform (analytics, feature flags, surveys, A/B experiments)",- "Developers wanting SQL access (HogQL) for custom queries",- "Y Combinator companies leveraging PostHog's ecosystem",- "Teams requiring extensive CDP capabilities with 60+ connectors"+ "Teams that rely on feature flags and A/B experiments with significance testing",+ "Teams that want surveys and error tracking from the same vendor",+ "Analysts who want to query raw data with SQL (HogQL)",+ "Small products that fit inside PostHog's 1M free events a month"]},"highlights": {- "title": "Key differences at a glance",- "intro": "Here's how OpenPanel and PostHog compare on key factors.",+ "title": "The differences that matter",+ "intro": "Measured or taken from each vendor's docs in October 2026.","items": [{- "label": "SDK Size",- "openpanel": "2.3 KB",- "competitor": "52+ KB",- "notes": "OpenPanel's SDK is over 20x smaller than PostHog's core library, resulting in faster page loads and better Core Web Vitals."+ "label": "Browser script (gzipped)",+ "openpanel": "3.3 KB",+ "competitor": "~105 KB (posthog-js dist/array.js)"+ },+ {+ "label": "Cookies by default",+ "openpanel": "None",+ "competitor": "localStorage + first-party cookie"},{- "label": "Cookie-Free",- "openpanel": "Yes",- "competitor": "Requires Configuration",- "notes": "OpenPanel is truly cookie-free out of the box. PostHog requires specific configuration for cookieless tracking with reduced functionality."+ "label": "Cost at 1M events/month",+ "openpanel": "$90 (replay included)",+ "competitor": "$0 analytics; replay billed separately past 5K recordings"},{- "label": "Pricing Complexity",- "openpanel": "Simple Event-Based",- "competitor": "Multi-Product Metering",- "notes": "OpenPanel has straightforward pricing. PostHog bills separately for events, recordings, feature flags, surveys, and more - each with different tiers."+ "label": "Cost at 10M events/month",+ "openpanel": "$350",+ "competitor": "~$324 for analytics events alone"},{- "label": "Self-Hosting Complexity",- "openpanel": "One-command Docker Compose, guided setup wizard",- "competitor": "ClickHouse + Kafka + Redis + PostgreSQL",- "notes": "OpenPanel self-hosts via a one-command Docker Compose setup (ClickHouse, Postgres, Redis). PostHog needs a heavier stack that also includes Kafka."+ "label": "Self-hosting",+ "openpanel": "Supported. Docker Compose: ClickHouse, Postgres, Redis",+ "competitor": "Hobby deploy, officially unsupported. ClickHouse, Kafka, ZooKeeper, Redis, Postgres, MinIO"},{- "label": "Focus",- "openpanel": "Analytics-First",- "competitor": "All-in-One Platform",- "notes": "OpenPanel focuses on doing analytics exceptionally well. PostHog bundles 10+ products which can create complexity for teams just needing analytics."+ "label": "Feature flags, experiments, surveys",+ "openpanel": "No",+ "competitor": "Yes"+ }+ ]+ },+ "competitor_strengths": {+ "title": "Where PostHog is better",+ "intro": "If any of these matter to you, PostHog is the better pick.",+ "items": [+ {+ "title": "Feature flags and experiments",+ "description": "PostHog ships feature flags and A/B tests with significance testing in the same product as its analytics. OpenPanel can break any report down by a variant property, but it has no flag delivery and no experiment statistics."+ },+ {+ "title": "Surveys, heatmaps and error tracking",+ "description": "PostHog has all three, each with its own free allowance. OpenPanel has none of them, so you would add a separate tool for each one you need."+ },+ {+ "title": "SQL in the dashboard",+ "description": "HogQL lets you write SQL against your events from the PostHog UI. OpenPanel has a visual report builder. Self-hosters can query ClickHouse directly, but there is no SQL editor in the dashboard."+ },+ {+ "title": "A free plan for small products",+ "description": "The first 1M analytics events each month are free on PostHog. OpenPanel Cloud has no free plan: you get a 30-day trial, and self-hosting is the free option."}]},"feature_comparison": {"title": "Feature comparison",- "intro": "PostHog is an all-in-one platform. OpenPanel focuses purely on analytics.",+ "intro": "Where both have a feature, the depth can differ. Notes explain the gaps.","groups": [{- "group": "Web Analytics",+ "group": "Web analytics","features": [{- "name": "Page Views & Visitors",+ "name": "Pageviews, visitors, sessions, bounce rate","openpanel": true,"competitor": true},{- "name": "Traffic Sources",+ "name": "Referrers and UTM breakdowns","openpanel": true,"competitor": true},{- "name": "Geographic Data",+ "name": "Realtime view","openpanel": true,"competitor": true- },+ }+ ]+ },+ {+ "group": "Product analytics",+ "features": [{- "name": "Device & Browser",+ "name": "Custom events and properties","openpanel": true,"competitor": true},{- "name": "UTM Campaign Tracking",+ "name": "Funnels","openpanel": true,"competitor": true},{- "name": "Real-Time Dashboard",- "openpanel": true,- "competitor": true- }- ]- },- {- "group": "Product Analytics",- "features": [- {- "name": "Custom Event Tracking",+ "name": "Retention and cohort tables","openpanel": true,"competitor": true},{- "name": "Funnel Analysis",+ "name": "User flows (sankey)","openpanel": true,"competitor": true},{- "name": "Retention Analysis",+ "name": "Saved cohorts as report filters","openpanel": true,"competitor": true},{- "name": "User Profiles",+ "name": "Group (B2B account) analytics","openpanel": true,"competitor": true},{- "name": "Cohort Analysis",+ "name": "Revenue tracking","openpanel": true,"competitor": true},{- "name": "User Path Analysis",- "openpanel": true,- "competitor": true+ "name": "SQL queries on raw data",+ "openpanel": false,+ "competitor": true,+ "notes": "PostHog has HogQL. OpenPanel has a visual report builder; self-hosters can query their own ClickHouse directly."}]},{- "group": "Advanced Features",+ "group": "Beyond analytics","features": [{- "name": "A/B Testing",+ "name": "Session replay","openpanel": true,- "competitor": true+ "competitor": true,+ "notes": "OpenPanel replay is opt-in, loads as a separate script and has no per-recording meter."},{- "name": "Feature Flags",+ "name": "Feature flags","openpanel": false,- "competitor": true,- "notes": "PostHog includes feature flags; OpenPanel focuses on analytics"+ "competitor": true},{- "name": "Session Replay",- "openpanel": true,+ "name": "A/B experiments with significance",+ "openpanel": "Variant breakdowns only","competitor": true,- "notes": "Both platforms offer session replay."+ "notes": "In OpenPanel you can break any report down by a variant property, but there is no experiment engine or statistics."},{"name": "Surveys","openpanel": false,- "competitor": true,- "notes": "PostHog includes in-app surveys; OpenPanel integrates with survey tools"+ "competitor": true},{- "name": "Custom Dashboards",- "openpanel": true,+ "name": "Error tracking",+ "openpanel": false,"competitor": true},{- "name": "SQL Query Access",+ "name": "Heatmaps","openpanel": false,- "competitor": true,- "notes": "PostHog offers HogQL, their SQL variant; OpenPanel uses a visual report builder"+ "competitor": true}]},{- "group": "Privacy & Compliance",+ "group": "Privacy and hosting","features": [{- "name": "Cookie-Free by Default",- "openpanel": true,- "competitor": false,- "notes": "PostHog uses cookies by default, cookieless requires configuration"- },- {- "name": "No Consent Banner Required",- "openpanel": true,- "competitor": false,- "notes": "PostHog's default tracking requires consent banners under GDPR"- },- {- "name": "GDPR Compliant",+ "name": "Cookie-free by default","openpanel": true,- "competitor": true+ "competitor": false},{- "name": "EU Data Hosting Option",+ "name": "EU cloud hosting","openpanel": true,"competitor": true,- "notes": "PostHog offers EU Cloud hosted in Frankfurt"- },- {- "name": "Self-Hosting Option",- "openpanel": true,- "competitor": true+ "notes": "OpenPanel Cloud runs in Germany. PostHog offers an EU region."},{- "name": "IP Anonymization",+ "name": "Supported self-hosting","openpanel": true,- "competitor": true+ "competitor": false,+ "notes": "PostHog's own docs call self-hosted deployments officially unsupported."}]},{- "group": "Integrations & Export",+ "group": "Data in and out","features": [{- "name": "REST API",+ "name": "Export API","openpanel": true,"competitor": true},{- "name": "Data Export",+ "name": "Slack, Discord and webhook alerts","openpanel": true,"competitor": true},{- "name": "Webhook Support",+ "name": "MCP server for AI assistants","openpanel": true,"competitor": true- },- {- "name": "Data Warehouse Sync",- "openpanel": "Coming 2026",- "competitor": true,- "notes": "PostHog has extensive CDP capabilities with 60+ connectors. OpenPanel has an export API today, with native data-warehouse export (S3/GCS) on the roadmap for 2026."}]}@@ -267,37 +266,33 @@},"technical_comparison": {"title": "Technical comparison",- "intro": "For developers evaluating analytics tools, here's the technical breakdown.",+ "intro": "For the developer who has to install and run it.","items": [{- "label": "SDK Size",- "openpanel": "2.3 KB (gzipped)",- "competitor": "52+ KB core library (gzipped), lazy-loads additional features",- "notes": null+ "label": "Browser script",+ "openpanel": "3.3 KB gzipped (op1.js)",+ "competitor": "~105 KB gzipped core bundle; replay and other extensions load on top",+ "notes": "Measured October 2026 against the live files."},{- "label": "Platforms",+ "label": "SDKs","openpanel": [- "JavaScript/TypeScript",- "React",+ "Web / script tag","Next.js",+ "React","Vue","Astro","Remix","Express",- "React Native",- "Flutter",- "iOS",- "Android","Node.js",+ "React Native",+ "Swift (iOS)",+ "Kotlin (Android)","Python",- "Ruby",- "Java",- "Rust",- "PHP"+ "PHP, Ruby, Rust, Java, Flutter (community)"],"competitor": [- "JavaScript/TypeScript",+ "JavaScript","React","Next.js","React Native",@@ -312,150 +307,162 @@"Flutter","Rust"],+ "notes": "PostHog has a Go SDK; OpenPanel does not."+ },+ {+ "label": "License",+ "openpanel": "Platform AGPL-3.0, SDKs MIT",+ "competitor": "MIT, except the separately licensed ee/ directory","notes": null},{- "label": "Open Source",- "openpanel": "Yes - AGPL-3.0",- "competitor": "Yes - MIT License",- "notes": "Both are open source. OpenPanel is AGPL-3.0; PostHog is MIT licensed."+ "label": "Self-hosted stack",+ "openpanel": "Docker Compose with ClickHouse, Postgres and Redis",+ "competitor": "Docker with ClickHouse, Kafka, ZooKeeper, Redis, Postgres, MinIO and Caddy",+ "notes": "PostHog asks for at least 4 vCPU and 16 GB RAM for its hobby deploy."},{- "label": "Self Hosting",- "openpanel": "Docker Compose (ClickHouse, Postgres, Redis), one-command setup",- "competitor": "Docker with multiple services (ClickHouse, Kafka, Redis, PostgreSQL) or Kubernetes",+ "label": "Self-hosted features",+ "openpanel": "The full product; releases arrive a month or two after Cloud",+ "competitor": "Free-plan features only; paid-plan features are Cloud-only","notes": null},{- "label": "Database",+ "label": "Event storage","openpanel": "ClickHouse","competitor": "ClickHouse","notes": null- },- {- "label": "Data Retention",- "openpanel": "Unlimited (self-hosted), configurable (cloud)",- "competitor": "7 years (paid plans), 1 year (free plan), 3 months for recordings",- "notes": null}]},"pricing": {- "title": "Pricing comparison",- "intro": "PostHog has generous free tiers but complex multi-product pricing. OpenPanel offers simpler event-based pricing.",+ "title": "Pricing at real volumes",+ "intro": "PostHog is cheaper for small products and roughly the same as OpenPanel at 10M events, if you only count analytics events. The difference is what else gets metered.","openpanel": {- "model": "Event-based, transparent",- "description": "Transparent pricing from $2.50/month for 5,000 events, with a 30-day free trial. All features included at every tier. Self-host free with unlimited events."+ "model": "Flat monthly tiers by event volume",+ "description": "You pick an event volume and pay a flat price: $90/month for 1M events, $350/month for 10M. Session replay, dashboards, users and projects are not metered separately. There is no free cloud plan: you get a 30-day trial, and self-hosting is free with no event limit."},"competitor": {- "model": "Multi-product usage-based",- "description": "1 million events/month (product analytics), 5,000 recordings/month, 1 million feature flag requests/month, 1,500 survey responses/month free. $0.00005/event (anonymous), $0.000248/event (identified), $0.005/recording, $0.0001/flag request. Add-ons like HIPAA ($250/mo) available. 90%+ of customers use free tier.",- "free_tier": "1M events/month (analytics), 5K recordings/month",+ "model": "Usage-based, metered per product",+ "description": "Product analytics is free for the first 1M events a month, then $0.00005 per event up to 2M and $0.0000343 per event from 2M to 15M, so 10M events cost about $324. Session replay, feature flags, surveys and error tracking each have their own free allowance and meter.",+ "free_tier": "1M analytics events and 5K session replays a month","pricing_url": "https://posthog.com/pricing"- }+ },+ "volumes": [+ {+ "volume": "100k events",+ "openpanel": "$20",+ "competitor": "$0"+ },+ {+ "volume": "1M events",+ "openpanel": "$90",+ "competitor": "$0"+ },+ {+ "volume": "10M events",+ "openpanel": "$350",+ "competitor": "about $324 (analytics events only)"+ }+ ]},"migration": {- "title": "Migrating from PostHog to OpenPanel",- "intro": "Both use event-based tracking, making migration straightforward for analytics.",+ "title": "Moving from PostHog to OpenPanel",+ "intro": "The tracking APIs map almost one to one. There is no PostHog importer, so plan to run both tools side by side until OpenPanel has enough history.","difficulty": "easy",- "estimated_time": "1-4 hours for basic setup, longer if migrating feature flags or session replay workflows",+ "estimated_time": "An afternoon for the SDK swap; a few weeks of parallel tracking to build history","steps": [{- "title": "Install OpenPanel SDK",- "description": "Add the lightweight OpenPanel SDK to your application. At 2.3KB, it's significantly smaller than PostHog's library."+ "title": "Install the OpenPanel SDK next to PostHog",+ "description": "Add the web script or the framework SDK with your client ID. Keep PostHog running for now."},{- "title": "Map Your Events",- "description": "Both platforms use event-based tracking. Map your PostHog event names to OpenPanel - most can remain the same."+ "title": "Map your calls",+ "description": "posthog.capture(name, props) becomes op.track(name, props). posthog.identify(id, props) becomes op.identify({ profileId: id, ...props }). posthog.group() becomes op.setGroup()."},{- "title": "Configure User Identification",- "description": "Replace PostHog's identify() calls with OpenPanel's identification methods. The API is similar."+ "title": "Rebuild the reports you use",+ "description": "Recreate your main funnels, retention charts and dashboards in OpenPanel."},{- "title": "Set Up Dashboards",- "description": "Recreate your key dashboards in OpenPanel. Import historical data if needed using our migration tools."+ "title": "Compare numbers for two weeks",+ "description": "Check that event counts and funnel conversion match between the two tools before you trust the new one."},{- "title": "Verify & Go Live",- "description": "Run both platforms in parallel briefly to verify data accuracy, then disable PostHog tracking."+ "title": "Remove PostHog",+ "description": "Drop the PostHog snippet and keep your PostHog project read-only if you still need old data."}],"sdk_compatibility": {"similar_api": true,- "notes": "Both use event-based tracking with similar APIs."+ "notes": "Both use named events with properties and an identify call, so most event names can stay as they are."},"historical_data": {"can_import": false,- "notes": "Most teams start fresh with OpenPanel and run both tools in parallel briefly."+ "notes": "OpenPanel imports from Mixpanel, Amplitude and Umami, not from PostHog. Keep old data in PostHog or export it through their API."}},"use_cases": {- "title": "Where OpenPanel is a better fit than PostHog",- "intro": "Choose OpenPanel when you want analytics without the complexity of an all-in-one platform.",+ "title": "Where OpenPanel fits better",+ "intro": "Four situations where the switch pays off.","items": [{- "title": "Teams Who Want Analytics Without Feature Bloat",- "description": "If you need product analytics and session replay but don't need PostHog's feature flags, surveys, or experiments, OpenPanel gives you exactly what you need without the overhead.",- "icon": "target"- },- {- "title": "Privacy-First Products",- "description": "OpenPanel is cookie-free by default with no configuration needed. PostHog requires explicit setup for cookieless tracking and loses some functionality in that mode.",- "icon": "shield"+ "title": "You only use PostHog for analytics",+ "description": "If your PostHog usage is events, funnels, retention and replay, OpenPanel covers it with one price and one script.",+ "icon": "target",+ "screenshot": {+ "src": "/features/feature-retention.webp",+ "alt": "OpenPanel retention report with a daily retention curve and cohort table for new users"+ }},{- "title": "Performance-Conscious Applications",- "description": "OpenPanel's 2.3KB SDK vs PostHog's 52KB+ library means faster page loads and better Core Web Vitals - critical for SEO and user experience.",+ "title": "Page weight shows up in your Core Web Vitals",+ "description": "Replacing a ~105 KB bundle with a 3.3 KB script is one of the cheaper performance wins on a content or commerce site.","icon": "zap"},{- "title": "Simple Self-Hosting Needs",- "description": "OpenPanel self-hosts with a one-command Docker Compose setup (ClickHouse, Postgres, Redis). PostHog requires a heavier stack that also includes Kafka - significantly more infrastructure to manage.",- "icon": "server"+ "title": "You want analytics without a cookie banner",+ "description": "OpenPanel stores nothing in the browser by default. PostHog needs a persistence change, and turning persistence off makes every page load a new anonymous user.",+ "icon": "shield",+ "screenshot": {+ "src": "/features/feature-overview-main.webp",+ "alt": "OpenPanel web analytics overview with visitors, sessions, pageviews and bounce rate"+ }},{- "title": "Predictable Budgeting",- "description": "OpenPanel's simple event-based pricing is easy to predict. PostHog's multi-product metering across events, recordings, flags, and surveys can lead to unexpected costs.",- "icon": "dollar-sign"+ "title": "You want to self-host and have support for it",+ "description": "OpenPanel's self-hosted version is the full product on a three-service Docker Compose stack. PostHog's hobby deploy is unsupported and limited to free-plan features.",+ "icon": "server"}]},"faqs": {- "title": "Frequently asked questions",- "intro": "Common questions about switching from PostHog to OpenPanel.",+ "title": "Questions about switching from PostHog",+ "intro": "Short answers, with the trade-offs left in.","items": [{- "question": "Is OpenPanel really free?",- "answer": "OpenPanel is free to self-host with unlimited events. The cloud version starts at $2.50/month for 5,000 events after a 30-day free trial - there is no free cloud tier. PostHog has a generous free cloud tier (1M events, 5K recordings) but costs can scale quickly with usage."- },- {- "question": "Why switch from PostHog to OpenPanel?",- "answer": "Teams switch for several reasons: simpler pricing without multi-product metering, smaller SDK size (2.3KB vs 52KB+), true cookie-free tracking by default, easier self-hosting, and a focused analytics experience without feature bloat."- },- {- "question": "What features will I lose switching from PostHog?",- "answer": "PostHog includes feature flags, surveys, and A/B experiments in their platform. If you actively use these, you'd need separate tools. OpenPanel now includes session replay, so you won't lose that. If you primarily use PostHog for analytics, OpenPanel provides everything you need with less complexity."+ "question": "Is OpenPanel cheaper than PostHog?",+ "answer": "Not always. Under 1M events a month PostHog analytics is free and OpenPanel Cloud is not. At 10M events the two are close ($350 vs about $324 for PostHog analytics alone). OpenPanel gets cheaper when you also use session replay heavily, because replay is not metered separately. Self-hosting OpenPanel is free."},{- "question": "How does OpenPanel compare on privacy?",- "answer": "OpenPanel is cookie-free by default - no configuration needed. PostHog uses cookies by default and requires specific setup for cookieless mode, which disables some features like cross-session user identification."+ "question": "What do I lose if I leave PostHog?",+ "answer": "Feature flags, A/B experiments with statistics, surveys, error tracking, heatmaps and SQL access. If you use any of those, you need another tool for that part, or PostHog is the better fit."},{- "question": "Can I self-host OpenPanel?",- "answer": "Yes! OpenPanel self-hosts via a one-command Docker Compose setup (ClickHouse, Postgres, Redis) — a ./setup wizard walks you through configuration and brings the whole stack up in minutes. PostHog self-hosting requires a heavier stack that also includes Kafka, and has official limitations of around 100k events/month for single-server hobby deployments."+ "question": "Can I import my PostHog data?",+ "answer": "No. OpenPanel has importers for Mixpanel, Amplitude and Umami. For PostHog, run both tools in parallel for a few weeks and keep the old project for historical questions."},{- "question": "Is PostHog more feature-rich than OpenPanel?",- "answer": "PostHog offers more products (10+ including feature flags, surveys, A/B testing, data warehouse). However, this comes with added complexity. OpenPanel now includes session replay alongside its core analytics, while staying focused on simplicity and performance."+ "question": "Does OpenPanel have session replay?",+ "answer": "Yes. It is opt-in, loads as a separate script only when enabled, and recordings are kept for 30 days."},{- "question": "How do SDK sizes compare?",- "answer": "OpenPanel's SDK is 2.3KB gzipped. PostHog's core library is 52KB+ gzipped, though they lazy-load additional features like session replay. The difference impacts page load times and Core Web Vitals."+ "question": "How hard is self-hosting compared with PostHog?",+ "answer": "OpenPanel runs on Docker Compose with ClickHouse, Postgres and Redis, and a setup script configures it. PostHog's hobby deploy adds Kafka, ZooKeeper and MinIO, needs 16 GB of RAM, and PostHog says it is officially unsupported."},{- "question": "Which is better for startups?",- "answer": "PostHog has a generous free cloud tier; OpenPanel is free to self-host with unlimited events, with cloud plans from $2.50/month after a 30-day trial. PostHog provides more features out of the box (feature flags, etc.) but with more complexity. OpenPanel is simpler to set up and understand, making it ideal for teams that want focused analytics without the overhead of an all-in-one platform."+ "question": "Is OpenPanel open source like PostHog?",+ "answer": "Yes. The platform is AGPL-3.0 and the SDKs are MIT. PostHog is MIT apart from its ee/ directory. AGPL means that if you modify OpenPanel and offer it as a service, you share those changes."}]},@@ -476,8 +483,8 @@],"articles": [{- "title": "9 best open source web analytics tools",- "url": "/articles/self-hosted-web-analytics"+ "title": "Open source analytics tools compared",+ "url": "/articles/open-source-web-analytics"},{"title": "Self-hosted web analytics",@@ -486,27 +493,27 @@],"alternatives": [{- "name": "Plausible",- "url": "/compare/plausible-alternative"+ "name": "Mixpanel",+ "url": "/compare/mixpanel-alternative"},{- "name": "Matomo",- "url": "/compare/matomo-alternative"+ "name": "Amplitude",+ "url": "/compare/amplitude-alternative"},{- "name": "Umami",- "url": "/compare/umami-alternative"+ "name": "Plausible",+ "url": "/compare/plausible-alternative"}]},"ctas": {"primary": {- "label": "Start with OpenPanel",+ "label": "Start a 30-day trial","href": "https://dashboard.openpanel.dev/onboarding"},"secondary": {- "label": "View on GitHub",- "href": "https://github.com/Openpanel-dev/openpanel"+ "label": "Self-host OpenPanel",+ "href": "/docs/self-hosting/self-hosting"}}}diff --git a/apps/public/content/for/developers.json b/apps/public/content/for/developers.jsonindex 7b0859fff..f34a7118f 100644--- a/apps/public/content/for/developers.json+++ b/apps/public/content/for/developers.json@@ -64,7 +64,7 @@},{"title": "Open source (AGPL-3.0)",- "description": "Read the code, report bugs, submit PRs. No proprietary black boxes. The self-hosted version is identical to cloud — no artificial feature limits."+ "description": "Read the code, report bugs, submit PRs. No proprietary black boxes. Self-hosting is the full product — no artificial feature limits."},{"title": "Event-based data model",diff --git a/apps/public/content/for/startups.json b/apps/public/content/for/startups.jsonindex ed54c6fd9..7a23d8635 100644--- a/apps/public/content/for/startups.json+++ b/apps/public/content/for/startups.json@@ -94,7 +94,7 @@},{"title": "Self-host to cut costs to near zero",- "description": "The self-hosted version is identical to cloud. Run it on your own infrastructure when you need to minimize spend."+ "description": "Self-hosting is the full product, free. Run it on your own infrastructure when you need to minimize spend."},{"title": "Open source means no lock-in",diff --git a/apps/public/next.config.mjs b/apps/public/next.config.mjsindex d8200cb57..19188f5fc 100644--- a/apps/public/next.config.mjs+++ b/apps/public/next.config.mjs@@ -10,33 +10,30 @@ const config = {domains: ['localhost', 'openpanel.dev', 'api.openpanel.dev'],},serverExternalPackages: ['@hyperdx/node-opentelemetry', 'shiki'],- redirects: [- {- source: '/articles/top-7-open-source-web-analytics-tools',- destination: '/articles/self-hosted-web-analytics',- permanent: true,- },- {- source: '/articles/alternatives-to-mixpanel',- destination: '/articles/mixpanel-alternatives',- permanent: true,- },- {- source: '/articles/vs-mixpanel',- destination: '/compare/mixpanel-alternative',- permanent: true,- },- {- source: '/articles/open-source-web-analytics',- destination: '/articles/self-hosted-web-analytics',- permanent: true,- },- {- source: '/open-source-analytics',- destination: '/articles/self-hosted-web-analytics',- permanent: true,- },- ],+ async redirects() {+ return [+ {+ source: '/articles/top-7-open-source-web-analytics-tools',+ destination: '/articles/open-source-web-analytics',+ permanent: true,+ },+ {+ source: '/articles/alternatives-to-mixpanel',+ destination: '/articles/mixpanel-alternatives',+ permanent: true,+ },+ {+ source: '/articles/vs-mixpanel',+ destination: '/compare/mixpanel-alternative',+ permanent: true,+ },+ {+ source: '/open-source-analytics',+ destination: '/articles/self-hosted-web-analytics',+ permanent: true,+ },+ ];+ },};export default withMDX(config);diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/benefits-section.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/benefits-section.tsxdeleted file mode 100644index d68559df8..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/benefits-section.tsx+++ /dev/null@@ -1,53 +0,0 @@-import { CheckIcon } from 'lucide-react';-import Link from 'next/link';-import { Section } from '@/components/section';-import { Button } from '@/components/ui/button';-import { cn } from '@/lib/utils';--interface BenefitsSectionProps {- label?: string;- title: string;- description: string;- cta?: {- label: string;- href: string;- };- benefits: string[];- className?: string;-}--export function BenefitsSection({- label,- title,- description,- cta,- benefits,- className,-}: BenefitsSectionProps) {- return (- <Section className={cn('container', className)}>- <div className="col max-w-3xl gap-6">- {label && (- <p className="font-medium text-primary text-sm italic">{label}</p>- )}- <h2 className="font-semibold text-4xl leading-tight md:text-5xl">- {title}- </h2>- <p className="text-lg text-muted-foreground">{description}</p>- {cta && (- <Button asChild className="w-fit" size="lg">- <Link href={cta.href}>{cta.label}</Link>- </Button>- )}- <div className="col mt-4 gap-4">- {benefits.map((benefit) => (- <div className="row items-start gap-3" key={benefit}>- <CheckIcon className="mt-0.5 size-5 shrink-0 text-green-500" />- <p className="text-muted-foreground">{benefit}</p>- </div>- ))}- </div>- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/compare-hero.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/compare-hero.tsxindex 12cedb190..083b31ee3 100644--- a/apps/public/src/app/(content)/compare/[slug]/_components/compare-hero.tsx+++ b/apps/public/src/app/(content)/compare/[slug]/_components/compare-hero.tsx@@ -1,41 +1,123 @@-import { CheckCircle2Icon } from 'lucide-react';+import Image from 'next/image';import Link from 'next/link';-import { CompareToc } from './compare-toc';import { HeroContainer } from '@/app/(home)/_sections/hero';import { GetStartedButton } from '@/components/get-started-button';-import { Perks } from '@/components/perks';-import { SectionHeader } from '@/components/section';+import { Logo } from '@/components/logo';import { Button } from '@/components/ui/button';-import type { CompareHero as CompareHeroData } from '@/lib/compare';+import type {+ CompareCompetitor,+ CompareHero as CompareHeroData,+ CompareMeta,+ CompareSummary,+} from '@/lib/compare';+import { getAuthor } from '@/lib/layout.shared';++const VERDICT_ITEM_LIMIT = 4;++const dateFormat = new Intl.DateTimeFormat('en-US', {+ month: 'short',+ day: 'numeric',+ year: 'numeric',+});++function formatDate(isoDate: string) {+ return dateFormat.format(new Date(`${isoDate}T00:00:00Z`));+}++function Byline({ meta }: { meta: CompareMeta }) {+ const author = getAuthor(meta.author);+ return (+ <div className="row flex-wrap items-center gap-x-3 gap-y-1 text-muted-foreground text-sm">+ {author?.image && (+ <Image+ alt={author.name}+ className="size-8 rounded-full"+ height={32}+ src={author.image}+ width={32}+ />+ )}+ <span className="font-medium text-foreground">{meta.author}</span>+ <span>+ <span aria-hidden>· </span>+ <time dateTime={meta.updated}>Updated {formatDate(meta.updated)}</time>+ </span>+ {meta.prices_checked && (+ <span>+ <span aria-hidden>· </span>+ Prices checked {formatDate(meta.prices_checked)}+ </span>+ )}+ </div>+ );+}++function VerdictColumn({ title, items }: { title: string; items: string[] }) {+ return (+ <div className="col gap-3">+ <h3 className="font-semibold">{title}</h3>+ <ul className="col gap-2">+ {items.slice(0, VERDICT_ITEM_LIMIT).map((item) => (+ <li+ className="text-muted-foreground text-sm leading-relaxed"+ key={item}+ >+ {item}+ </li>+ ))}+ </ul>+ </div>+ );+}interface CompareHeroProps {hero: CompareHeroData;- tocItems?: Array<{ id: string; label: string }>;+ competitor: CompareCompetitor;+ summary: CompareSummary;+ meta?: CompareMeta;}-export function CompareHero({ hero, tocItems = [] }: CompareHeroProps) {+export function CompareHero({+ hero,+ competitor,+ summary,+ meta,+}: CompareHeroProps) {return (<HeroContainer className="-mb-32" divider={false}>- <div- className={- tocItems.length > 0- ? 'grid items-start gap-8 md:grid-cols-[1fr_auto]'- : 'col gap-6'- }- >- <div className="col gap-6">- <SectionHeader- as="h1"- className="flex-1"- description={hero.subheading}- title={hero.heading}- variant="sm"- />- <div className="row gap-4">+ <div className="col w-full gap-10">+ <div className="col max-w-4xl gap-6">+ <div className="row items-center gap-3 text-muted-foreground text-sm">+ <Logo className="h-6" />+ <span>vs</span>+ <span className="rounded-full border px-3 py-1 font-medium text-foreground">+ {competitor.name}+ </span>+ </div>+ <h1 className="font-semibold text-4xl leading-tight md:text-5xl">+ {hero.heading}+ </h1>+ <p className="text-lg text-muted-foreground">{hero.subheading}</p>+ {meta && <Byline meta={meta} />}+ </div>++ <div className="col max-w-4xl gap-6 rounded-2xl border bg-background p-6 md:p-8">+ <p className="font-medium text-lg">{summary.one_liner}</p>+ <div className="grid gap-8 md:grid-cols-2">+ <VerdictColumn+ items={summary.best_for_openpanel}+ title="Pick OpenPanel if"+ />+ <VerdictColumn+ items={summary.best_for_competitor}+ title={`Pick ${competitor.name} if`}+ />+ </div>+ <div className="row flex-wrap gap-3"><GetStartedButton /><Button asChild size="lg" variant="outline"><Link- href={'https://demo.openpanel.dev'}+ href="https://demo.openpanel.dev"rel="noreferrer noopener nofollow"target="_blank">@@ -43,15 +125,7 @@ export function CompareHero({ hero, tocItems = [] }: CompareHeroProps) {</Link></Button></div>- <Perks- className="flex flex-wrap gap-4"- perks={hero.badges.map((badge) => ({- text: badge,- icon: CheckCircle2Icon,- }))}- /></div>- {tocItems.length > 0 && <CompareToc items={tocItems} />}</div></HeroContainer>);diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/compare-toc.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/compare-toc.tsxdeleted file mode 100644index a2796e225..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/compare-toc.tsx+++ /dev/null@@ -1,59 +0,0 @@-'use client';--import { ArrowRightIcon } from 'lucide-react';-import Link from 'next/link';-import { usePathname } from 'next/navigation';-import { FeatureCardContainer } from '@/components/feature-card';-import { cn } from '@/lib/utils';--interface TocItem {- id: string;- label: string;-}--interface CompareTocProps {- items: TocItem[];- className?: string;-}--export function CompareToc({ items, className }: CompareTocProps) {- const pathname = usePathname();-- return (- <FeatureCardContainer- className={cn(- 'sticky top-24 hidden h-fit w-64 shrink-0 md:block',- 'col gap-3 rounded-xl border bg-background/50 p-4 backdrop-blur-sm',- className- )}- >- <nav className="col gap-1">- {items.map((item) => (- <Link- className="group/toc relative flex min-h-6 items-center py-1 text-muted-foreground text-sm transition-colors duration-200 hover:text-foreground"- href={`${pathname}#${item.id}`}- key={item.id}- onClick={(e) => {- e.preventDefault();- e.stopPropagation();- const offset = document.getElementById(`${item.id}`)?.offsetTop;- if (offset) {- window.scrollTo({- top: offset - 100,- behavior: 'smooth',- });- }- }}- >- <div className="absolute left-0 flex w-0 items-center overflow-hidden transition-all duration-300 ease-out group-hover/toc:w-5">- <ArrowRightIcon className="size-3 shrink-0 -translate-x-full transition-transform delay-75 duration-300 ease-out group-hover/toc:translate-x-0" />- </div>- <span className="transition-transform duration-300 ease-out group-hover/toc:translate-x-5">- {item.label}- </span>- </Link>- ))}- </nav>- </FeatureCardContainer>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/comparison-table.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/comparison-table.tsxindex 97617bad6..dd01edfda 100644--- a/apps/public/src/app/(content)/compare/[slug]/_components/comparison-table.tsx+++ b/apps/public/src/app/(content)/compare/[slug]/_components/comparison-table.tsx@@ -1,113 +1,108 @@-import { CheckIcon, XIcon } from 'lucide-react';+import { CheckIcon, ChevronDownIcon, XIcon } from 'lucide-react';import { Section, SectionHeader } from '@/components/section';-import type {- CompareFeatureComparison,- CompareHighlights,-} from '@/lib/compare';-import { cn } from '@/lib/utils';+import type { CompareFeatureComparison } from '@/lib/compare';interface ComparisonTableProps {- highlights: CompareHighlights;featureComparison: CompareFeatureComparison;competitorName: string;}-function renderValue(value: boolean | string) {+const YES_VALUES = new Set(['yes', 'true', '✓']);+const NO_VALUES = new Set(['no', 'false', '✗']);++function toBoolean(value: boolean | string) {if (typeof value === 'boolean') {- return value ? (- <CheckIcon className="size-5 text-green-500" />- ) : (- <XIcon className="size-5 text-muted-foreground" />- );+ return value;+ }+ const normalized = value.toLowerCase().trim();+ if (YES_VALUES.has(normalized)) {+ return true;}- // Check for common yes/no patterns- const lower = value.toLowerCase().trim();- if (lower === 'yes' || lower === 'true' || lower.includes('✓')) {- return <CheckIcon className="size-5 text-green-500" />;+ if (NO_VALUES.has(normalized)) {+ return false;+ }+ return value;+}++function FeatureValue({ value: rawValue }: { value: boolean | string }) {+ const value = toBoolean(rawValue);+ if (value === true) {+ return <CheckIcon aria-label="Yes" className="size-5 text-emerald-600" />;}- if (lower === 'no' || lower === 'false' || lower.includes('✗')) {- return <XIcon className="size-5 text-muted-foreground" />;+ if (value === false) {+ return (+ <XIcon aria-label="No" className="size-5 text-muted-foreground/60" />+ );}return <span className="text-sm">{value}</span>;}export function ComparisonTable({- highlights,featureComparison,competitorName,}: ComparisonTableProps) {- // Flatten feature groups into rows- const featureRows = featureComparison.groups.flatMap((group) =>- group.features.map((feature) => ({- feature: feature.name,- openpanel: feature.openpanel,- competitor: feature.competitor,- notes: feature.notes,- }))+ const featureCount = featureComparison.groups.reduce(+ (total, group) => total + group.features.length,+ 0);- const allRows = [- ...highlights.items.map((h) => ({- feature: h.label,- openpanel: h.openpanel,- competitor: h.competitor,- notes: null,- })),- ...featureRows,- ];-return (<Section className="container"><SectionHeader- description={highlights.intro}- title={highlights.title}+ description={featureComparison.intro}+ title={featureComparison.title}variant="sm"/>- <div className="mt-12 overflow-hidden rounded-2xl border">- <div className="overflow-x-auto">- <table className="w-full">+ <details className="group mt-10 rounded-2xl border">+ <summary className="row cursor-pointer list-none items-center justify-between gap-4 p-4 font-medium [&::-webkit-details-marker]:hidden">+ <span>Show all {featureCount} features</span>+ <ChevronDownIcon className="size-5 text-muted-foreground transition-transform group-open:rotate-180" />+ </summary>+ <div className="overflow-x-auto border-t">+ <table className="w-full text-left"><thead>- <tr className="border-b bg-muted/30">- <th className="p-4 text-left font-semibold">Feature</th>- <th className="p-4 text-left font-semibold">OpenPanel</th>- <th className="p-4 text-left font-semibold">- {competitorName}+ <tr className="border-b bg-muted/30 text-sm">+ <th className="p-4 font-medium text-muted-foreground">+ Feature</th>+ <th className="p-4 font-semibold">OpenPanel</th>+ <th className="p-4 font-semibold">{competitorName}</th></tr></thead>- <tbody>- {allRows.map((row, index) => (- <tr- className={cn(- 'border-b last:border-b-0',- index % 2 === 0 ? 'bg-background' : 'bg-muted/20'- )}- key={row.feature}- >- <td className="p-4 font-medium">{row.feature}</td>- <td className="p-4">- <div className="row items-center gap-2">- {renderValue(row.openpanel)}- </div>- </td>- <td className="p-4">- <div className="col gap-1">- <div className="row items-center gap-2 text-muted-foreground">- {renderValue(row.competitor)}- </div>- {row.notes && (- <span className="mt-1 text-muted-foreground/70 text-xs">- {row.notes}- </span>- )}- </div>- </td>+ {featureComparison.groups.map((group) => (+ <tbody key={group.group}>+ <tr className="border-b bg-muted/10">+ <th+ className="p-4 pt-6 font-semibold text-muted-foreground text-xs uppercase tracking-wider"+ colSpan={3}+ scope="colgroup"+ >+ {group.group}+ </th></tr>- ))}- </tbody>+ {group.features.map((feature) => (+ <tr className="border-b align-top" key={feature.name}>+ <th className="p-4 font-medium text-sm" scope="row">+ {feature.name}+ {feature.notes && (+ <p className="mt-1 font-normal text-muted-foreground text-xs">+ {feature.notes}+ </p>+ )}+ </th>+ <td className="p-4">+ <FeatureValue value={feature.openpanel} />+ </td>+ <td className="p-4 text-muted-foreground">+ <FeatureValue value={feature.competitor} />+ </td>+ </tr>+ ))}+ </tbody>+ ))}</table></div>- </div>+ </details></Section>);}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/competitor-strengths.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/competitor-strengths.tsxnew file mode 100644index 000000000..dc4e80142--- /dev/null+++ b/apps/public/src/app/(content)/compare/[slug]/_components/competitor-strengths.tsx@@ -0,0 +1,31 @@+import { Section, SectionHeader } from '@/components/section';+import type { CompareStrengths } from '@/lib/compare';++export function CompetitorStrengths({+ strengths,+}: {+ strengths: CompareStrengths;+}) {+ return (+ <Section className="container">+ <SectionHeader+ description={strengths.intro}+ title={strengths.title}+ variant="sm"+ />+ <div className="mt-10 grid gap-4 md:grid-cols-2">+ {strengths.items.map((item) => (+ <div+ className="col gap-2 rounded-2xl border bg-muted/20 p-6"+ key={item.title}+ >+ <h3 className="font-semibold">{item.title}</h3>+ <p className="text-muted-foreground text-sm leading-relaxed">+ {item.description}+ </p>+ </div>+ ))}+ </div>+ </Section>+ );+}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/feature-comparison.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/feature-comparison.tsxdeleted file mode 100644index 739ffbd46..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/feature-comparison.tsx+++ /dev/null@@ -1,69 +0,0 @@-import { CheckIcon, XIcon } from 'lucide-react';-import { Section, SectionHeader } from '@/components/section';-import {- Accordion,- AccordionContent,- AccordionItem,- AccordionTrigger,-} from '@/components/ui/accordion';-import type { CompareFeatureGroup } from '@/lib/compare';--interface FeatureComparisonProps {- featureGroups: CompareFeatureGroup[];-}--function renderFeatureValue(value: boolean | string) {- if (typeof value === 'boolean') {- return value ? (- <CheckIcon className="size-5 text-green-500" />- ) : (- <XIcon className="size-5 text-red-500" />- );- }- return <span className="text-muted-foreground text-sm">{value}</span>;-}--export function FeatureComparison({ featureGroups }: FeatureComparisonProps) {- return (- <Section className="container">- <SectionHeader- align="center"- description="Detailed breakdown of capabilities"- title="Feature comparison"- />- <div className="col mt-12 gap-4">- {featureGroups.map((group) => (- <div className="overflow-hidden rounded-3xl border" key={group.group}>- <Accordion className="w-full" collapsible type="single">- <AccordionItem className="border-0" value={group.group}>- <AccordionTrigger className="px-6 py-4 hover:no-underline">- <h3 className="font-semibold text-lg">{group.group}</h3>- </AccordionTrigger>- <AccordionContent className="px-6 pb-6">- <div className="col gap-4">- {group.features.map((feature) => (- <div- className="grid gap-4 border-b py-3 last:border-b-0 md:grid-cols-3"- key={feature.name}- >- <div className="font-medium text-sm">- {feature.name}- </div>- <div className="row items-center gap-2">- {renderFeatureValue(feature.openpanel)}- </div>- <div className="row items-center gap-2 text-muted-foreground">- {renderFeatureValue(feature.competitor)}- </div>- </div>- ))}- </div>- </AccordionContent>- </AccordionItem>- </Accordion>- </div>- ))}- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/features-showcase.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/features-showcase.tsxdeleted file mode 100644index 470cc40a4..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/features-showcase.tsx+++ /dev/null@@ -1,62 +0,0 @@-import {- BellIcon,- BrainIcon,- HeartIcon,- LayoutIcon,- LockIcon,- MessageSquareIcon,- RefreshCwIcon,- SparklesIcon,-} from 'lucide-react';-import { Section, SectionHeader } from '@/components/section';-import type { CompareFeatureComparison } from '@/lib/compare';--interface FeaturesShowcaseProps {- featureComparison: CompareFeatureComparison;-}--const featureIcons = [- HeartIcon,- MessageSquareIcon,- RefreshCwIcon,- SparklesIcon,- LayoutIcon,- BellIcon,- BrainIcon,- LockIcon,-];--export function FeaturesShowcase({ featureComparison }: FeaturesShowcaseProps) {- // Get all features that OpenPanel has (true or string values)- const openpanelFeatures = featureComparison.groups- .flatMap((group) => group.features)- .filter(- (f) =>- f.openpanel === true ||- (typeof f.openpanel === 'string' && f.openpanel.toLowerCase() !== 'no')- )- .slice(0, 8);-- return (- <Section className="container">- <SectionHeader- description={featureComparison.intro}- title={featureComparison.title}- variant="sm"- />- <div className="mt-12 grid gap-6 md:grid-cols-2 lg:grid-cols-4">- {openpanelFeatures.map((feature, index) => {- const Icon = featureIcons[index] || SparklesIcon;- return (- <div className="col gap-3" key={feature.name}>- <div className="center-center size-10 rounded-lg bg-primary/10">- <Icon className="size-5 text-primary" />- </div>- <h3 className="font-semibold text-sm">{feature.name}</h3>- </div>- );- })}- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/highlights-grid.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/highlights-grid.tsxdeleted file mode 100644index ddd6c52c1..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/highlights-grid.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { CheckIcon, MinusIcon, XIcon } from 'lucide-react';-import { Section, SectionHeader } from '@/components/section';-import type { CompareHighlight } from '@/lib/compare';-import { cn } from '@/lib/utils';--interface HighlightsGridProps {- highlights: CompareHighlight[];-}--function getIcon(value: string) {- const lower = value.toLowerCase();- if (lower === 'true' || lower === 'yes' || lower.includes('✓')) {- return <CheckIcon className="size-5 text-green-500" />;- }- if (lower === 'false' || lower === 'no' || lower.includes('✗')) {- return <XIcon className="size-5 text-red-500" />;- }- return <MinusIcon className="size-5 text-muted-foreground" />;-}--export function HighlightsGrid({ highlights }: HighlightsGridProps) {- return (- <Section className="container">- <SectionHeader- align="center"- description="See how OpenPanel compares at a glance"- title="Key differences"- />- <div className="mt-12 overflow-hidden rounded-3xl border">- <div className="divide-y divide-border">- {highlights.map((highlight, index) => (- <div- className={cn(- 'grid gap-4 p-6 md:grid-cols-3',- index % 2 === 0 ? 'bg-muted/30' : 'bg-background'- )}- key={highlight.label}- >- <div className="font-semibold text-sm md:text-base">- {highlight.label}- </div>- <div className="row items-center gap-3">- {getIcon(highlight.openpanel)}- <span className="text-sm">{highlight.openpanel}</span>- </div>- <div className="row items-center gap-3 text-muted-foreground">- {getIcon(highlight.competitor)}- <span className="text-sm">{highlight.competitor}</span>- </div>- </div>- ))}- </div>- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/pricing-comparison.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/pricing-comparison.tsxdeleted file mode 100644index c7bcf4beb..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/pricing-comparison.tsx+++ /dev/null@@ -1,86 +0,0 @@-import { DollarSignIcon } from 'lucide-react';-import { FeatureCard } from '@/components/feature-card';-import { Section, SectionHeader } from '@/components/section';-import type { ComparePricing } from '@/lib/compare';-import { cn } from '@/lib/utils';--interface PricingComparisonRow {- feature: string;- openpanel: string;- competitor: string;-}--interface PricingComparisonProps {- pricing: ComparePricing;- pricingTable?: PricingComparisonRow[];- competitorName: string;-}--export function PricingComparison({- pricing,- pricingTable = [],- competitorName,-}: PricingComparisonProps) {- return (- <Section className="container">- <SectionHeader- align="center"- description={pricing.intro}- title={pricing.title}- />- <div className="mt-12 grid gap-6 md:grid-cols-2">- <FeatureCard- className="border-green-500/20 bg-green-500/5"- description={pricing.openpanel.model}- icon={DollarSignIcon}- title="OpenPanel"- >- <div className="col mt-4 gap-3">- <p className="text-muted-foreground text-sm">- {pricing.openpanel.description}- </p>- </div>- </FeatureCard>- <FeatureCard- description={pricing.competitor.model}- icon={DollarSignIcon}- title={competitorName}- >- <div className="col mt-4 gap-3">- <p className="text-muted-foreground text-sm">- {pricing.competitor.description}- </p>- {pricing.competitor.free_tier && (- <p className="text-muted-foreground text-xs">- Free tier: {pricing.competitor.free_tier}- </p>- )}- </div>- </FeatureCard>- </div>- {pricingTable.length > 0 && (- <div className="mt-12 overflow-hidden rounded-3xl border">- <div className="divide-y divide-border">- {pricingTable.map((row, index) => (- <div- className={cn(- 'grid gap-4 p-6 md:grid-cols-3',- index % 2 === 0 ? 'bg-muted/30' : 'bg-background'- )}- key={row.feature}- >- <div className="font-semibold text-sm md:text-base">- {row.feature}- </div>- <div className="text-sm">{row.openpanel}</div>- <div className="text-muted-foreground text-sm">- {row.competitor}- </div>- </div>- ))}- </div>- </div>- )}- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/pricing-section.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/pricing-section.tsxindex 60b4dadc0..bdd9475df 100644--- a/apps/public/src/app/(content)/compare/[slug]/_components/pricing-section.tsx+++ b/apps/public/src/app/(content)/compare/[slug]/_components/pricing-section.tsx@@ -1,49 +1,79 @@-'use client';--import { motion } from 'framer-motion';-import { ArrowRightIcon, CheckIcon } from 'lucide-react';+import { ArrowRightIcon } from 'lucide-react';import Link from 'next/link';import { Section, SectionHeader } from '@/components/section';-import type { ComparePricing } from '@/lib/compare';+import type { ComparePriceAtVolume, ComparePricing } from '@/lib/compare';interface PricingSectionProps {pricing: ComparePricing;competitorName: string;}-const containerVariants = {- hidden: { opacity: 0 },- visible: {- opacity: 1,- transition: {- staggerChildren: 0.15,- },- },-};--const cardVariants = {- hidden: { opacity: 0, y: 30 },- visible: {- opacity: 1,- y: 0,- },-};+function VolumeTable({+ volumes,+ competitorName,+}: {+ volumes: ComparePriceAtVolume[];+ competitorName: string;+}) {+ return (+ <div className="mt-10 overflow-x-auto rounded-2xl border">+ <table className="w-full text-left">+ <thead>+ <tr className="border-b bg-muted/30 text-sm">+ <th className="p-4 font-medium text-muted-foreground">+ Monthly volume+ </th>+ <th className="p-4 font-semibold">OpenPanel</th>+ <th className="p-4 font-semibold">{competitorName}</th>+ </tr>+ </thead>+ <tbody>+ {volumes.map((row) => (+ <tr className="border-b align-top last:border-b-0" key={row.volume}>+ <th className="p-4 font-medium text-sm" scope="row">+ {row.volume}+ </th>+ <td className="p-4 text-sm tabular-nums">{row.openpanel}</td>+ <td className="p-4 text-muted-foreground text-sm tabular-nums">+ {row.competitor}+ </td>+ </tr>+ ))}+ </tbody>+ </table>+ </div>+ );+}-function parseDescription(description: string) {- // Split by periods followed by space and capital letter, or by newlines- const sentences = description- .split(/(?<=\.)\s+(?=[A-Z])/)- .filter((s) => s.trim().length > 0);- return sentences;+function PricingModel({+ name,+ model,+ description,+ children,+}: {+ name: string;+ model: string;+ description: string;+ children?: React.ReactNode;+}) {+ return (+ <div className="col gap-3 rounded-2xl border p-6">+ <div className="col gap-1">+ <h3 className="font-semibold text-lg">{name}</h3>+ <p className="font-medium text-muted-foreground text-sm">{model}</p>+ </div>+ <p className="text-muted-foreground text-sm leading-relaxed">+ {description}+ </p>+ {children}+ </div>+ );}export function PricingSection({pricing,competitorName,}: PricingSectionProps) {- const openpanelPoints = parseDescription(pricing.openpanel.description);- const competitorPoints = parseDescription(pricing.competitor.description);-return (<Section className="container"><SectionHeader@@ -51,137 +81,41 @@ export function PricingSection({title={pricing.title}variant="sm"/>-- {/* Pricing comparison */}- <motion.div- className="mt-12 grid gap-6 md:grid-cols-2"- initial="hidden"- variants={containerVariants}- viewport={{ once: true, margin: '-100px' }}- whileInView="visible"- >- {/* OpenPanel Card */}- <motion.div- className="col group relative gap-4 overflow-hidden rounded-2xl border bg-background p-6 transition-all duration-300 hover:border-emerald-500/30"- variants={cardVariants}+ {pricing.volumes && (+ <VolumeTable+ competitorName={competitorName}+ volumes={pricing.volumes}+ />+ )}+ <div className="mt-6 grid gap-6 md:grid-cols-2">+ <PricingModel+ description={pricing.openpanel.description}+ model={pricing.openpanel.model}+ name="OpenPanel"+ />+ <PricingModel+ description={pricing.competitor.description}+ model={pricing.competitor.model}+ name={competitorName}>- <div className="pointer-events-none absolute inset-0 bg-linear-to-br light:from-emerald-800/10 light:via-transparent light:to-green-900/10 opacity-100 blur-2xl transition-opacity duration-500 group-hover:opacity-150 dark:from-emerald-500/5 dark:via-transparent dark:to-green-500/5" />- <div className="col relative z-10 gap-3">- <div className="col gap-2">- <h3 className="font-semibold text-xl">OpenPanel</h3>- <p className="font-medium text-muted-foreground text-sm">- {pricing.openpanel.model}- </p>- </div>- <div className="col mt-2 gap-2">- {openpanelPoints.map((point, index) => (- <motion.div- className="row group/item items-start gap-2"- initial={{ opacity: 0, x: -10 }}- key={index}- transition={{ delay: index * 0.1 }}- viewport={{ once: true }}- whileInView={{ opacity: 1, x: 0 }}- >- <CheckIcon className="mt-0.5 size-4 shrink-0 text-emerald-600 transition-transform duration-300 group-hover/item:scale-110 dark:text-emerald-400" />- <p className="flex-1 text-muted-foreground text-sm transition-colors duration-300 group-hover/item:text-foreground">- {point.trim()}- </p>- </motion.div>- ))}- </div>- <motion.div- className="col mt-2 gap-2"- initial={{ opacity: 0 }}- transition={{ delay: 0.3 }}- viewport={{ once: true }}- whileInView={{ opacity: 1 }}+ {pricing.competitor.free_tier && (+ <p className="text-muted-foreground text-xs">+ Free tier: {pricing.competitor.free_tier}+ </p>+ )}+ {pricing.competitor.pricing_url && (+ <Link+ className="row items-center gap-1 text-primary text-xs hover:underline"+ href={pricing.competitor.pricing_url}+ rel="noopener noreferrer nofollow"+ target="_blank">- <div className="row items-center gap-2 rounded-lg border border-emerald-500/10 bg-muted/30 p-3">- <span className="font-medium text-muted-foreground text-xs">- Free tier:- </span>- <span className="text-muted-foreground text-xs">- Self-hosting (unlimited events)- </span>- </div>- <div className="row items-center gap-2 rounded-lg border border-emerald-500/10 bg-muted/30 p-3">- <span className="font-medium text-muted-foreground text-xs">- Free trial:- </span>- <span className="text-muted-foreground text-xs">30 days</span>- </div>- </motion.div>- </div>- </motion.div>-- {/* Competitor Card */}- <motion.div- className="col group relative gap-4 overflow-hidden rounded-2xl border bg-background p-6 transition-all duration-300 hover:border-orange-500/30"- variants={cardVariants}- >- <div className="pointer-events-none absolute inset-0 bg-linear-to-br light:from-orange-800/10 light:via-transparent light:to-amber-900/10 opacity-100 blur-2xl transition-opacity duration-500 group-hover:opacity-150 dark:from-orange-500/5 dark:via-transparent dark:to-amber-500/5" />- <div className="col relative z-10 gap-3">- <div className="col gap-2">- <h3 className="font-semibold text-xl">{competitorName}</h3>- <p className="font-medium text-muted-foreground text-sm">- {pricing.competitor.model}- </p>- </div>- <div className="col mt-2 gap-2">- {competitorPoints.map((point, index) => (- <motion.div- className="row group/item items-start gap-2"- initial={{ opacity: 0, x: -10 }}- key={index}- transition={{ delay: index * 0.1 }}- viewport={{ once: true }}- whileInView={{ opacity: 1, x: 0 }}- >- <CheckIcon className="mt-0.5 size-4 shrink-0 text-orange-600 transition-transform duration-300 group-hover/item:scale-110 dark:text-orange-400" />- <p className="flex-1 text-muted-foreground text-sm transition-colors duration-300 group-hover/item:text-foreground">- {point.trim()}- </p>- </motion.div>- ))}- </div>- {pricing.competitor.free_tier && (- <motion.div- className="row mt-2 items-center gap-2 rounded-lg border border-orange-500/10 bg-muted/30 p-3"- initial={{ opacity: 0 }}- transition={{ delay: 0.3 }}- viewport={{ once: true }}- whileInView={{ opacity: 1 }}- >- <span className="font-medium text-muted-foreground text-xs">- Free tier:- </span>- <span className="text-muted-foreground text-xs">- {pricing.competitor.free_tier}- </span>- </motion.div>- )}- {pricing.competitor.pricing_url && (- <motion.div- initial={{ opacity: 0 }}- transition={{ delay: 0.4 }}- viewport={{ once: true }}- whileInView={{ opacity: 1 }}- >- <Link- className="row group/link mt-2 items-center gap-2 text-primary text-xs transition-colors duration-300 hover:text-primary/80"- href={pricing.competitor.pricing_url}- rel="noopener noreferrer"- target="_blank"- >- <span>View pricing</span>- <ArrowRightIcon className="size-3 transition-transform duration-300 group-hover/link:translate-x-1" />- </Link>- </motion.div>- )}- </div>- </motion.div>- </motion.div>+ {competitorName} pricing page+ <ArrowRightIcon className="size-3" />+ </Link>+ )}+ </PricingModel>+ </div></Section>);}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/problem-section.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/problem-section.tsxdeleted file mode 100644index fb5b6d262..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/problem-section.tsx+++ /dev/null@@ -1,45 +0,0 @@-import {- PuzzleIcon,- ShieldIcon,- TrendingUpIcon,- UsersIcon,-} from 'lucide-react';-import { Section, SectionHeader } from '@/components/section';-import type { CompareSummary } from '@/lib/compare';--interface ProblemSectionProps {- summary: CompareSummary;- competitorName: string;-}--const problemIcons = [UsersIcon, TrendingUpIcon, PuzzleIcon, ShieldIcon];--export function ProblemSection({- summary,- competitorName,-}: ProblemSectionProps) {- const problems = summary.best_for_competitor.slice(0, 4);-- return (- <Section className="container">- <SectionHeader- description={summary.intro}- title={summary.title}- variant="sm"- />- <div className="mt-12 grid gap-6 md:grid-cols-2 lg:grid-cols-4">- {problems.map((problem, index) => {- const Icon = problemIcons[index] || UsersIcon;- return (- <div className="col gap-3 text-center" key={problem}>- <div className="center-center mx-auto size-12 rounded-full bg-muted">- <Icon className="size-6 text-muted-foreground" />- </div>- <p className="text-muted-foreground text-sm">{problem}</p>- </div>- );- })}- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/scorecard.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/scorecard.tsxnew file mode 100644index 000000000..422729f32--- /dev/null+++ b/apps/public/src/app/(content)/compare/[slug]/_components/scorecard.tsx@@ -0,0 +1,48 @@+import { Section, SectionHeader } from '@/components/section';+import type { CompareHighlights } from '@/lib/compare';++interface ScorecardProps {+ highlights: CompareHighlights;+ competitorName: string;+}++export function Scorecard({ highlights, competitorName }: ScorecardProps) {+ return (+ <Section className="container">+ <SectionHeader+ description={highlights.intro}+ title={highlights.title}+ variant="sm"+ />+ <div className="mt-10 overflow-x-auto rounded-2xl border">+ <table className="w-full text-left">+ <thead>+ <tr className="border-b bg-muted/30 text-sm">+ <th className="w-1/4 p-4 font-medium text-muted-foreground">+ <span className="sr-only">Topic</span>+ </th>+ <th className="p-4 font-semibold">OpenPanel</th>+ <th className="p-4 font-semibold">{competitorName}</th>+ </tr>+ </thead>+ <tbody>+ {highlights.items.map((item) => (+ <tr+ className="border-b align-top last:border-b-0"+ key={item.label}+ >+ <th className="p-4 font-medium text-sm" scope="row">+ {item.label}+ </th>+ <td className="p-4 text-sm">{item.openpanel}</td>+ <td className="p-4 text-muted-foreground text-sm">+ {item.competitor}+ </td>+ </tr>+ ))}+ </tbody>+ </table>+ </div>+ </Section>+ );+}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/summary-comparison.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/summary-comparison.tsxdeleted file mode 100644index 78f3a7422..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/summary-comparison.tsx+++ /dev/null@@ -1,54 +0,0 @@-import { CheckIcon, XIcon } from 'lucide-react';-import { FeatureCard } from '@/components/feature-card';-import { Section, SectionHeader } from '@/components/section';-import type { CompareSummary } from '@/lib/compare';--interface SummaryComparisonProps {- summary: CompareSummary;- competitorName: string;-}--export function SummaryComparison({- summary,- competitorName,-}: SummaryComparisonProps) {- return (- <Section className="container">- <SectionHeader- align="center"- description={summary.one_liner}- title="Quick comparison"- />- <div className="mt-12 grid gap-6 md:grid-cols-2">- <FeatureCard- className="border-green-500/20 bg-green-500/5"- description=""- title="Best for OpenPanel"- >- <ul className="col mt-4 gap-3">- {summary.best_for_openpanel.map((item) => (- <li className="row items-start gap-2 text-sm" key={item}>- <CheckIcon className="mt-0.5 size-4 shrink-0 text-green-500" />- <span>{item}</span>- </li>- ))}- </ul>- </FeatureCard>- <FeatureCard- className="border-muted"- description=""- title={`Best for ${competitorName}`}- >- <ul className="col mt-4 gap-3">- {summary.best_for_competitor.map((item) => (- <li className="row items-start gap-2 text-sm" key={item}>- <XIcon className="mt-0.5 size-4 shrink-0 text-muted-foreground" />- <span className="text-muted-foreground">{item}</span>- </li>- ))}- </ul>- </FeatureCard>- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/technical-comparison.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/technical-comparison.tsxindex efe3fbcd3..248533a4c 100644--- a/apps/public/src/app/(content)/compare/[slug]/_components/technical-comparison.tsx+++ b/apps/public/src/app/(content)/compare/[slug]/_components/technical-comparison.tsx@@ -7,12 +7,15 @@ interface TechnicalComparisonProps {competitorName: string;}-function renderValue(value: string | string[]) {+function TechnicalValue({ value }: { value: string | string[] }) {if (Array.isArray(value)) {return (- <ul className="col gap-1">- {value.map((item, idx) => (- <li className="text-sm" key={idx}>+ <ul className="flex flex-wrap gap-1.5">+ {value.map((item) => (+ <li+ className="rounded-md border bg-muted/30 px-2 py-0.5 text-xs"+ key={item}+ >{item}</li>))}@@ -54,11 +57,13 @@ export function TechnicalComparison({)}key={item.label}>- <td className="p-4 font-medium">{item.label}</td>- <td className="p-4">{renderValue(item.openpanel)}</td>- <td className="p-4 text-muted-foreground">+ <td className="p-4 align-top font-medium">{item.label}</td>+ <td className="p-4 align-top">+ <TechnicalValue value={item.openpanel} />+ </td>+ <td className="p-4 align-top text-muted-foreground"><div className="col gap-1">- {renderValue(item.competitor)}+ <TechnicalValue value={item.competitor} />{item.notes && (<span className="mt-1 text-muted-foreground/70 text-xs">{item.notes}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/trust-compliance.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/trust-compliance.tsxdeleted file mode 100644index d40ce93f8..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/trust-compliance.tsx+++ /dev/null@@ -1,114 +0,0 @@-import {- CheckIcon,- MapPinIcon,- ServerIcon,- ShieldIcon,- XIcon,-} from 'lucide-react';-import { FeatureCard } from '@/components/feature-card';-import { Section, SectionHeader } from '@/components/section';-import type { CompareTrustCompliance } from '@/lib/compare';--interface TrustComplianceProps {- trust: CompareTrustCompliance;-}--export function TrustCompliance({ trust }: TrustComplianceProps) {- return (- <Section className="container">- <SectionHeader- description={trust.intro}- title={trust.title}- variant="sm"- />- <div className="mt-12 grid gap-6 md:grid-cols-2">- <FeatureCard- className="border-green-500/20 bg-green-500/5"- description=""- title="OpenPanel"- >- <div className="col mt-4 gap-4">- <div className="col gap-2">- <div className="row items-center gap-2 text-sm">- <ShieldIcon className="size-4" />- <span className="font-medium">Data Processing</span>- </div>- <p className="ml-6 text-muted-foreground text-sm">- {trust.openpanel.data_processing}- </p>- </div>- <div className="col gap-2">- <div className="row items-center gap-2 text-sm">- <MapPinIcon className="size-4" />- <span className="font-medium">Data Location</span>- </div>- <p className="ml-6 text-muted-foreground text-sm">- {trust.openpanel.data_location}- </p>- </div>- <div className="col gap-2">- <div className="row items-center gap-2 text-sm">- <ServerIcon className="size-4" />- <span className="font-medium">Self-Hosting</span>- </div>- <div className="row ml-6 items-center gap-2 text-sm">- {trust.openpanel.self_hosting ? (- <>- <CheckIcon className="size-4 text-green-500" />- <span className="text-muted-foreground">Available</span>- </>- ) : (- <>- <XIcon className="size-4 text-red-500" />- <span className="text-muted-foreground">Not available</span>- </>- )}- </div>- </div>- </div>- </FeatureCard>- <FeatureCard description="" title="Competitor">- <div className="col mt-4 gap-4">- <div className="col gap-2">- <div className="row items-center gap-2 text-sm">- <ShieldIcon className="size-4" />- <span className="font-medium">Data Processing</span>- </div>- <p className="ml-6 text-muted-foreground text-sm">- {trust.competitor.data_processing}- </p>- </div>- <div className="col gap-2">- <div className="row items-center gap-2 text-sm">- <MapPinIcon className="size-4" />- <span className="font-medium">Data Location</span>- </div>- <p className="ml-6 text-muted-foreground text-sm">- {trust.competitor.data_location}- </p>- </div>- <div className="col gap-2">- <div className="row items-center gap-2 text-sm">- <ServerIcon className="size-4" />- <span className="font-medium">Self-Hosting</span>- </div>- <div className="row ml-6 items-center gap-2 text-sm">- {trust.competitor.self_hosting ? (- <>- <CheckIcon className="size-4 text-green-500" />- <span className="text-muted-foreground">Available</span>- </>- ) : (- <>- <XIcon className="size-4 text-red-500" />- <span className="text-muted-foreground">Not available</span>- </>- )}- </div>- </div>- </div>- </FeatureCard>- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/use-cases.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/use-cases.tsxindex c000306f0..ffe7480cc 100644--- a/apps/public/src/app/(content)/compare/[slug]/_components/use-cases.tsx+++ b/apps/public/src/app/(content)/compare/[slug]/_components/use-cases.tsx@@ -1,11 +1,60 @@+import Image from 'next/image';import { Section, SectionHeader } from '@/components/section';-import type { CompareUseCases } from '@/lib/compare';+import type {+ CompareScreenshot,+ CompareUseCase,+ CompareUseCases,+} from '@/lib/compare';+import { cn } from '@/lib/utils';-interface UseCasesProps {- useCases: CompareUseCases;+const SCREENSHOT_WIDTH = 1400;+const SCREENSHOT_HEIGHT = 800;++type UseCaseWithScreenshot = CompareUseCase & { screenshot: CompareScreenshot };++function hasScreenshot(item: CompareUseCase): item is UseCaseWithScreenshot {+ return Boolean(item.screenshot);+}++function UseCaseRow({+ useCase,+ imageFirst,+}: {+ useCase: UseCaseWithScreenshot;+ imageFirst: boolean;+}) {+ return (+ <div+ className={cn(+ 'grid items-center gap-8',+ imageFirst ? 'md:grid-cols-[3fr_2fr]' : 'md:grid-cols-[2fr_3fr]'+ )}+ >+ <div className={cn('col gap-3', imageFirst && 'md:order-2')}>+ <h3 className="font-semibold text-xl">{useCase.title}</h3>+ <p className="text-muted-foreground leading-relaxed">+ {useCase.description}+ </p>+ </div>+ <figure className="overflow-hidden rounded-xl border bg-muted/20 p-2">+ <Image+ alt={useCase.screenshot.alt}+ className="h-auto w-full rounded-lg"+ height={SCREENSHOT_HEIGHT}+ src={useCase.screenshot.src}+ width={SCREENSHOT_WIDTH}+ />+ </figure>+ </div>+ );}-export function UseCases({ useCases }: UseCasesProps) {+export function UseCases({ useCases }: { useCases: CompareUseCases }) {+ const withScreenshots = useCases.items.filter(hasScreenshot);+ const withoutScreenshots = useCases.items.filter(+ (item) => !hasScreenshot(item)+ );+return (<Section className="container"><SectionHeader@@ -13,16 +62,32 @@ export function UseCases({ useCases }: UseCasesProps) {title={useCases.title}variant="sm"/>- <div className="mt-12 grid gap-6 md:grid-cols-2">- {useCases.items.map((useCase) => (- <div className="col gap-2 rounded-2xl border p-6" key={useCase.title}>- <h3 className="font-semibold">{useCase.title}</h3>- <p className="text-muted-foreground text-sm">- {useCase.description}- </p>- </div>- ))}- </div>+ {withScreenshots.length > 0 && (+ <div className="col mt-12 gap-16">+ {withScreenshots.map((useCase, index) => (+ <UseCaseRow+ imageFirst={index % 2 === 1}+ key={useCase.title}+ useCase={useCase}+ />+ ))}+ </div>+ )}+ {withoutScreenshots.length > 0 && (+ <div className="mt-12 grid gap-6 md:grid-cols-2">+ {withoutScreenshots.map((useCase) => (+ <div+ className="col gap-2 rounded-2xl border p-6"+ key={useCase.title}+ >+ <h3 className="font-semibold">{useCase.title}</h3>+ <p className="text-muted-foreground text-sm">+ {useCase.description}+ </p>+ </div>+ ))}+ </div>+ )}</Section>);}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/who-should-choose.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/who-should-choose.tsxdeleted file mode 100644index c22da317c..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/who-should-choose.tsx+++ /dev/null@@ -1,122 +0,0 @@-'use client';--import { motion } from 'framer-motion';-import { Section } from '@/components/section';-import type { CompareSummary } from '@/lib/compare';--interface WhoShouldChooseProps {- summary: CompareSummary;- competitorName: string;-}--const containerVariants = {- hidden: { opacity: 0 },- visible: {- opacity: 1,- transition: {- staggerChildren: 0.15,- },- },-};--const cardVariants = {- hidden: { opacity: 0, y: 30 },- visible: {- opacity: 1,- y: 0,- },-};--export function WhoShouldChoose({- summary,- competitorName,-}: WhoShouldChooseProps) {- const openpanelItems = summary.best_for_openpanel.slice(0, 3);- const competitorItems = summary.best_for_competitor.slice(0, 3);-- return (- <Section className="container">- <div className="col mb-12 gap-4">- <h2 className="font-semibold text-3xl md:text-4xl">{summary.title}</h2>- <p className="max-w-3xl text-muted-foreground">{summary.intro}</p>- </div>- <motion.div- className="grid gap-6 md:grid-cols-2"- initial="hidden"- variants={containerVariants}- viewport={{ once: true, margin: '-100px' }}- whileInView="visible"- >- {/* OpenPanel Card */}- <motion.div- className="col group relative gap-4 overflow-hidden rounded-2xl border bg-background p-6 transition-all duration-300 hover:border-emerald-500/30"- variants={cardVariants}- >- <div className="pointer-events-none absolute inset-0 bg-linear-to-br light:from-emerald-800/10 light:via-transparent light:to-green-900/10 opacity-100 blur-2xl transition-opacity duration-500 group-hover:opacity-150 dark:from-emerald-500/5 dark:via-transparent dark:to-green-500/5" />- <div className="col relative z-10 gap-3">- <div className="col gap-2">- <h3 className="font-semibold text-xl">Choose OpenPanel if...</h3>- </div>- <div className="col mt-2 gap-2">- {openpanelItems.map((item, index) => (- <motion.div- className="row group/item items-start gap-2"- initial={{ opacity: 0, x: -10 }}- key={item}- transition={{ delay: index * 0.1 }}- viewport={{ once: true }}- whileInView={{ opacity: 1, x: 0 }}- >- <div className="mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-emerald-600 transition-transform duration-300 group-hover/item:scale-110 dark:bg-emerald-400">- <span className="font-bold text-[10px] text-white">- {index + 1}- </span>- </div>- <p className="flex-1 text-muted-foreground text-sm transition-colors duration-300 group-hover/item:text-foreground">- {item}- </p>- </motion.div>- ))}- </div>- </div>- </motion.div>-- {/* Competitor Card */}- <motion.div- className="col group relative gap-4 overflow-hidden rounded-2xl border bg-background p-6 transition-all duration-300 hover:border-orange-500/30"- variants={cardVariants}- >- <div className="pointer-events-none absolute inset-0 bg-linear-to-br light:from-orange-800/10 light:via-transparent light:to-amber-900/10 opacity-100 blur-2xl transition-opacity duration-500 group-hover:opacity-150 dark:from-orange-500/5 dark:via-transparent dark:to-amber-500/5" />- <div className="col relative z-10 gap-3">- <div className="col gap-2">- <h3 className="font-semibold text-xl">- Choose {competitorName} if...- </h3>- </div>- <div className="col mt-2 gap-2">- {competitorItems.map((item, index) => (- <motion.div- className="row group/item items-start gap-2"- initial={{ opacity: 0, x: -10 }}- key={item}- transition={{ delay: index * 0.1 }}- viewport={{ once: true }}- whileInView={{ opacity: 1, x: 0 }}- >- <div className="mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full bg-orange-600 transition-transform duration-300 group-hover/item:scale-110 dark:bg-orange-400">- <span className="font-bold text-[10px] text-white">- {index + 1}- </span>- </div>- <p className="flex-1 text-muted-foreground text-sm transition-colors duration-300 group-hover/item:text-foreground">- {item}- </p>- </motion.div>- ))}- </div>- </div>- </motion.div>- </motion.div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/_components/why-switch.tsx b/apps/public/src/app/(content)/compare/[slug]/_components/why-switch.tsxdeleted file mode 100644index 20795f5fe..000000000--- a/apps/public/src/app/(content)/compare/[slug]/_components/why-switch.tsx+++ /dev/null@@ -1,54 +0,0 @@-import {- CheckCircleIcon,- MoonIcon,- SearchIcon,- ServerIcon,- ShieldIcon,- SparklesIcon,- UsersIcon,- ZapIcon,-} from 'lucide-react';-import { Section, SectionHeader } from '@/components/section';-import type { CompareSummary } from '@/lib/compare';--interface WhySwitchProps {- summary: CompareSummary;-}--const benefitIcons = [- UsersIcon,- SparklesIcon,- SearchIcon,- MoonIcon,- ShieldIcon,- ServerIcon,- ZapIcon,- CheckCircleIcon,-];--export function WhySwitch({ summary }: WhySwitchProps) {- const benefits = summary.best_for_openpanel.slice(0, 8);-- return (- <Section className="container">- <SectionHeader- description={summary.intro}- title={summary.title}- variant="sm"- />- <div className="mt-12 grid gap-8 md:grid-cols-2 lg:grid-cols-4">- {benefits.map((benefit, index) => {- const Icon = benefitIcons[index] || CheckCircleIcon;- return (- <div className="col gap-3" key={benefit}>- <div className="center-center size-10 rounded-lg bg-primary/10">- <Icon className="size-5 text-primary" />- </div>- <h3 className="font-semibold text-sm">{benefit}</h3>- </div>- );- })}- </div>- </Section>- );-}diff --git a/apps/public/src/app/(content)/compare/[slug]/page.tsx b/apps/public/src/app/(content)/compare/[slug]/page.tsxindex 0bd3b5dea..72137c1c6 100644--- a/apps/public/src/app/(content)/compare/[slug]/page.tsx+++ b/apps/public/src/app/(content)/compare/[slug]/page.tsx@@ -1,22 +1,21 @@import type { Metadata } from 'next';import { notFound } from 'next/navigation';import Script from 'next/script';-import { BenefitsSection } from './_components/benefits-section';import { CompareFaq } from './_components/compare-faq';import { CompareHero } from './_components/compare-hero';import { CompareOverview } from './_components/compare-overview';import { ComparisonTable } from './_components/comparison-table';-import { FeaturesShowcase } from './_components/features-showcase';+import { CompetitorStrengths } from './_components/competitor-strengths';import { MigrationSection } from './_components/migration-section';import { PricingSection } from './_components/pricing-section';import { RelatedLinksSection } from './_components/related-links';+import { Scorecard } from './_components/scorecard';import { TechnicalComparison } from './_components/technical-comparison';import { UseCases } from './_components/use-cases';-import { WhoShouldChoose } from './_components/who-should-choose';import { CtaBanner } from '@/app/(home)/_sections/cta-banner';-import { WindowImage } from '@/components/window-image';+import type { CompareData } from '@/lib/compare';import { getAllCompareSlugs, getCompareData } from '@/lib/compare';-import { url } from '@/lib/layout.shared';+import { getAuthor, url } from '@/lib/layout.shared';import { getOgImageUrl, getPageMetadata } from '@/lib/metadata';export async function generateStaticParams() {@@ -46,6 +45,34 @@ export async function generateMetadata({});}+function buildJsonLd(data: CompareData, pageUrl: string) {+ const author = data.meta ? getAuthor(data.meta.author) : undefined;+ const article = {+ '@type': 'Article',+ headline: data.seo.title,+ description: data.seo.description,+ url: pageUrl,+ ...(data.meta && { dateModified: data.meta.updated }),+ ...(author && {+ author: { '@type': 'Person', name: author.name, url: author.url },+ }),+ publisher: {+ '@type': 'Organization',+ name: 'OpenPanel',+ logo: { '@type': 'ImageObject', url: url('/logo.png') },+ },+ };+ const faqPage = {+ '@type': 'FAQPage',+ mainEntity: data.faqs.items.map((faq) => ({+ '@type': 'Question',+ name: faq.question,+ acceptedAnswer: { '@type': 'Answer', text: faq.answer },+ })),+ };+ return { '@context': 'https://schema.org', '@graph': [article, faqPage] };+}+export default async function ComparePage({params,}: {@@ -58,166 +85,52 @@ export default async function ComparePage({return notFound();}- const pageUrl = url(`/compare/${slug}`);-- // Create JSON-LD schema- const jsonLd = {- '@context': 'https://schema.org',- '@type': 'WebPage',- name: data.seo.title,- description: data.seo.description,- url: pageUrl,- publisher: {- '@type': 'Organization',- name: 'OpenPanel',- logo: {- '@type': 'ImageObject',- url: url('/logo.webp'),- },- },- };-- // Build ToC items- const tocItems = [- ...(data.overview ? [{ id: 'overview', label: data.overview.title }] : []),- { id: 'who-should-choose', label: data.summary_comparison.title },- { id: 'comparison', label: data.highlights.title },- { id: 'features', label: data.feature_comparison.title },- ...(data.technical_comparison- ? [{ id: 'technical', label: data.technical_comparison.title }]- : []),- { id: 'pricing', label: data.pricing.title },- ...(data.migration- ? [{ id: 'migration', label: data.migration.title }]- : []),- { id: 'use-cases', label: data.use_cases.title },- ...(data.benefits_section- ? [{ id: 'benefits', label: data.benefits_section.title }]- : []),- { id: 'faq', label: data.faqs.title },- ];+ const competitorName = data.competitor.name;return (<div><Script- dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}+ dangerouslySetInnerHTML={{+ __html: JSON.stringify(buildJsonLd(data, url(`/compare/${slug}`))),+ }}id="compare-schema"strategy="beforeInteractive"type="application/ld+json"/>- <CompareHero hero={data.hero} tocItems={tocItems} />-- <div className="container my-16">- <WindowImage- alt="OpenPanel Dashboard Overview"- caption="This is our web analytics dashboard, its an out-of-the-box experience so you can start understanding your traffic and engagement right away."- srcDark="/screenshots/overview-dark.webp"- srcLight="/screenshots/overview-light.webp"- />- </div>+ <CompareHero+ competitor={data.competitor}+ hero={data.hero}+ meta={data.meta}+ summary={data.summary_comparison}+ />- {data.overview && (- <div id="overview">- <CompareOverview overview={data.overview} />- </div>+ <Scorecard competitorName={competitorName} highlights={data.highlights} />++ {data.competitor_strengths && (+ <CompetitorStrengths strengths={data.competitor_strengths} />)}- <div id="who-should-choose">- <WhoShouldChoose- competitorName={data.competitor.name}- summary={data.summary_comparison}- />- </div>-- <div className="container my-16">- <WindowImage- alt="OpenPanel Dashboard"- caption="Comprehensive analytics dashboard with real-time insights and customizable views."- srcDark="/screenshots/dashboard-dark.webp"- srcLight="/screenshots/dashboard-light.webp"- />- </div>+ <PricingSection competitorName={competitorName} pricing={data.pricing} />- <div id="comparison">- <ComparisonTable- competitorName={data.competitor.name}- featureComparison={data.feature_comparison}- highlights={data.highlights}- />- </div>- <div id="features">- <FeaturesShowcase featureComparison={data.feature_comparison} />- </div>-- <div className="container my-16">- <WindowImage- alt="OpenPanel Real-time Analytics"- caption="Track events in real-time as they happen with instant updates and live monitoring."- srcDark="/screenshots/realtime-dark.webp"- srcLight="/screenshots/realtime-light.webp"- />- </div>+ {data.overview && <CompareOverview overview={data.overview} />}- {data.technical_comparison && (- <div id="technical">- <TechnicalComparison- competitorName={data.competitor.name}- technical={data.technical_comparison}- />- </div>- )}+ <UseCases useCases={data.use_cases} />- <div id="pricing">- <PricingSection- competitorName={data.competitor.name}- pricing={data.pricing}+ {data.technical_comparison && (+ <TechnicalComparison+ competitorName={competitorName}+ technical={data.technical_comparison}/>- </div>-- {data.migration && (- <div id="migration">- <MigrationSection migration={data.migration} />- </div>)}- <div id="use-cases">- <UseCases useCases={data.use_cases} />- </div>+ {data.migration && <MigrationSection migration={data.migration} />}- <div className="container my-16">- <WindowImage- alt="OpenPanel Reports"- caption="Generate detailed reports and insights with customizable metrics and visualizations."- srcDark="/screenshots/report-dark.webp"- srcLight="/screenshots/report-light.webp"- />- </div>-- {data.benefits_section && (- <>- <div id="benefits">- <BenefitsSection- benefits={data.benefits_section.benefits}- cta={data.benefits_section.cta}- description={data.benefits_section.description}- label={data.benefits_section.label}- title={data.benefits_section.title}- />- </div>- <div className="container my-16">- <WindowImage- alt="OpenPanel User Profiles"- caption="Deep dive into individual user profiles with complete event history and behavior tracking."- srcDark="/screenshots/profile-dark.webp"- srcLight="/screenshots/profile-light.webp"- />- </div>- </>- )}+ <ComparisonTable+ competitorName={competitorName}+ featureComparison={data.feature_comparison}+ />- <div id="faq">- <CompareFaq faqs={data.faqs} />- </div>+ <CompareFaq faqs={data.faqs} />{data.related_links && (<RelatedLinksSection relatedLinks={data.related_links} />@@ -226,8 +139,8 @@ export default async function ComparePage({<CtaBannerctaLink={data.ctas.primary.href}ctaText={data.ctas.primary.label}- description="Test OpenPanel free for 30 days, you'll not be charged anything unless you upgrade to a paid plan."- title={'Ready to make the switch?'}+ description="Try OpenPanel free for 30 days. You won't be charged unless you pick a paid plan."+ title="Try it on your own data"/></div>);diff --git a/apps/public/src/app/(content)/compare/_components/compare-index-hero.tsx b/apps/public/src/app/(content)/compare/_components/compare-index-hero.tsxnew file mode 100644index 000000000..5ae013769--- /dev/null+++ b/apps/public/src/app/(content)/compare/_components/compare-index-hero.tsx@@ -0,0 +1,51 @@+import { CheckCircle2Icon } from 'lucide-react';+import Link from 'next/link';+import { HeroContainer } from '@/app/(home)/_sections/hero';+import { GetStartedButton } from '@/components/get-started-button';+import { Perks } from '@/components/perks';+import { SectionHeader } from '@/components/section';+import { Button } from '@/components/ui/button';++interface CompareIndexHeroProps {+ heading: string;+ subheading: string;+ badges: string[];+}++export function CompareIndexHero({+ heading,+ subheading,+ badges,+}: CompareIndexHeroProps) {+ return (+ <HeroContainer className="-mb-32" divider={false}>+ <div className="col gap-6">+ <SectionHeader+ as="h1"+ description={subheading}+ title={heading}+ variant="sm"+ />+ <div className="row gap-4">+ <GetStartedButton />+ <Button asChild size="lg" variant="outline">+ <Link+ href="https://demo.openpanel.dev"+ rel="noreferrer noopener nofollow"+ target="_blank"+ >+ See live demo+ </Link>+ </Button>+ </div>+ <Perks+ className="flex flex-wrap gap-4"+ perks={badges.map((badge) => ({+ text: badge,+ icon: CheckCircle2Icon,+ }))}+ />+ </div>+ </HeroContainer>+ );+}diff --git a/apps/public/src/app/(content)/compare/page.tsx b/apps/public/src/app/(content)/compare/page.tsxindex e2912712b..b093985a3 100644--- a/apps/public/src/app/(content)/compare/page.tsx+++ b/apps/public/src/app/(content)/compare/page.tsx@@ -1,6 +1,6 @@import type { Metadata } from 'next';import { CompareCard } from './_components/compare-card';-import { CompareHero } from './[slug]/_components/compare-hero';+import { CompareIndexHero } from './_components/compare-index-hero';import { CtaBanner } from '@/app/(home)/_sections/cta-banner';import { Section, SectionHeader } from '@/components/section';import { WindowImage } from '@/components/window-image';@@ -33,7 +33,7 @@ export default async function CompareIndexPage() {return (<div>- <CompareHero hero={heroData} />+ <CompareIndexHero {...heroData} /><div className="container my-16"><WindowImagediff --git a/apps/public/src/components/article-cta.tsx b/apps/public/src/components/article-cta.tsxnew file mode 100644index 000000000..d00fdc331--- /dev/null+++ b/apps/public/src/components/article-cta.tsx@@ -0,0 +1,57 @@+import Link from 'next/link';+import { FeatureCardContainer } from '@/components/feature-card';+import { GetStartedButton } from '@/components/get-started-button';+import { Button } from '@/components/ui/button';++const ONBOARDING_URL = 'https://dashboard.openpanel.dev/onboarding';+const CLICK_EVENT = 'article_cta_click';++interface ArticleCtaLink {+ text: string;+ href: string;+}++export function ArticleCta({+ id,+ title,+ description,+ primary = { text: 'Start free trial', href: ONBOARDING_URL },+ secondary,+}: {+ /** Identifies this placement in the click event, e.g. "self-hosted-mid". */+ id: string;+ title: string;+ description: string;+ primary?: ArticleCtaLink;+ secondary?: ArticleCtaLink;+}) {+ return (+ <FeatureCardContainer className="not-prose my-10 gap-4">+ <div className="col gap-2">+ <span className="font-semibold text-lg">{title}</span>+ <p className="text-muted-foreground text-sm">{description}</p>+ </div>+ <div className="row flex-wrap items-center gap-3">+ <GetStartedButton+ data-cta={id}+ data-cta-target="primary"+ data-track={CLICK_EVENT}+ href={primary.href}+ text={primary.text}+ />+ {secondary && (+ <Button asChild size="lg" variant="outline">+ <Link+ data-cta={id}+ data-cta-target="secondary"+ data-track={CLICK_EVENT}+ href={secondary.href}+ >+ {secondary.text}+ </Link>+ </Button>+ )}+ </div>+ </FeatureCardContainer>+ );+}diff --git a/apps/public/src/components/get-started-button.tsx b/apps/public/src/components/get-started-button.tsxindex f2fe92a33..0d8e0fded 100644--- a/apps/public/src/components/get-started-button.tsx+++ b/apps/public/src/components/get-started-button.tsx@@ -7,14 +7,15 @@ export function GetStartedButton({text,href = 'https://dashboard.openpanel.dev/onboarding',className,+ ...linkProps}: {text?: React.ReactNode;className?: string;href?: string;-}) {+} & Omit<React.ComponentProps<typeof Link>, 'href' | 'className'>) {return (<Button asChild className={cn('group', className)} size="lg">- <Link href={href}>+ <Link href={href} {...linkProps}>{text ?? 'Start free trial'}<ChevronRightIcon className="size-4 transition-transform group-hover:translate-x-1 group-hover:scale-125" /></Link>diff --git a/apps/public/src/lib/compare.ts b/apps/public/src/lib/compare.tsindex 56c9614d6..90f274534 100644--- a/apps/public/src/lib/compare.ts+++ b/apps/public/src/lib/compare.ts@@ -27,6 +27,12 @@ export interface CompareCompetitor {headquarters?: string;}+export interface CompareMeta {+ author: string;+ updated: string;+ prices_checked?: string;+}+export interface CompareSummary {title: string;intro: string;@@ -78,6 +84,24 @@ export interface ComparePricing {free_tier?: string;pricing_url?: string;};+ volumes?: ComparePriceAtVolume[];+}++export interface ComparePriceAtVolume {+ volume: string;+ openpanel: string;+ competitor: string;+}++export interface CompareStrength {+ title: string;+ description: string;+}++export interface CompareStrengths {+ title: string;+ intro: string;+ items: CompareStrength[];}export interface CompareTrust {@@ -93,10 +117,16 @@ export interface CompareTrustCompliance {competitor: CompareTrust;}+export interface CompareScreenshot {+ src: string;+ alt: string;+}+export interface CompareUseCase {title: string;description: string;icon?: string;+ screenshot?: CompareScreenshot;}export interface CompareUseCases {@@ -116,14 +146,6 @@ export interface CompareFaqs {items: CompareFaq[];}-export interface CompareBenefitsSection {- label?: string;- title: string;- description: string;- cta?: CompareCta;- benefits: string[];-}-export interface CompareTechnicalItem {label: string;openpanel: string | string[];@@ -182,9 +204,11 @@ export interface CompareData {seo: CompareSeo;hero: CompareHero;competitor: CompareCompetitor;+ meta?: CompareMeta;overview?: CompareOverview;summary_comparison: CompareSummary;highlights: CompareHighlights;+ competitor_strengths?: CompareStrengths;feature_comparison: CompareFeatureComparison;technical_comparison?: CompareTechnicalComparison;pricing: ComparePricing;@@ -192,7 +216,6 @@ export interface CompareData {trust_and_compliance?: CompareTrustCompliance;use_cases: CompareUseCases;faqs: CompareFaqs;- benefits_section?: CompareBenefitsSection;related_links?: RelatedLinks;ctas: {primary: CompareCta;diff --git a/apps/public/src/mdx-components.tsx b/apps/public/src/mdx-components.tsxindex c6b94e647..b315088bb 100644--- a/apps/public/src/mdx-components.tsx+++ b/apps/public/src/mdx-components.tsx@@ -4,6 +4,7 @@ import * as TabsComponents from 'fumadocs-ui/components/tabs';import defaultMdxComponents from 'fumadocs-ui/mdx';import * as icons from 'lucide-react';import type { MDXComponents } from 'mdx/types';+import { ArticleCta } from '@/components/article-cta';import { FaqItem, Faqs } from '@/components/faq';import { Figure } from '@/components/figure';import { WindowImage } from '@/components/window-image';@@ -17,6 +18,7 @@ export function getMDXComponents(components?: MDXComponents) {Accordion,Accordions,...components,+ ArticleCta,Faqs,FaqItem,WindowImage,