# Install on WordPress

> Add Datacenter to WordPress with our plugin. Upload it, press Connect, approve. WooCommerce sales and new accounts count with no code.

Source: https://datacenter.so/docs/install-wordpress
Section: Start here

Datacenter's WordPress plugin adds your tag to every page and counts sales and signups. You upload it once and press Connect. There is no code to paste and no key to copy.

## Install the plugin

1. Download the plugin. In Datacenter, open [Set up your site](https://app.datacenter.so/start) and pick **WordPress**, then press **Download the plugin**. Or download it from [datacenter.so/static/datacenter-wordpress.zip](https://datacenter.so/static/datacenter-wordpress.zip).
2. In your WordPress admin, go to **Plugins**, then **Add New Plugin**, then **Upload Plugin**.
3. Choose the file, press **Install Now**, then **Activate**.
4. Go to **Settings**, then **Datacenter**, and press **Connect to Datacenter**.
5. Datacenter opens in a new tab. Sign in, or make a free account, then press **Connect**.

You land back in WordPress, which now says **Connected** with your site's name. If the site is not in your Datacenter account yet, Connect adds it with the same defaults as guided setup.

Your WordPress admin must use https to connect.

## What it counts

| What | Sent as | When |
|---|---|---|
| Every page view | A visit | On every page, for every visitor |
| A WooCommerce order | `Purchase`, with the order total, currency and order number | Once per order, on the order received page. A reload does not count it again. Failed and canceled orders are skipped |
| A new WordPress account | `Signup` | On the person's next page view. An admin adding a user does not count |

The plugin never sends a name, an email address or a password. A Purchase from the order received page counts when the buyer sees that page. An order paid later, such as a bank transfer, counts when the order is placed.

To have these show as goals, see [Custom events and goals](https://datacenter.so/docs/custom-events-and-goals). Datacenter adds Signup and Purchase goals on its own the first time they arrive, unless you turned that off.

## Keep it current

Twice a day the plugin asks Datacenter for your site's tag. When you switch tracking mode or set up [your own tracking address](https://datacenter.so/docs/own-tracking-address), the tag on your pages follows within about 12 hours. Nothing to do on your side.

## Disconnect or remove

Go to **Settings**, then **Datacenter**, and press **Disconnect**. The tag comes off every page at once. Deleting the plugin removes everything it stored.

## Paste the tag instead

If you would rather not add our plugin, paste the tag with any plugin that adds code to the head.

1. In your WordPress admin, go to **Plugins**, then **Add New Plugin**.
2. Search for **WPCode**. Click **Install Now**, then **Activate**.
3. Go to **Code Snippets**, then **Header & Footer**.
4. Paste your tag into the **Header** box and save. Your tag looks like this, with your own address:

```html
<script defer data-site="yoursite.com" src="https://datacenter.so/s.js"></script>
```

Copy yours from [Set up your site](https://app.datacenter.so/start) or your site's **Settings**. Pasted this way, WooCommerce sales and new accounts do not count on their own.

## Check it works

Go back to Datacenter. On the last setup step, the tag tick turns green when Datacenter finds the tag on your home page. Then open your site in a new tab. Your first visit shows up in a minute or two.

## Good to know

- Use the plugin or a pasted tag, not both. If you pasted the tag before, remove it once you connect.
- On WordPress.com, uploading plugins may need a paid plan.
- If the check says the tag is missing, clear your cache plugin and any CDN cache, then check again.
