All articles
Install Crustat on WordPress
Download the Crustat plugin, click Connect to Crustat, pick your site, and see your stats right inside WordPress.
Before you start
You need:
- A WordPress site running WordPress 6.2 or newer, with PHP 7.4 or newer.
- An administrator account on that site. Connecting and disconnecting are for admins only.
- Your WordPress admin on https. Crustat only sends you back to a secure address, so if your admin address starts with
http://, turn on https with your host first. - A Crustat account. If you don’t have one yet, you can start your free trial while connecting.
Install the plugin
The plugin is waiting for review on wordpress.org, so you can’t find it in the plugin search yet. Until it’s there, download it from Crustat:
- Download crustat-wordpress.zip (version 1.0.0).
- In your WordPress admin, go to Plugins → Add New → Upload Plugin, choose the zip and click Install Now.
- Click Activate.
Connect to Crustat
- Open Crustat in the admin menu.
- Click Connect to Crustat.
- Sign in to Crustat (or start your free trial), then pick the site to show.
That’s it. You don’t need to copy a site ID: connecting sets everything up. While your site is connected, the plugin adds Crustat’s line to every page, and your first visit shows up about a minute after it happens.
See your stats in WordPress
Your stats show on the Crustat page in wp-admin: visitors and page views, where people come from, your top pages, countries, devices and browsers. A short summary also shows in a widget on your WordPress Dashboard. You can see the same stats in your Crustat dashboard at app.crustat.com, from any device. In WordPress, the stats are for administrators.
Your own visits
The Crustat page has a Settings drawer, which you can also open from the Settings link under the plugin’s name on the Plugins screen. In it, Don’t count visits from your team leaves out anyone who can edit posts while they’re logged in. It’s on by default, so you, your editors and your authors don’t show up in your own stats.
This means a quick test while you’re signed in won’t appear. To check that it works, open your site in a private window, or in a browser where you’re not logged in to WordPress.
The plugin also leaves the line out of the WordPress admin, the theme customizer preview and your RSS feeds.
Caching and optimization plugins
If your pages come from a cache, clear it after connecting so the cached pages pick up the new line.
The plugin asks WP Rocket, Autoptimize, LiteSpeed Cache, SiteGround Optimizer, WP-Optimize, Perfmatters, Hummingbird and Jetpack Boost to leave the Crustat script alone, and the line it adds already carries data-cfasync="false" for Cloudflare Rocket Loader. If you use a different plugin that combines, delays or defers scripts and visits don’t show up, exclude stats.crustat.com/script.js in its settings. See Rocket Loader and script combiners for the details.
What the plugin does and doesn’t do
- It adds one line to your pages: no cookies, and no extra database tables.
- Your visitors’ browsers send visits to Crustat. Your WordPress server talks to
app.crustat.comfor the connection and the stats you look at: it registers your site, keeps the connection fresh, fetches the stats shown in wp-admin, and ends the connection when you disconnect. It never sends data about your visitors. - When a known AI or search crawler opens a page, your server tells
stats.crustat.com, with the crawler’s IP address so Crustat can check it’s real. Visits from people are never sent. You can switch this off, see which AI and search bots read your site. - The connection’s keys are kept encrypted in your WordPress database and never shown in the browser.
- Deleting the plugin removes its settings and ends the connection. Your stats stay in Crustat.
Not seeing your visit?
First, make sure you tested signed out of WordPress. Then check that the line is on your pages: open your site, view the page source, and search for crustat. If it’s missing, check that the Crustat page says your site is connected, then clear your cache. For anything else, see visits aren’t showing up.
Still stuck? Write to hello@crustat.com.