# Multisite

On a WordPress multisite network, SleekTrack has a network mode. Instead of
activating and configuring the plugin on every site, you network-activate it
once and choose from the network admin which sites are tracked.

## Enabling network mode

1. Network-activate SleekTrack (in the suite, its Pro plugin) under
   **Plugins** in the network admin
2. Open Track in the network admin: in the suite from the workspace, in the
   standalone plugin under **SleekWP > Track**

Network activation on its own changes nothing on your sites: no tables are
created, no tracking code is added, and Track does not appear in a site's
admin until that site is enabled.

## Enabling sites

The **Network sites** screen shows every site of the network as a card. Turn
on the switch on a card and SleekTrack provisions that site:

- The site's analytics tables are created
- The site registers itself as its own tracked site
- The tracking code starts appearing on its pages

There is nothing to install on the site and no snippet to paste. Sites you do
not enable stay untouched.

You can also enable and disable sites with `wp sleek track network enable`
and `wp sleek track network disable`; see [CLI](/docs/track/cli.md).

## Where the data lives

Every enabled site keeps its analytics in its own database tables, exactly as
if it ran SleekTrack on its own. Nothing is pooled into a shared table.

The collector finds the right site for both domain-mapped networks
(`client-one.com`) and subdirectory networks (`network.com/client-one`).

## The network dashboards

Enabled sites lead the **Network sites** screen, each card showing the site's
visitor-day trend and its visitors over the last 30 days, with more than 24
sites paged under the cards. A network without sites says so. Click a card,
or open it in a new tab, to open that site's dashboard in the network admin: metrics, the visitors chart,
the breakdown cards and the realtime count, for the preset periods. Filters,
saved views, annotations, goals, funnels, export and site settings are managed
from the site's own admin.

Administrators of an enabled site keep Track in their own admin and see only
their site, with every feature described in these pages. They can also add
external sites with a snippet.

## Network settings

**Settings** in the network admin sets collection values for the whole
network. Turn on **Enforce across network** beside a setting to apply its
value to every enabled site; the site screens then show it as managed by the
network administrator. A constant in `wp-config.php` still wins over both. See
[Configuration](/docs/track/configuration.md#how-settings-resolve).

The network screens, network settings and the network commands require the
`manage_network_options` capability.

## Disabling a site

Turn off the switch on a card to stop tracking a site; a notice confirms it.
A link to a site Track is off for shows that it is not enabled there, with
**Enable**. Collection stops at once,
but the site's tables and recorded history are kept, so enabling it again
continues where it left off. Data is deleted only by the retention setting,
by deleting tracked sites, or by uninstalling the plugin.

## Notes

- Enabled sites run their retention and cleanup tasks independently
- After an update, an enabled site's tables are brought up to date by the
  site's next request, or earlier when the Network sites screen or the site's
  network dashboard reads them
- The Network sites screen lists up to 500 sites
- The license key belongs to each site's admin, not the network admin
