DocsInstall

Install on WordPress

Add SpaceWarden's cookieless website analytics to a WordPress site: the snippet in a plugin like WPCode, which adds it to every page.

The plugin needs your site key: the data-site value in the snippet below, from Install. The snippet itself is for adding SpaceWarden without the plugin.

<script defer data-site="your-site-key" src="https://cdn.spacewarden.app/sw.js"></script>

Steps

  1. In WordPress, open Plugins, then Add New Plugin, and install the SpaceWarden plugin.
  2. In SpaceWarden, open Settings, then Site, then Install, and copy your site key: the data-site value in the snippet.
  3. In WordPress, open Settings, then SpaceWarden, paste the key, and save. The script loads on every page.

Or use the snippet: install WPCode, open Code Snippets, then Header & Footer, and paste it into Header. Any plugin that adds code to every page works too.

Then press Check install on Install and open your site: the first visit shows within seconds. All the ways to install

The SpaceWarden plugin

The plugin adds the script for you. Paste your site key into Settings → SpaceWarden. It doesn't count you while you're signed in as an administrator. Install it from Plugins, then Add New Plugin.