Skip to content

Commit 3ce363b

Browse files
Merge pull request #734 from plausible/refresh-troubleshooting
refresh
2 parents 13faa0f + 1b05772 commit 3ce363b

11 files changed

Lines changed: 466 additions & 125 deletions

‎docs/bot-traffic-filtering.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,41 @@ This is a tradeoff of aggressive bot filtering. It keeps automated traffic out o
2828

2929
No filter is perfect. Bots emerge constantly and there is always a gap between when a new bot appears and when we identify and block it. If you see a sudden spike from an unfamiliar source with a very high bounce rate and short session duration, it may be bot traffic we haven't classified yet.
3030

31+
## Investigating a suspicious traffic spike
32+
33+
If you see an unexpected spike in your dashboard, run through these steps to confirm whether it is bot traffic and block it.
34+
35+
### 1. Check bounce rate and session duration
36+
37+
Apply a [filter](filters-segments.md) to isolate the traffic source, country or page that spiked. Bot traffic almost always shows a near-100% bounce rate and zero or near-zero session duration. If the filtered view shows normal engagement metrics, the traffic is more likely real.
38+
39+
### 2. Identify the source
40+
41+
Look at the **Sources** tab to see where the spike is coming from. Common patterns for bot traffic:
42+
43+
- A single referrer domain you don't recognise
44+
- Direct traffic spiking with no accompanying change in referral or search traffic
45+
- A specific country sending a sudden burst with no prior history
46+
47+
### 3. Check the entry pages
48+
49+
Look at the **Pages** tab filtered to the spike period. Bots often hit a single page repeatedly or target unusual paths like `/wp-admin`, `/xmlrpc.php` or random URL strings.
50+
51+
### 4. Block it using Shields
52+
53+
Once you have identified the source, use [Shields](excluding.md) to stop it being recorded:
54+
55+
- **By country**: if the traffic is concentrated in one country you don't operate in, block that country
56+
- **By hostname**: if a specific hostname or referrer domain is the source, block it
57+
- **By IP address**: if the traffic is coming from a known IP or range, block that IP
58+
- **By page**: if only specific pages are being hit, use [page exclusions](excluding-pages.md)
59+
60+
Shields rules take effect immediately and apply going forward. They do not remove historical data already recorded.
61+
62+
### 5. Contact us if the pattern continues
63+
64+
If you have applied Shields rules and the traffic continues, or if the spike is large enough to affect your subscription tier, [contact us](https://plausible.io/contact) with the dates, source and any patterns you've noticed. We'll investigate and update our filters if needed.
65+
3166
## What you can do
3267

3368
- **Block by IP, hostname or country.** Use [Shields](excluding.md) to block visits from specific IP addresses, hostnames or countries from being recorded.

‎docs/custom-event-goals.md‎

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ Custom events let you measure button clicks, subscription signups or any other a
1414
- **Using CSS class names**: add a class to any HTML element you want to track. No JavaScript required. This is the easiest approach for most use cases and is covered in the first section below.
1515
- **Using JavaScript**: call the `plausible()` function directly for more advanced tracking needs such as dynamic values, conditional logic or tracking non-click interactions. See the [manual JavaScript approach](#trigger-custom-events-manually-with-a-javascript-function) section.
1616

17-
:::tip Quick start options
1817
If you're using WordPress or Google Tag Manager, you can set up custom events with our [WordPress plugin](https://plausible.io/wordpress-analytics-plugin) or [GTM template](https://plausible.io/gtm-template) without writing code. Plausible also offers automated tracking for [outbound link clicks](outbound-link-click-tracking.md), [file downloads](file-downloads-tracking.md) and [form submissions](form-submissions-tracking.md) straight from your site settings, [pageview goals](pageview-goals.md) for tracking visits to specific pages and [404 error pages](error-pages-tracking-404.md) with a small snippet of code.
19-
:::
2018

2119
## Add a CSS class name to the element you want to track on your site
2220

@@ -28,9 +26,7 @@ For instance, if you're using WordPress, you can click on any block element you
2826

2927
You can then click on "Advanced" and add a CSS class name in the "Additional CSS class(es)" field. Add the CSS class name in this format: `plausible-event-name=MyEventName`. For instance, if you want to track clicks on a button, you could use: `plausible-event-name=Button+Click`.
3028

31-
:::tip To represent a space character in the event names, you can use a `+` sign
32-
For example: `plausible-event-name=Button+Click` will display as `Button Click` in your dashboard
33-
:::
29+
To represent a space in an event name, use a `+` sign. For example: `plausible-event-name=Button+Click` will display as `Button Click` in your dashboard.
3430

3531
<img alt="Add a CSS class name in the 'Additional CSS class(es)' field" src={useBaseUrl('img/wordpress-css-class-name.png')} />
3632

@@ -236,6 +232,44 @@ plausible.init({
236232

237233
After you have the custom events in place, you can start creating [marketing funnels](funnel-analysis.md) to uncover possible issues, optimize your site and increase the conversion rate.
238234

235+
## Custom event not showing up?
236+
237+
### Have you created the goal in your site settings?
238+
239+
Sending an event from your site is not enough. You must also create a matching goal in your [site settings](website-settings.md) under **Goals**. Until you do, the event is received by Plausible but nothing appears in your dashboard. See the [Create a custom event goal](#create-a-custom-event-goal-in-your-plausible-account) section above for the steps.
240+
241+
### Does the goal name match exactly?
242+
243+
The goal name in your Plausible site settings must match the event name your site is sending, character for character including capitalisation.
244+
245+
The most common mismatch comes from the `+` sign in CSS class names. The class `plausible-event-name=Button+Click` sends the event name `Button Click` (plus replaced by space). If you created a goal called `Button+Click` instead of `Button Click`, nothing will be counted.
246+
247+
### Has the event fired at least once after you created the goal?
248+
249+
Past events are not backfilled. If you set up the goal after events were already being sent, the counter starts from zero at the moment the goal was created. Trigger the event on your site after creating the goal and then check the dashboard.
250+
251+
### Did your CMS replace the equals sign?
252+
253+
Webflow and some other site builders replace `=` with `-` when saving CSS class names. If you added `plausible-event-name=Signup` but the rendered HTML shows `plausible-event-name-Signup`, the event name will not be read correctly.
254+
255+
Use a double dash instead of the equals sign: `plausible-event-name--Signup`. Plausible treats `--` and `=` identically.
256+
257+
### How to verify the event is actually being sent
258+
259+
Open your browser developer tools and go to the **Network** tab. Trigger the action you are tracking and look for a request to `plausible.io/api/event`. If you see the request, check the response headers for `x-plausible-dropped: 1`. When that header is present, the event reached Plausible but was rejected by bot filtering. The most common cause is the request coming from localhost or a staging domain not added to your Plausible account.
260+
261+
If you see no request at all, the CSS class name was not added correctly or the Plausible script is not loading on that page.
262+
263+
### GTM events not firing
264+
265+
If you set up custom events through [Google Tag Manager](https://plausible.io/gtm-template), use GTM's built-in **Preview** mode to confirm the tag is firing. Check that your trigger conditions match the actual interaction and that the tag is published, not just saved as a draft.
266+
267+
### Custom properties showing as (none)
268+
269+
If you see `(none)` for a custom property value, the property name in your code does not match what you entered in the goal settings, or the value is not being passed at the moment the event fires. Check that the property is defined before the `plausible()` call and that the name matches exactly.
270+
271+
---
272+
239273
<details>
240274

241275
<summary>

‎docs/data-access.md‎

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
---
2+
title: Accessing your Plausible data
3+
description: "Choose the right way to access your Plausible data outside the dashboard: Stats API, Events API, Sites API, CSV export, Looker Studio or data warehouse connectors."
4+
---
5+
6+
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.
7+
8+
## Quick reference
9+
10+
| I want to... | Option |
11+
|---|---|
12+
| Query stats programmatically or build a custom dashboard | [Stats API](#stats-api) |
13+
| Send pageviews or events server-side (mobile app, no JS snippet) | [Events API](#events-api) |
14+
| Create and manage sites programmatically | [Sites API](#sites-api) |
15+
| Download stats as a spreadsheet, one-off | [CSV export](#csv-export) |
16+
| Build a custom report in Google's visualization tool | [Looker Studio](#looker-studio) |
17+
| Pipe data into a data warehouse or BI tool | [Warehouse connectors](#data-warehouse-connectors) |
18+
| Get event-level data for warehousing or compliance | [Scheduled raw exports](#scheduled-raw-event-exports) |
19+
| Query data in natural language through AI tools | [MCP server](#mcp-server) |
20+
21+
---
22+
23+
## Stats API
24+
25+
The Stats API lets you query your analytics data programmatically via a single HTTP endpoint. Send a POST request with your query and get back JSON with the metrics you asked for, covering any date range and dimension combination the dashboard supports.
26+
27+
**Use this when:**
28+
- You want to build a custom dashboard or embed stats in your own product
29+
- You need to automate reporting or pull data on a schedule
30+
- You want to combine Plausible data with data from other sources
31+
32+
[Stats API reference](stats-api.md)
33+
34+
---
35+
36+
## Events API
37+
38+
The Events API lets you send pageviews and custom events to Plausible without the JavaScript snippet. This is useful for server-side tracking, mobile apps or any environment where loading a script is not possible.
39+
40+
**Use this when:**
41+
- You are building an iOS or Android app
42+
- You want to track server-side events or API interactions
43+
- You are setting up a proxy that forwards events from your own backend
44+
45+
The Events API is for sending data to Plausible, not reading it. To query your stats programmatically, use the Stats API instead.
46+
47+
[Events API reference](events-api.md)
48+
49+
---
50+
51+
## Sites API
52+
53+
The Sites API lets you create, configure and delete Plausible sites programmatically. It also covers managing goals, custom properties, shared links and site access.
54+
55+
**Use this when:**
56+
- You are an agency or SaaS platform that provisions analytics for multiple clients automatically
57+
- You want to manage site settings without logging into the Plausible dashboard
58+
- You are building a white-label analytics product on top of Plausible
59+
60+
[Sites API reference](sites-api.md)
61+
62+
---
63+
64+
## CSV export
65+
66+
You can export your stats directly from the Plausible dashboard as a ZIP of CSV files. Filter by date range, audience segment or goal before exporting to get exactly the slice you need.
67+
68+
**Use this when:**
69+
- You need a one-off data extract for a report or spreadsheet
70+
- You want to import data into Excel, Google Sheets or another tool
71+
- You do not need to query data on a schedule or programmatically
72+
73+
The quick export is limited to 300 entries per report. For a full historical export of all your data, use the full export option in your site settings.
74+
75+
[Export your stats](export-stats.md)
76+
77+
---
78+
79+
## Looker Studio
80+
81+
The official Plausible connector for Google Looker Studio pulls your analytics data into Google's free data visualization platform. Use it to build custom reports, combine Plausible data with ad spend or CRM data and share branded dashboards with clients as a live link.
82+
83+
**Use this when:**
84+
- You need custom report layouts beyond what the Plausible dashboard offers
85+
- You want to share a client report without giving access to your Plausible account
86+
- You want to blend Plausible data with data from Google Ads, Search Console or other sources
87+
88+
[Looker Studio connector](looker-studio.md)
89+
90+
---
91+
92+
## Data warehouse connectors
93+
94+
If you want to pipe your Plausible data into a data warehouse or BI tool, community-maintained connectors exist for Airbyte and Fivetran. Both use the Stats API under the hood. These connectors are not built or supported by Plausible.
95+
96+
**Use this when:**
97+
- You want to store Plausible data in BigQuery, Snowflake, Redshift or another warehouse
98+
- You are building a data pipeline that combines analytics with other business data
99+
100+
For the full list of community connectors, apps and integrations, see [Viewing Plausible stats elsewhere](data-pipelines.md).
101+
102+
---
103+
104+
## Scheduled raw event exports
105+
106+
For cases where aggregated stats are not enough, Plausible offers scheduled raw event data exports. These give you access to event-level data delivered automatically on an agreed schedule, in a format and schema configured with our team.
107+
108+
**Use this when:**
109+
- You need event-level data for data warehousing, internal analytics or compliance reporting
110+
- Aggregated stats from the CSV export or Stats API do not meet your needs
111+
112+
Raw event exports are not self-serve and are not real-time. [Contact us](https://plausible.io/contact) to discuss your needs.
113+
114+
[Export your stats](export-stats.md)
115+
116+
---
117+
118+
## MCP server
119+
120+
The [Plausible MCP server](https://github.com/getsentry/plausible-mcp), built by the Sentry team, lets you query your Plausible data through AI tools such as Claude. Ask natural language questions about traffic, top pages, conversions and goal performance without writing API queries. It requires a Stats API key to connect.
121+
122+
**Use this when:**
123+
- You want to explore your analytics data conversationally through an AI tool
124+
- You need quick answers without building a dashboard or writing code
125+
126+
This is a community-built tool, not an official Plausible integration.

‎docs/data-pipelines.md‎

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,51 @@ title: Viewing Plausible stats elsewhere
44
description: "Access your Plausible analytics outside the dashboard: via the Stats API, embedded iframe, WordPress plugin, Looker Studio and other integrations."
55
---
66

7-
If you're looking to access your Plausible dashboard, metrics and stats outside of the plausible.io website itself, here are some options:
7+
If you're looking to access your Plausible stats outside of the plausible.io website, here are the available options.
88

9-
## Stats API
9+
## Official integrations
10+
11+
These integrations are built and maintained by Plausible.
12+
13+
### Stats API
1014

1115
The Plausible Stats API offers a way to retrieve your stats programmatically. [Learn more here](stats-api.md).
1216

13-
## Embedded dashboard
17+
### Embedded dashboard
1418

15-
You can embed your Plausible stats dashboard into any other website using an HTML iframe. This is useful in case you want to showcase your stats on your own website or if you want to offer Plausible-powered web analytics dashboard (without our branding) directly in your user interface. [Learn more here](embed-dashboard.md).
19+
You can embed your Plausible stats dashboard into any other website using an HTML iframe. This is useful if you want to showcase your stats on your own website or offer a Plausible-powered analytics dashboard directly in your user interface. [Learn more here](embed-dashboard.md).
1620

17-
## WordPress plugin
21+
### WordPress plugin
1822

1923
By using our official WordPress plugin, you can view your Plausible stats dashboard directly in your WordPress dashboard without needing to visit our website. [Learn more here](https://plausible.io/wordpress-analytics-plugin).
2024

21-
## Looker Studio
25+
### Looker Studio
2226

2327
We have an official Plausible connector for [Looker Studio (formerly Google Data Studio)](looker-studio.md).
2428

25-
And thanks to the members of our community, there are also some third-party solutions:
29+
---
30+
31+
## Community integrations
32+
33+
These integrations are built and maintained by third parties, not by Plausible. We do not provide support for them.
2634

27-
## Airbyte connector
35+
### Airbyte connector
2836

2937
[Airbyte connector](https://docs.airbyte.com/integrations/sources/plausible/): A Plausible API connector for Airbyte, an open-source data integration platform.
3038

31-
## Fivetran connector
39+
### Fivetran connector
3240

33-
[Fivetran Plausible Connector](https://github.com/imgly/fivetran-plausible-connector): A Google Cloud Function–based solution for ingesting Plausible data into Fivetran. This custom connector pulls hourly stats from the Plausible API and creates a `timeseries` table in any destination supported by Fivetran.
41+
[Fivetran Plausible Connector](https://github.com/imgly/fivetran-plausible-connector): A Google Cloud Function based solution for ingesting Plausible data into Fivetran. This custom connector pulls hourly stats from the Plausible API and creates a `timeseries` table in any destination supported by Fivetran.
3442

35-
## MCP server (Claude and other AI tools)
43+
### MCP server (Claude and other AI tools)
3644

3745
[Plausible MCP](https://github.com/getsentry/plausible-mcp): An MCP server built by the Sentry team that lets you query your Plausible data through AI tools like Claude. Ask natural language questions about traffic, conversions, top pages and goal performance.
3846

39-
## GA Insights
47+
### GA Insights
4048

4149
[GA Insights](https://www.ga-insights.com/plausible-slack) allows you to extend Plausible Analytics with automated reporting, monitoring and goal tracking straight in Slack.
4250

43-
## Apple platforms (iOS, iPadOS, macOS, tvOS, etc.)
51+
### Apple platforms (iOS, iPadOS, macOS, tvOS, etc.)
4452

4553
* [Charsible](https://fruitfulapps.com/charsible): Charsible is an iOS app offering a range of widgets to help you keep an eye on your Plausible Analytics data wherever you are.
4654

@@ -52,11 +60,11 @@ And thanks to the members of our community, there are also some third-party solu
5260

5361
* [Arbory](https://apps.apple.com/app/id6760103214): Native iOS companion app with a full dashboard, interactive charts, home screen and lock screen widgets, and traffic spike notifications. Connects directly to your Plausible instance.
5462

55-
## Linux
63+
### Linux
5664

5765
[Tally](https://flathub.org/apps/com.cassidyjames.plausible): hybrid native + web app that wraps the Plausible web app in a native UI, integrating better with desktop operating systems.
5866

59-
## Windows
67+
### Windows
6068

6169
[Wizible](https://xakpc.dev/apps/wizible) brings Plausible to your Windows desktop. Monitor your stats anytime, right from the Widgets panel.
6270

0 commit comments

Comments
 (0)