WordPress · Install guide

WordPress analytics that doesn't require a degree

Last updated: May 27, 2026

Short version: WordPress's built-in dashboard doesn't have real analytics — most owners use Google Analytics, which is famously confusing. Small Business Analytics gives you plain-English visitor analytics with an AI assistant, installs via a free header-injection plugin (or directly in header.php if you're comfortable), and starts at $9/month. 14-day free trial.

2-minute installWorks with WooCommerceNo cookies$9/mo
Start free trial Skip to install steps

Why WordPress users need a separate analytics tool

WordPress doesn't ship with real visitor analytics. The Jetpack stats panel is basic. Most owners install Google Analytics via the MonsterInsights plugin and then struggle with the GA4 interface. SBA solves both halves:


How to install SBA on WordPress (2 minutes)

Easiest option: Our official one-click plugin is live in the WordPress plugin store. In your WordPress dashboard go to Plugins → Add New, search "Alfred Website Analytics," install and activate, then paste your site ID — about 30 seconds. Prefer to do it by hand? The header-injection method below works too.

Option A — via a header-injection plugin (recommended for now)

Safer than editing theme files because it survives theme updates.

  1. Sign up for SBA at app.smallbusinessanalytics.io and copy your tracking snippet.
  2. In WordPress admin, go to Plugins → Add New.
  3. Search for "Insert Headers and Footers" by WPBeginner (or "WPCode" by WPBeginner — same team, newer version). Both free.
  4. Click Install Now, then Activate.
  5. Go to Settings → Insert Headers and Footers (or WPCode → Header & Footer).
  6. Paste SBA's snippet into the "Scripts in Header" box.
  7. Click Save.
  8. Return to SBA and click "Run a test visit" to verify.

Option B — direct header.php edit (advanced)

Only recommended if you're using a child theme; otherwise theme updates will wipe your changes.

  1. WordPress admin → Appearance → Theme File Editor.
  2. On the right, find and click header.php.
  3. Find the </head> tag and paste SBA's snippet on the line just before it.
  4. Click Update File.
<script src="https://app.smallbusinessanalytics.io/tracker.js?tid=YOUR_ID" async></script>
WordPress.com note: SBA works on WordPress.org (self-hosted) on any plan. On WordPress.com (hosted by Automattic), you need at least the Business plan ($25/mo) — that's the lowest tier that allows third-party JavaScript via plugins. Free, Personal, and Premium WordPress.com tiers block custom scripts entirely.

FAQ

WordPress-specific questions

Plugin or direct header.php edit?
Plugin is safer — survives theme updates. We recommend "Insert Headers and Footers" or "WPCode" by WPBeginner (both free). Direct edits only if you're using a child theme.
Does SBA work on WordPress.com?
Yes on the Business plan ($25/mo) or higher. Free / Personal / Premium WordPress.com tiers don't allow third-party scripts. Self-hosted WordPress.org works on any plan.
Will SBA conflict with my caching plugin?
No. SBA loads async and doesn't depend on WordPress state. If your caching plugin minifies JS aggressively and breaks the tracker, exclude tracker.js from JS minification.
Does SBA work with WooCommerce?
Yes — same install, no special setup. SBA tracks visitor behavior; WooCommerce tracks orders. They complement.
Will SBA slow down my WordPress site?
The tracker is <3KB and loads async. Lighthouse / PageSpeed scores stay essentially unchanged.
Should I keep MonsterInsights / GA4 installed alongside SBA?
Up to you. Most customers run both during a 2-4 week trial then remove GA4 if SBA covers their needs. They don't interfere.
Is there a dedicated SBA WordPress plugin?
Yes — we built one and submitted it to the WordPress plugin store on May 26, 2026. It's currently pending review (the standard wp.org process takes a couple weeks). Once approved, you'll be able to install it with one click from your WordPress admin. In the meantime, the header-injection plugin approach below works just as well.

Try SBA on your WordPress site

14-day free trial. 2-minute install. Cancel anytime. Alfred AI included on Pro.

Start free trial