Skip to content

Commit 89df95c

Browse files
Merge pull request #677 from plausible/multi-domain
multi-lingual
2 parents 516bf4e + 4b363fb commit 89df95c

3 files changed

Lines changed: 37 additions & 4 deletions

File tree

docs/add-website.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If you'd like to track a particular subdomain independently from the rest of you
1515
</div>
1616

1717
:::tip Advanced: the domain field works like a site ID
18-
In some setups, you may want to track traffic under a different domain than where the snippet is installed. For example, you can use one Plausible site to aggregate stats from multiple domains. In that case, the domain field acts as an identifier rather than an exact match.
18+
In some setups, you may want to track traffic under a different domain than where the snippet is installed. For example, if you run country-specific domains (`example.de`, `example.nl`) you can point them all at a single Plausible site to collect stats in one place. This is only recommended if you want everything in one dashboard without separate per-domain dashboards. In that case, the domain field acts as an identifier rather than an exact match. [See how to track multiple country or language domains](subdomain-hostname-filter.md#tracking-multiple-country-or-language-domains).
1919
:::
2020

2121
## Select your reporting timezone

docs/consolidated-views.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ It looks just like any other Plausible dashboard, but the data includes all your
1717
- If you're building multi-tenant applications, offering [a white label analytics dashboard](https://plausible.io/white-label-web-analytics) or a similar service, you can use a consolidated view to monitor traffic across all your properties at once.
1818
- If you are managing several brands or domains, you will be able to check total visitors, top sources, and important trends across all your sites at once.
1919

20+
- If you run the same site across multiple country or language domains (for example, `example.de` and `example.nl`), you can track each domain individually while also getting a combined view of all your international traffic in one place. [See how to set this up](subdomain-hostname-filter.md#tracking-multiple-country-or-language-domains).
21+
2022
- It helps you oversee a network of blogs or microsites so you can spot which sites grow fastest, which ones slow down, and where to focus content or marketing effort.
2123

2224
- It's easier to share insights with leadership or clients. You can even send a single email report that summarises combined activity for an entire organisation.

docs/subdomain-hostname-filter.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
---
2-
title: Hostname or subdomain tracking
2+
title: Hostname, subdomain and multi-domain tracking
33
---
44

55
import useBaseUrl from '@docusaurus/useBaseUrl';
66

7-
Does your site operate on a single domain name with multiple subdomains such as `docs.yourdomain.com`, `app.yourdomain.com` and `www.yourdomain.com`?
7+
This page covers two common multi-domain setups:
88

9-
Plausible helps you simplify cross-subdomain tracking. You can view the visitor journey end-to-end from the landing on your primary domain name to a conversion on the subdomain. The original referral source will stay attributed to that visitor even when the visitor moves from one of your subdomains to another.
9+
- **Subdomains** such as `docs.yourdomain.com`, `app.yourdomain.com` and `www.yourdomain.com` under a single domain
10+
- **Separate domains** such as country or language variants like `example.de` and `example.nl`
11+
12+
Plausible helps you simplify tracking across both. You can view the visitor journey end-to-end from the landing on your primary domain name to a conversion on the subdomain. The original referral source will stay attributed to that visitor even when the visitor moves from one of your subdomains to another.
1013

1114
Here's how to track the user journey across your domain name and its subdomains.
1215

@@ -79,6 +82,34 @@ Once added to the allow list, we will start blocking traffic from all the **othe
7982

8083
You can see the list of all the hostnames that you're allowing the traffic from at any time. Click on the "Remove" button next to a hostname to remove it from the allow list.
8184

85+
## Tracking multiple country or language domains
86+
87+
If you're running the same site across multiple country or language domains (for example, `example.de` for Germany and `example.nl` for the Netherlands), there are two ways to handle tracking depending on whether you want individual dashboards per domain.
88+
89+
:::note
90+
Because Plausible is cookieless and doesn't track users across domains, a visitor who visits both `example.de` and `example.nl` will count as a unique visitor on each domain separately. This applies to any combined view as well.
91+
:::
92+
93+
### Individual dashboards per domain, plus a global combined view
94+
95+
This is the recommended approach for most localization setups:
96+
97+
1. [Add each domain](add-website.md) as its own site in your Plausible account (`example.de`, `example.nl`, etc.)
98+
2. Install the tracking snippet for each site on the corresponding domain
99+
3. Each site gets its own dedicated dashboard with individual stats
100+
4. Your [Consolidated View](consolidated-views.md) automatically combines all your sites into one global dashboard with no extra configuration needed
101+
102+
When you add more country domains in the future, just add them as new sites and they'll appear in the consolidated view automatically.
103+
104+
### One dashboard for all domains
105+
106+
If you'd rather have a single dashboard covering all domains and don't need separate per-domain dashboards:
107+
108+
1. Add one site to Plausible and use it as a shared identifier (for example, `example.com`)
109+
2. Install the same tracking snippet on all your country domains, each pointing to this same site
110+
3. Your dashboard shows combined traffic from all domains by default
111+
4. Use the hostname filter described above to view stats for each country domain individually
112+
82113
## When to add a subdomain as a dedicated site
83114

84115
If you don't want to track visitors of a specific subdomain together with those of your other sites in the same dashboard, you should add that subdomain as a separate site to your Plausible account.

0 commit comments

Comments
 (0)