diff --git a/docs/data-access.md b/docs/data-access.md
index 9b492b91..be89a654 100644
--- a/docs/data-access.md
+++ b/docs/data-access.md
@@ -4,8 +4,18 @@ sidebar_label: Accessing your data
description: "Choose the right way to access your Plausible data outside the dashboard: Stats API, Events API, Sites API, CSV export, Data Studio, MCP server or data warehouse connectors."
---
+import CtaBox from '@site/src/components/CtaBox';
+
Plausible gives you several ways to access your stats outside the dashboard. The right option depends on whether you want to query data, send data, manage sites or export for offline use.
+
+
## Quick reference
| I want to... | Option |
diff --git a/docs/events-api.md b/docs/events-api.md
index 8f6a3853..bc2658a7 100644
--- a/docs/events-api.md
+++ b/docs/events-api.md
@@ -4,6 +4,7 @@ sidebar_label: Events API reference
description: "Reference for the Plausible Events API. Send pageviews and custom events server-side or from mobile apps without the JavaScript snippet."
---
+import CtaBox from '@site/src/components/CtaBox';
import {Required, Optional} from '../src/js/api-helpers.tsx';
The Plausible Events API can be used to record pageviews and custom events. This is useful when tracking Android or iOS mobile apps, or for server side tracking.
@@ -11,6 +12,12 @@ The Plausible Events API can be used to record pageviews and custom events. This
In most cases we recommend installing Plausible through our provided [script](/docs/plausible-script) or one of the many
integration packages listed [here](/docs/integration-guides). However, if there's no easy way for you to integrate with Plausible, you can still do so by sending events directly to our API.
+
+
### Unique visitor tracking
**Important!** Special care should be taken with two key headers which are used for [unique visitor counting](https://plausible.io/data-policy#how-we-count-unique-visitors-without-cookies):
diff --git a/docs/export-stats.md b/docs/export-stats.md
index ff0308f9..0a6404e1 100644
--- a/docs/export-stats.md
+++ b/docs/export-stats.md
@@ -3,6 +3,7 @@ title: Export your website stats
description: "Export your Plausible stats as CSV files directly from the dashboard. Filter by date range, audience segment or goal, including data imported from other tools."
---
+import CtaBox from '@site/src/components/CtaBox';
import useBaseUrl from '@docusaurus/useBaseUrl';
Choose an export method based on what you need:
@@ -14,6 +15,12 @@ Choose an export method based on what you need:
| [Stats API](#use-the-stats-api) | Querying aggregated stats programmatically for custom reports or integrations. |
| [Scheduled raw event data exports](#scheduled-raw-event-data-exports) | Receiving daily event-level data in your own storage for warehousing or custom analysis. |
+
+
:::note Exporting after your trial or subscription ends
If you no longer have an active trial or subscription, you can still export your stats from **Site Settings → Imports & exports** before your dashboards and stats are deleted. Dashboard exports and the Stats API are unavailable without an active trial or subscription.
diff --git a/docs/mcp.md b/docs/mcp.md
index 41877ed6..1d98071d 100644
--- a/docs/mcp.md
+++ b/docs/mcp.md
@@ -4,8 +4,18 @@ sidebar_label: "AI integration (MCP)"
description: "Connect to Plausible's official read-only MCP server using OAuth, choose your team and ask questions about your stats. Included with every plan."
---
+import CtaBox from '@site/src/components/CtaBox';
+
You can connect your AI assistant (like Claude, ChatGPT, etc.) to Plausible and ask questions about your stats. We use MCP (Model Context Protocol), a standard that lets AI assistants connect to other apps. Our integration is included on all plans, at no extra charge.
+
+
## Before you connect
You’ll need to be a member of the Plausible team whose stats you want to use. Any team role works. If you only have guest access to a site, ask the team owner to add you as a member.
diff --git a/docs/metrics-definitions.md b/docs/metrics-definitions.md
index fda47a2f..9ed3fbed 100644
--- a/docs/metrics-definitions.md
+++ b/docs/metrics-definitions.md
@@ -3,10 +3,19 @@ title: Metrics definitions
description: "Definitions for every metric in Plausible: unique visitors, sessions, pageviews, bounce rate, visit duration, conversion rate and more. All in one place."
---
+import CtaBox from '@site/src/components/CtaBox';
import useBaseUrl from '@docusaurus/useBaseUrl';
These are the metrics you'll find across your Plausible dashboard. They're grouped by category to help you understand how they relate to each other.
+
+
---
## Traffic
diff --git a/docs/stats-api.md b/docs/stats-api.md
index ed4c9597..5e47b822 100644
--- a/docs/stats-api.md
+++ b/docs/stats-api.md
@@ -5,6 +5,7 @@ description: "Complete reference for the Plausible Stats API v2. Query historica
toc_max_heading_level: 4
---
+import CtaBox from '@site/src/components/CtaBox';
import { ApiV2Example, ExamplesTip } from '../src/js/apiv2-example.tsx';
import { Required, Optional } from '../src/js/api-helpers.tsx';
import { getExampleCode, EXAMPLE_RESPONSE_META } from '../src/js/examples.tsx';
@@ -20,6 +21,12 @@ Take a look at our [Events API Reference](events-api.md) if you want to record p
+
+
## Authentication
API keys are scoped to one team. The team selected in the top-right menu when you create the key determines which sites it can query. A key does not inherit access to every site its owner can view across Plausible.
diff --git a/docusaurus.config.js b/docusaurus.config.js
index bcd2c2dc..f1e1f854 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -9,6 +9,14 @@ module.exports = {
scripts: [
{src: '/docs/js/tracking.js', defer: true}
],
+ // Hide logged-out CTAs before first paint so logged-in visitors never see them flash
+ headTags: [
+ {
+ tagName: 'script',
+ attributes: {},
+ innerHTML: "if (document.cookie.includes('logged_in=true')) document.documentElement.classList.add('logged-in')",
+ },
+ ],
plugins: ['@docsearch/docusaurus-adapter'],
themeConfig: {
docs: {
diff --git a/src/components/CtaBox.js b/src/components/CtaBox.js
index eb9f007d..4dc293da 100644
--- a/src/components/CtaBox.js
+++ b/src/components/CtaBox.js
@@ -9,7 +9,7 @@ export default function CtaBox({ headline, link, linkText, secondaryLink, second
if (loggedIn) return null;
return (
-
+
{headline}
diff --git a/src/components/PlanFeatureNote.js b/src/components/PlanFeatureNote.js
index c1af1f01..2fb2d3a0 100644
--- a/src/components/PlanFeatureNote.js
+++ b/src/components/PlanFeatureNote.js
@@ -1,10 +1,17 @@
-import React from 'react';
+import React, { useState, useEffect } from 'react';
export default function PlanFeatureNote({ feature, plan, label }) {
+ // Logged-in users go straight to the plan picker in their account instead of the public pricing section.
+ const [loggedIn, setLoggedIn] = useState(false);
+ useEffect(() => {
+ setLoggedIn(document.cookie.includes('logged_in=true'));
+ }, []);
+
const isBusiness = plan === 'business';
const planLabel = isBusiness ? 'Business' : 'Enterprise';
const article = isBusiness ? 'a' : 'an';
- const link = isBusiness ? 'https://plausible.io/#pricing' : 'https://plausible.io/contact';
+ const pricingLink = loggedIn ? 'https://plausible.io/billing/choose-plan' : 'https://plausible.io/#pricing';
+ const link = isBusiness ? pricingLink : 'https://plausible.io/contact';
const linkText = isBusiness ? 'Compare plans →' : 'Contact us →';
return (
diff --git a/src/css/custom.css b/src/css/custom.css
index d2760fbe..433bdb8d 100644
--- a/src/css/custom.css
+++ b/src/css/custom.css
@@ -681,6 +681,11 @@ html[data-theme='dark'] {
grid-column: 1 / -1;
}
+/* Set in before first paint, see headTags in docusaurus.config.js */
+.logged-in .logged-out-only {
+ display: none !important;
+}
+
/* Inline CTA box */
.cta-box {
margin: 1.5rem 0;
diff --git a/src/theme/Footer/index.js b/src/theme/Footer/index.js
index b5f3facb..8477a862 100644
--- a/src/theme/Footer/index.js
+++ b/src/theme/Footer/index.js
@@ -43,7 +43,7 @@ export default function Footer() {
return (
<>
{!loggedIn && (
-
+
Ready to ditch Google Analytics?
diff --git a/src/theme/NavbarItem/CustomLoginStatusNavbarItem.js b/src/theme/NavbarItem/CustomLoginStatusNavbarItem.js
index 0e817d63..c2ccdd88 100644
--- a/src/theme/NavbarItem/CustomLoginStatusNavbarItem.js
+++ b/src/theme/NavbarItem/CustomLoginStatusNavbarItem.js
@@ -48,7 +48,7 @@ export default function CustomLoginStatusNavbarItem({ mobile }) {
}
return (
-
+
Log in
diff --git a/static/js/tracking.js b/static/js/tracking.js
index 911cab93..4af15e51 100644
--- a/static/js/tracking.js
+++ b/static/js/tracking.js
@@ -24,6 +24,7 @@ if (!window.plausibleDocsCtaTracking) {
if (path === '/register') button = 'Start free trial';
else if (path === '/plausible.io') button = 'View live demo';
else if (path === '/' && url.hash === '#pricing') button = 'See pricing';
+ else if (path === '/billing/choose-plan' && a.hasAttribute('data-cta-position')) button = 'See pricing';
else if (path === '/contact') button = 'Contact us';
else return;
var props = {