You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 48884a1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/subdomain-hostname-filter.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ Whatever you choose, [Consolidated Views](consolidated-views.md) let you combine
25
25
26
26
Here's how to set up tracking across your domain name and its subdomains.
27
27
28
+
Using WordPress multisite? Follow the [multisite setup instructions](wordpress-integration.md#wordpress-multisite-networks) to connect each WordPress site to a shared Plausible dashboard or use separate dashboards.
29
+
28
30
## How to set up tracking across domain and subdomains
29
31
30
32
1. [Add your domain name](add-website.md) (`yourdomain.com`) as a site to your Plausible account
Copy file name to clipboardExpand all lines: docs/wordpress-integration.md
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,24 @@ Your site is now being tracked. You can confirm tracking from your [site setting
60
60
Plugin tokens are site-specific and always start with `plausible-plugin-`. Make sure the token was created for the exact site you are connecting, and generate a new one if in doubt.
61
61
:::
62
62
63
+
## WordPress multisite networks
64
+
65
+
You can track a WordPress multisite network in one Plausible dashboard. Install the plugin once through **Network Admin → Plugins**, then either **Network Activate** it or activate it individually on the sites you want to track.
66
+
67
+
To send traffic from those sites to one dashboard:
68
+
69
+
1. [Add your network's main domain](add-website.md) as a site in Plausible, for example `example.com`.
70
+
2. Open the Plausible plugin settings in each WordPress site's dashboard.
71
+
3. Enter the same main domain in **Domain Name** on every site, exactly as added to Plausible. For example, use `example.com` for both `blog.example.com` and `example.com/shop/`.
72
+
4. [Connect each site with a plugin token](#connect-with-a-plugin-token) created for that same Plausible site.
73
+
5. Visit each site while logged out of WordPress and check that its traffic appears in your Plausible dashboard.
74
+
75
+
Network activation makes the plugin active across the network, but does not copy its connection settings to each site. Connecting only the main WordPress site is not enough. Configure each site you want included, including any sites you add later.
76
+
77
+
The shared dashboard combines traffic from all configured sites. For subdomains or mapped domains, [filter by hostname](subdomain-hostname-filter.md#filtering-traffic-by-hostname) to see one site's traffic. For subdirectory sites, [filter by page path](pageview-goals.md#how-to-group-your-pages). Pages with the same path on different hostnames are grouped by default; [break the Pages report down by URL](top-pages.md#break-down-by-full-url) to tell them apart.
78
+
79
+
One shared dashboard is optional. If you want separate dashboards for sites on different domains or subdomains, add each as its own site in Plausible and connect each WordPress site using its corresponding domain and plugin token.
80
+
63
81
## Multilingual sites with WPML
64
82
65
83
If you run [WPML](https://wpml.org/) in **different domain per language** mode, you can connect each language domain to its own Plausible dashboard. Other WPML setups (a language directory like `/fr/` or a language subdomain) are tracked as a single site and need no extra steps.
@@ -69,7 +87,7 @@ If you run [WPML](https://wpml.org/) in **different domain per language** mode,
69
87
3. Its **Domain Name** is already filled in. Create a [plugin token](#connect-with-a-plugin-token) for that site, paste it into **Plugin Token** and click **Connect**.
70
88
4. Repeat for each language domain.
71
89
72
-
With **View stats in WordPress** enabled, the WordPress toolbar links to the dashboard that matches the language domain you're viewing.
90
+
With **View stats in WordPress** enabled, the WordPress toolbar includes a separate dashboard link for each configured language domain.
0 commit comments