=== Datacenter ===
Contributors: datacenter
Tags: analytics, woocommerce, privacy, statistics, conversions
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Privacy-friendly analytics for WordPress. Connect once, and Datacenter counts visits, WooCommerce sales and new accounts.

== Description ==

Datacenter is website analytics and branded short links in one dashboard. This plugin connects your WordPress site to your Datacenter account in one click. You do not paste code or keys.

What the plugin does:

* Adds your Datacenter tag to every page.
* Counts each WooCommerce order as a Purchase, with its total, currency and order number, once per order.
* Counts each new WordPress account as a Signup, on the person's next page view.
* Keeps the tag current when you change your tracking mode in Datacenter.

It never sends a name, an email address or a password. An admin adding a user does not count as a signup.

== Installation ==

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

Your site must use https to connect.

== Frequently Asked Questions ==

= Do I need a Datacenter account? =

Yes. Making one is free at https://datacenter.so.

= Does it count my own visits? =

Yes, like every other visit. Datacenter skips bots and local test addresses on its own.

= How do I stop it? =

Go to Settings, then Datacenter, and press Disconnect. The tag comes off every page at once. Deleting the plugin also removes everything it stored, on every site of a network.

= Does it work with caching plugins? =

Yes. The tag is the same on every page, so cached pages count visits. Connect and Disconnect clear the page cache of WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed Cache, WP Fastest Cache, Breeze, Cache Enabler, SiteGround and WP Engine. With another cache, clear it yourself after you connect.

= Does it work with WooCommerce's order storage (HPOS)? =

Yes. It reads and marks orders only through WooCommerce, so both order storage options work.

= Does it need a cookie banner? =

In Private mode, Datacenter stores nothing on the visitor's device. With 90-day tracking it keeps a random id on your own domain, and you can turn on Datacenter's own consent banner in your site's Settings. Whether your site needs consent is your call.

== External services ==

This plugin connects to Datacenter (https://datacenter.so), the analytics service it is made for.

* Every page loads the Datacenter tag from datacenter.so, or from your own tracking address if you set one up. For each page view and each event above, the tag sends the page address, the referring address, the screen width and any ad click id in the address (like gclid). Datacenter sees the visitor's IP address and browser to count unique visitors, and never stores the IP address.
* Connect sends your site's home address to datacenter.so, and the plugin trades a one-time code for your site's address and tag.
* When you let Datacenter install the plugin for you, Datacenter calls the plugin's route /wp-json/datacenter/v1/connect once, with an application password you approve in WordPress. Datacenter then deletes that application password and never keeps it.
* Twice a day the plugin asks datacenter.so for your site's current tag.

Terms of service: https://datacenter.so/terms
Privacy policy: https://datacenter.so/privacy

== Changelog ==

= 2.0.0 =
* The plugin is now named Datacenter, with every option, hook and route under the new name. It was never listed under its first name, so there is nothing to migrate.

= 1.1.0 =
* Connect from Datacenter's "Set it up for me": a REST route an administrator's application password can call once.

= 1.0.0 =
* First release: one-click Connect, the tag on every page, WooCommerce purchases and new account signups.
