Skip to content

Setup and data

WordPress analytics: Stats, Site Kit, or a script in the head

What WordPress.com Stats, Jetpack Stats and Site Kit each measure, why the totals disagree, and how to add one script to the head of every page.

The CrispStats team · · 9 min read

In short

WordPress.com Stats and Jetpack Stats are Automattic’s own counter: a pixel records a view on each page load, and a visitor is the first time that browser is recognized in the period you selected. Site Kit is a different product: it shows Google Analytics, Search Console and PageSpeed Insights inside wp-admin. Neither one follows a reader onto a site you host somewhere else. For that, add one script tag to the head, through the theme or a plugin that inserts header scripts, and do not add it twice.

Search for a WordPress analytics plugin and you get three different products wearing similar names. WordPress.com Stats, the Jetpack Stats plugin, and Site Kit by Google do not count the same thing, and a self-hosted site has none of them until you install something. This guide separates them using their own help pages, read on 29 November 2026, then shows how a single script tag goes into the head without a block of PHP.

If you only need a number tonight and you already have one of these installed, how to check website traffic is the shorter read. This page is about which counter you are looking at, and what it cannot see.

What analytics does WordPress include?

A WordPress.com site includes Jetpack Stats. A self-hosted WordPress site includes no visitor counter until you add Jetpack, Site Kit, another plugin, or a script in the head.

WordPress.com’s traffic guide, last reviewed on 24 November 2026, describes the Traffic tab of Stats: views, visitors, likes and comments, with referrers and a comparison against an earlier period. The Jetpack Stats page, updated 3 November 2026, is the same counter on a site that runs the Jetpack plugin: a Site Stats widget in wp-admin, a 7-day summary under My Jetpack, and dashboards for Traffic, Insights, Ads and Subscribers. Site Kit is Google’s plugin. Setup connects Search Console and PageSpeed Insights, and Google Analytics only if you opt in. It can take up to 48 hours before that dashboard fills.

How do WordPress.com Stats and Jetpack Stats count a visit?

A view is one page load, including a reload. A visitor is counted the first time WordPress.com recognizes that browser in the period you are looking at, so views are usually higher than visitors, and a weekly visitor total is not the sum of the days.

The WordPress.com guide says Stats is tracked by a pixel in the browser. It also says Jetpack Stats and Google Analytics use sampling, so treat either total as a trend. These are the rules that move the number without the site changing:

  • WordPress.com Reader counts. A Reader user who clicks through to the full post is a page view. Jetpack says that traffic can show up with no referrer, because Reader does not always pass one.
  • Your own visits on WordPress.com. On a public site, visits by you and other team members are left out while you are logged into WordPress.com. On a private or Coming Soon site, those logged-in views are counted.
  • Bots. Known crawlers are filtered. The guide says some automated traffic still gets through, and a sudden spike with an odd referrer is the usual sign.
  • Browsers that block the pixel. No JavaScript, no images, or a blocker that stops the pixel means no view.
  • Consent. From Jetpack 16.4, a site that also runs the WP Consent API plugin counts a visit only after the visitor allows statistics cookies. Visitors who decline, or who have not chosen yet, are missing. Sites without that plugin are unchanged.

History and detail depend on the plan. WordPress.com says only the last seven days are available until the site is upgraded, and other ranges show a lock. Period comparison is on the Personal plan and higher. Jetpack says a paid plan adds UTM stats, device stats, and region and city locations, and that Jetpack sites do not get file-download counts.

Jetpack’s privacy table says a visitor hit includes an IP address and a user agent. The site owner does not see the IP address. Automattic keeps the logs that contain IP addresses for 28 days. A script that stores neither is a different design.

How is Site Kit different from Jetpack Stats?

Site Kit does not count visitors itself. It signs your WordPress admin into a Google account and displays that account’s Search Console, PageSpeed Insights and, if you connect it, Google Analytics.

Jetpack Stats is Automattic’s page-load counter. Site Kit is a window onto Google’s tools, with Google’s definitions. WordPress.com’s guide says the two will not match, and to compare trends rather than one day. Search Console adds queries from Google Search, which the pixel cannot see. PageSpeed Insights is a performance score, not a visitor count.

Jetpack and WordPress.com facts from their help pages, Site Kit from its install guide. Read 29 November 2026.
RowJetpack StatsSite KitA script in the head
Who countsAutomattic, with a pixelGoogle, shown inside WordPressWhoever serves the script
A viewEach page load, including Reader click-throughsA Google Analytics page view, if Analytics is connectedEach load of a page that carries the tag
Search queriesNoYes, from Search ConsoleNo
UTM campaignsOn a paid Jetpack planIn Google Analytics, if you connected itIf the script keeps campaign parameters
Visitors who decline statistics cookiesDropped when the WP Consent API plugin is activeWhatever the connected Analytics property recordsDepends on the script
Pages on another hostNot countedNot countedCounted if the same script is on those pages

