WordPress Plugin

Install HitCounters on WordPress in 2 minutes

Drop the official plugin in, paste your tracking code, and you're live. Works with any theme, no code editing required.

Download plugin (.zip) Get tracking code

Install steps

  1. Sign up free at hitcounters.com and add your WordPress site. You'll get a 16-character tracking code.
  2. Download the pluginhitcounters-wordpress.zip
  3. In WordPress, go to Plugins → Add New → Upload Plugin, choose the .zip, install, and activate.
  4. Configure at Settings → HitCounters: paste your tracking code, save.
  5. Verify on your HitCounters Sites page — we'll check the snippet is live.

Async, async, async

Tracker loads asynchronously, doesn't block rendering, doesn't slow your site. <25 KB total.

Skip your own visits

Logged-in admins are excluded by default. Or add your IP on the HitCounters site settings page.

Head or footer

Inject the snippet in <head> (recommended) or footer if your theme blocks head injection.

Don't want a plugin?

You can also paste the snippet manually:

  • Drop it into your theme's header.php (just before </head>)
  • Or use a code-injection plugin like Insert Headers and Footers or WPCode
  • Or paste it via Google Tag Manager

The snippet looks like this (yours will have a unique tracking code):

<!-- HitCounters.com -->
<script async src="https://hitcounters.com/api/tracker.js?code=YOURCODE"></script>

Ready to track your WordPress site?

Free plan, no credit card. Setup takes 2 minutes.

Sign up free Download plugin