Skip to content

Commit 687201e

Browse files
Merge pull request #855 from plausible/details
details
2 parents 4a6ae0d + 1bdd1d1 commit 687201e

6 files changed

Lines changed: 37 additions & 55 deletions

File tree

‎docs/compliance.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ The specific reasons it falls into this category:
2828
- No data is shared with or sold to third parties.
2929
- A DPA is in place automatically for all customers, covering GDPR processor obligations.
3030

31+
## Letting visitors opt out
32+
33+
If your privacy policy needs to offer visitors a way to object to analytics, you can add a ready-made opt-out page to your site and link to it from the policy. [See how](excluding-localstorage.md).
34+
3135
## Security questionnaires
3236

3337
If your organization requires a vendor security review, the documents above are designed to answer the questions typically asked in those reviews. We recommend going through them before sending a questionnaire, as most topics are already covered.

‎docs/countries.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ The **Countries**, **Regions** and **Cities** tabs show where in the world your
99

1010
Click on any country to see the list of regions within that country where your visitors are coming from. Click on any region to see the list of cities within that region. You can also switch directly between the **Countries**, **Regions** and **Cities** tabs.
1111

12+
Location is recorded only as country, region and city, never as an exact location. It's looked up from the visitor's IP address, which isn't stored.
13+
1214
## Visitors using VPNs and similar services
1315

1416
To improve the location accuracy, visitors using VPN services or the Tor browser are grouped under the "Anonymous VPN Service" entry in the **Countries** tab. This method reduces the noise caused by analytics tools recording VPN server locations instead of actual user locations, while also making it easier to view the percentage of visitors using VPNs.

‎docs/devices.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ The **Devices** tab shows the devices used by your website visitors. Devices are
2121

2222
## Browser
2323

24-
The **Browsers** tab shows what browsers people use when visiting your website. We only show the brand of the browser and when you click on the brand you can see the version number too. This is derived from the User-Agent HTTP header. The full User-Agent is discarded.
24+
The **Browsers** tab shows what browsers people use when visiting your website. We only show the brand of the browser and when you click on the brand you can see the version number too. Versions are stored as the major and minor version only, such as Chrome 153.0. This is derived from the User-Agent HTTP header. The full User-Agent is discarded.
2525

2626
## Operating system
2727

28-
The **Operating Systems** tab shows what operating systems people use when visiting your website. We show the brand of the operating system and when you click on the brand you can see the version numbers too. This is derived from the User-Agent HTTP header. The full User-Agent is discarded.
28+
The **Operating Systems** tab shows what operating systems people use when visiting your website. We show the brand of the operating system and when you click on the brand you can see the version numbers too. Versions are stored as the major and minor version only, such as macOS 10.15. This is derived from the User-Agent HTTP header. The full User-Agent is discarded.
2929

3030
:::info Windows and macOS have stopped reporting their latest versions
3131
This means that Plausible and other analytics tools are not able to report the latest versions, which for Windows are above 10, and for macOS above 10.15. Visitors with the new versions will be grouped in the last known version

‎docs/excluding-localstorage.md‎

Lines changed: 27 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,55 @@
11
---
22
displayed_sidebar: someSidebar
3-
title: Exclude yourself via localStorage
4-
sidebar_label: Exclude yourself via localStorage
5-
description: "Exclude your own visits from Plausible tracking by setting a localStorage flag in your browser's developer console. No IP address or server changes needed."
3+
title: Let visitors opt out of being counted
4+
sidebar_label: Visitor opt-out
5+
description: "Give your visitors a way to opt out of Plausible Analytics with a ready-made opt-out page you link from your privacy policy. No cookies or server changes needed."
66
---
77

88
import useBaseUrl from '@docusaurus/useBaseUrl';
99

10-
:::tip You can exclude internal traffic by IP address too
11-
This is the easiest way to exclude your own visits from being traffic. [See how here](excluding.md)
12-
:::
10+
Plausible doesn't use cookies or store personal data, so there's nothing for your visitors to consent to. Some privacy guidelines still expect visitors to have a way to object to analytics. An opt-out page on your site gives them one. Link to it from your privacy policy.
1311

14-
To prevent counting your visits, you can set a special `localStorage` flag in the browser. Here's how.
12+
## How the opt-out works
1513

16-
## To exclude your visits from being counted
14+
The opt-out page sets a `plausible_ignore` flag in the visitor's browser `localStorage`. While the flag is set, the Plausible script doesn't send any pageviews or events from that browser.
1715

18-
Visit the website you'd like to exclude your visits from and open the developer tools in your browser. Right-click anywhere on your page and click **Inspect** (the wording may vary depending on your web browser) to open the developer tools. Alternatively, press `F12` on Firefox or Chrome or `Option+Command+i` on Safari. Then click the "Console" tab.
16+
* The choice stays in place until the visitor turns counting back on or clears their browser data
17+
* It applies per browser and per domain. A visitor who uses several browsers or devices needs to opt out on each of them
18+
* The opt-out page must be on the same domain as the site it opts out of. If you track several subdomains, each needs its own opt-out page
19+
* The opt-out takes full effect from the next page load. The opt-out page itself was already counted when it loaded, so time spent on that page may still be recorded
1920

20-
In Firefox, it looks like this:
21+
## Add an opt-out page to your site
2122

22-
<img alt="Browser web console" src={useBaseUrl('img/browser-console.png')} />
23+
We have created a ready-made opt-out page you can use freely on your site. Visitors click one button to opt out, and the same button turns counting back on. There are two versions: one with a CSS stylesheet if you want to use our style, and one without any styling if you'd like to bring your own.
2324