What do those reports leave unanswered?

They describe the WordPress site they are installed on. A reader who starts on a post and continues on a Webflow marketing site, or signs up in a Next.js app, is two visits in two products, and often cannot be joined.

  • Which headline sent the signup. UTM stats need a paid Jetpack plan, and Site Kit has them only if Analytics is connected and the links are tagged. Neither sees the app on the other domain.
  • Whether a form was completed, as opposed to the page being opened. A view of a contact page is not a submission. File downloads are absent from Jetpack Stats on Jetpack sites.
  • The visitors a consent banner removed. After Jetpack 16.4 with the WP Consent API plugin, or after Google Analytics waits for a cookie choice, the people who decline are gone from the denominator. Orders or form entries in WordPress can stay, which makes a rate look higher.
  • A JavaScript error in the theme. Stats and Site Kit’s traffic cards do not list the exception that stopped a button working. PageSpeed Insights will not either.

How do you add a script to the head of every page?

Put one script tag where the theme prints the head, so it is on every public template, and use either the theme’s header field or a plugin whose job is to insert header scripts. Do not do both, or every pageview is counted twice.

The tag is HTML, not PHP. Ours is one line, about 2.2 KB gzipped, with your public site key:

<script defer src="https://in.crispstats.com/d.js" data-site="YOUR_SITE_KEY"></script>
  1. Copy the tag from the analytics tool. Replace the placeholder key with the public key from that tool. The key is safe to publish.
  2. Open the theme’s header scripts field if it has one. On a theme you can edit, keep the change in a child theme so a theme update does not delete it. If the theme has no such field, use a plugin that only inserts a header script, and paste the tag there.
  3. Leave the tag out of the post editor, a widget, and a page builder block. Those miss some templates, and a block that appears twice on a layout sends two pageviews.
  4. Publish, then clear any page cache from a caching plugin or the host. Until you do, visitors keep getting HTML that has no tag.
  5. Open the live site in a private window, view the page source, and search for the script address. It should appear once, inside the head.

CrispStats does not publish a plugin in the WordPress directory. The WordPress install guide is the placement we test: a few lines in a plugin file you create, so a theme switch cannot drop the tag. Use that guide for our tag. Use the steps above for any other script.

How should you read the first month?

Pick one counter and judge the trend in that counter. The first month will not match the others, and the gap is not a traffic change.

A worked example: one blog, three totals

This example uses made-up numbers. A self-hosted blog runs Jetpack Stats and, from the 15th, a script in the head. For the full month Jetpack shows 12,000 views and 4,800 visitors. The script, present for half the month, shows 5,100 pageviews.

Doubling the script to guess the month gives 10,200, still short of 12,000. Suppose 1,400 views were Reader click-throughs the script never sees, and 900 were blocked for the script but not the pixel. 10,200 + 1,400 + 900 = 12,500. The gap is two tools counting different loads, not a change in the audience. Use one of them for the trend. For search queries, use Site Kit’s Search Console view, and do not expect those clicks to equal pageviews.

How does CrispStats work on WordPress?

CrispStats is the script in the head. It sets no cookies and stores nothing on the device by default. The IP address is used to compute a daily visitor hash and is not stored, and the raw user agent is not stored either: a visit is not tied to a name or an account. Pageviews, sources, entry pages and campaigns start on the day the tag is live. There is no import from Jetpack or from Site Kit.

A form or a button is a separate event, sent with crispstats("signup") or a data-cs-event attribute, and the event should carry the action, not the reader’s email. The same tag on a Webflow or Next.js site is what joins the blog to the rest of the journey. The install guide has the file to add, and the checks for a cache that is still serving the old HTML.

Guide questions. Straight answers.

What people ask after reading this.

  • WordPress.com does: Jetpack Stats, in the Stats screen. A self-hosted WordPress site does not, until you install Jetpack, Site Kit, or a script in the head. The three do not count visits the same way.

  • No. Jetpack Stats is Automattic's page-view counter. Site Kit displays Google Analytics, Search Console and PageSpeed Insights inside wp-admin. WordPress.com's help page says Jetpack Stats and Google Analytics will not match.

  • A view is counted on every page load. A visitor is counted the first time that browser is recognized in the period you selected. One person who reads four posts is one visitor and four views, and adding up daily visitors overcounts the week.

  • A small script with defer does not block the page from painting. The risk is a second copy of the tag, or an optimization plugin that rewrites the tag so it no longer runs. Check the page source for one copy in the head.

  • Only if you want Jetpack Stats or Site Kit. Any other tool is a script tag in the head, added through the theme's header field or a plugin that inserts header scripts. There is no need to paste PHP into the theme.

Not answered here? Write to hello@crispstats.com

Your traffic, crisp and clear

One script, no cookies, and every feature from the first day. Set up takes about as long as pasting a snippet.

© 2026 CrispStats. All rights reserved.

Get an AI summary of CrispStats