Skip to content

Commit 48884a1

Browse files
committed
wp multisite
1 parent 2ad2d71 commit 48884a1

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

‎docs/subdomain-hostname-filter.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Whatever you choose, [Consolidated Views](consolidated-views.md) let you combine
2525

2626
Here's how to set up tracking across your domain name and its subdomains.
2727

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+
2830
## How to set up tracking across domain and subdomains
2931

3032
1. [Add your domain name](add-website.md) (`yourdomain.com`) as a site to your Plausible account

‎docs/wordpress-integration.md‎

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@ Your site is now being tracked. You can confirm tracking from your [site setting
6060
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.
6161
:::
6262

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+
6381
## Multilingual sites with WPML
6482

6583
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,
6987
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**.
7088
4. Repeat for each language domain.
7189

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

7492
## The settings screen
7593

0 commit comments

Comments
 (0)