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
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.
| Row | Jetpack Stats | Site Kit | A script in the head |
|---|---|---|---|
| Who counts | Automattic, with a pixel | Google, shown inside WordPress | Whoever serves the script |
| A view | Each page load, including Reader click-throughs | A Google Analytics page view, if Analytics is connected | Each load of a page that carries the tag |
| Search queries | No | Yes, from Search Console | No |
| UTM campaigns | On a paid Jetpack plan | In Google Analytics, if you connected it | If the script keeps campaign parameters |
| Visitors who decline statistics cookies | Dropped when the WP Consent API plugin is active | Whatever the connected Analytics property records | Depends on the script |
| Pages on another host | Not counted | Not counted | Counted 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>- Copy the tag from the analytics tool. Replace the placeholder key with the public key from that tool. The key is safe to publish.
- 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.
- 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.
- Publish, then clear any page cache from a caching plugin or the host. Until you do, visitors keep getting HTML that has no tag.
- 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.
Terms in this guide
Free tools
- UTM builderBuild UTM-tagged links one at a time or in bulk from pasted rows, with presets, checks for capitals and spaces, CSV export and a channel preview.
- Analytics cost calculatorPick a monthly volume and compare list prices of privacy-friendly analytics tools at that exact volume. Dated, and never estimated between tiers.
- Traffic source classifierPaste a referrer or a tagged link and see the channel and source a visit is filed under, with the rule that decided it. Runs in your browser.
More guides
All guides- Traffic · 12 minHow to check website traffic: your own site and anyone else'sCheck your own traffic with analytics, Search Console or server logs; estimate other sites with Similarweb, Semrush or Ahrefs, and why the numbers disagree.
- Setup and data · 10 minWebflow analytics: Webflow Analyze or a script tag?What Webflow Analyze measures, what it costs per session tier, and when pasting an analytics script into Webflow's custom code does the job better.
- Setup and data · 11 minNext.js analytics: your options and the App Router gotchasThe ways to add analytics to a Next.js app, from Vercel Web Analytics to GA4 and privacy-first scripts, and the App Router mistakes that skew your numbers.