24-
Then paste the following command and hit enter:
25+
<img alt="Opt-out page screenshot" src={useBaseUrl('img/exclusion-page-example.png')} />
2526

26-
```html
27-
localStorage.plausible_ignore=true
28-
```
29-
30-
It will look something like this when you paste the command:
31-
32-
<img alt="Browser web console enter the command" src={useBaseUrl('img/exclude-yourself.png')} />
27+
For the styled version, download the <a target="_blank" download="index.html" href="/docs/exclusion-examples/exclude.html">HTML file</a> and the <a target="_blank" download="plausible-exclusion.css" href="/docs/exclusion-examples/plausible-exclusion.css">CSS file</a> and make both available together on your website. If you'd prefer a light theme, delete the `dark` class from line 1 of the HTML file.
3328

34-
And you will get this message when you hit enter:
29+
For the unstyled version, download the <a target="_blank" download="index.html" href="/docs/exclusion-examples/exclude-bare.html">HTML file</a> and make it available on your website with any CSS you choose to add.
3530

36-
<img alt="Browser web console true" src={useBaseUrl('img/exclude-yourself-true.png')} />
31+
Then add a link to the page in your privacy policy, for instance: "You can opt out of being counted in our analytics on [this page]."
3732

38-
Note that you have to follow this process for every domain and subdomain you'd like to exclude your visits from. If you use multiple browsers, you also need to follow the same process on every browser you'd like not to be counted.
33+
## Check that the opt-out works
3934

40-
## Return to your site to ensure the exclusion works
41-
42-
There are two ways you can check to ensure that you have excluded your visits:
43-
44-
* 1: Reload your site multiple times and make sure that the total page views number in your Plausible dashboard does not increase. This isn't very reliable if there are other people visiting your site at the same time.
45-
46-
* 2: Reload your site and open the browser console again. If you have excluded yourself, you should see a message saying "Ignoring Event: localStorage flag". You may need to ensure the "Warnings" filter (in the top right in Firefox and top-center under a dropdown in Chrome) is enabled before this message is visible.
35+
Opt out on the page, then visit another page on your site and open the developer tools in your browser (right-click and choose **Inspect**, or press `F12` on Firefox or Chrome or `Option+Command+i` on Safari). In the **Console** tab you should see the message "Ignoring Event: localStorage flag". You may need to enable the "Warnings" filter to see it.
4736

4837
<img alt="Browser web console check" src={useBaseUrl('img/check-the-exclusion.png')} />
4938

50-
## To re-enable counting of your visits
39+
## Excluding your own visits
5140

52-
To re-enable counting of your visits, you need to visit the website you'd like to enable the counting of your visits for. Open the web console in your browser and then click the "Console" tab.
41+
To keep your own visits or your team's out of your stats, [block your IP addresses](excluding.md) in your site settings. That works across all your browsers and devices at once.
5342

54-
Then paste the following command and hit enter:
43+
If your IP address changes often or you use a VPN, you can set the same flag yourself instead. Open the **Console** tab in your browser's developer tools on your site, then paste this command and hit enter:
5544

5645
```html
57-
delete localStorage.plausible_ignore
46+
localStorage.plausible_ignore=true
5847
```
5948

60-
## Allow anyone on your site to exclude themselves
49+
Do this for every domain, subdomain and browser you want to exclude. To be counted again, run:
6150

62-
To allow anyone on your site (usually beta testers or internal users) to exclude themselves from analytics, you could have them follow the steps above on every device, or you could provide a page on your website to do this automatically.
63-
64-
We have created a downloadable version of such a page for you to use freely on your site. There are two versions of this example, one with a CSS stylesheet included if you want to use our style, and another without any styling if you'd like to bring your own.
65-
66-
:::note
67-
With this method, similar to above, the page needs to be visited and the exclusion enabled per domain and per browser, for every user. The page must also be made available on the same domain you wish to exclude analytics for. The exclusion takes full effect from the next page load: the page where it's turned on was already counted when it loaded, so time spent on that page may still be recorded.
68-
:::
69-
70-
### Preview
71-
72-
<img alt="Exclusion page screenshot" src={useBaseUrl('img/exclusion-page-example.png')} />
73-
74-
### Download and Deploy
75-
76-
For the styled version of this page, you'll need to download a <a target="_blank" download="index.html" href="/docs/exclusion-examples/exclude.html">HTML file</a> and a <a target="_blank" download="plausible-exclusion.css" href="/docs/exclusion-examples/plausible-exclusion.css">CSS file</a> and make both available together on your website.
77-
78-
(If you'd prefer a light-theme for this page, you can delete the `dark` class from line 1 of the above HTML file)
51+
```html
52+
delete localStorage.plausible_ignore
53+
```
7954

80-
For the unstyled/bare version, you'll just need to download a <a target="_blank" download="index.html" href="/docs/exclusion-examples/exclude-bare.html">HTML file</a>, and make it available on your website with any CSS you choose to add.
55+
You can also use the opt-out page above instead of the console.

‎docs/excluding.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ You can see the list of all the hostnames that you're allowing the traffic from
113113

114114
Do you use VPNs or often change your IP addresses? And do none of our other blocking options work for your use case?
115115

116-
You can then set a special `localStorage` flag in your browser so you don't need to frequently block new IP addresses. [Here's how](excluding-localstorage.md).
116+
You can then set a special `localStorage` flag in your browser so you don't need to frequently block new IP addresses. [Here's how](excluding-localstorage.md#excluding-your-own-visits).

‎sidebars.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ module.exports = {
2525
'reset-site-data',
2626
'delete-site-data',
2727
'excluding',
28+
'excluding-localstorage',
2829
],
2930
'Stats Dashboard': [
3031
'guided-tour',

0 commit comments

Comments
 (0)