Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/add-website.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If you'd like to track a particular subdomain independently from the rest of you
</div>

:::tip Advanced: the domain field works like a site ID
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.
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).
:::

## Select your reporting timezone
Expand Down
2 changes: 2 additions & 0 deletions docs/consolidated-views.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ It looks just like any other Plausible dashboard, but the data includes all your
- 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.
- 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.

- 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).

- 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.

- 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.
Expand Down
37 changes: 34 additions & 3 deletions docs/subdomain-hostname-filter.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
title: Hostname or subdomain tracking
title: Hostname, subdomain and multi-domain tracking
---

import useBaseUrl from '@docusaurus/useBaseUrl';

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

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.
- **Subdomains** such as `docs.yourdomain.com`, `app.yourdomain.com` and `www.yourdomain.com` under a single domain
- **Separate domains** such as country or language variants like `example.de` and `example.nl`

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.

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

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

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.

## Tracking multiple country or language domains

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.

:::note
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.
:::

### Individual dashboards per domain, plus a global combined view

This is the recommended approach for most localization setups:

1. [Add each domain](add-website.md) as its own site in your Plausible account (`example.de`, `example.nl`, etc.)
2. Install the tracking snippet for each site on the corresponding domain
3. Each site gets its own dedicated dashboard with individual stats
4. Your [Consolidated View](consolidated-views.md) automatically combines all your sites into one global dashboard with no extra configuration needed

When you add more country domains in the future, just add them as new sites and they'll appear in the consolidated view automatically.

### One dashboard for all domains

If you'd rather have a single dashboard covering all domains and don't need separate per-domain dashboards:

1. Add one site to Plausible and use it as a shared identifier (for example, `example.com`)
2. Install the same tracking snippet on all your country domains, each pointing to this same site
3. Your dashboard shows combined traffic from all domains by default
4. Use the hostname filter described above to view stats for each country domain individually

## When to add a subdomain as a dedicated site

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.
Expand Down
Loading