Add Statcounter Code To WordPress To Track Users Visits and More

Yesterday, I explained how to add statcounter code to Blogger blogs without errors and some commenters asked how they can do same on WordPress.

Well, there are different ways you can add statcounter code to WordPress if you want to track users visits and more. You can add the code directly into your theme file, you can make use of the statcounter wordpress plugin and you can also make use of third party plugins eg Insert Headers and Footers plugin.

To get started, you will need to add your WordPress blog to statcounter after which you will see the code which you will install on the WordPress blog.

So, let’s get started.

Go to

Login or sign up for new account if you are not yet registered.

After you sign in, click on “Add Project“. Thereafter, you will see the form below :

statcounter blog traffic tracker add project


Enter your blog url in the “project url” field, give it a title, select “invisible tracking” and click “Add Project” button.

You will be redirected to the page below :

blog traffic tracking

Click on “continue to default installation

Thereafter, you will see the code which you will add to your WordPress blog. Save it somewhere e.g in a notepad.

Open a new tab on your web browser and sign in to your WordPress dashboard.

Go to “Plugins” > “Add New

Search for “Insert Headers and Footers

Click “Install Now” as seen in the screenshot below :

See also :   JetPack Unable To Connect To UnPlug It!

insert html javacript in wordpress header and footer


Activate the plugin after installation

Thereafter, go to “Settings” > “Insert Headers and Footers

Paste the statcounter code in the “scripts in footer” box

insert headers and footers plugin wordpress development

Click “Save”

Go back to the statcounter page and verify the installation. – Very Important!

If successful, will start tracking your blog traffic and you can always sign in there anytime to check your blog pageviews etc

Please Share :

Written by Jide Ogunsanya

Pro Nigerian Blogger, Digital Marketer and Web designer. I help business owners to grow their businesses online. You can join my Facebook Group here.


Leave a Reply
  1. Thanks for this. I will try it out on my blog too see if it is more preferable to Google Analytics. I blog @

  2. yea we are going to use it here having moved the site back from free blogger host to WordPress.
    thanks Bro.
    you can’t how I frequent your site for new tips every now and then

  3. Great! just intall on my WP Blog – – works fine. Sir, your contributions highly apprecaited.

  4. this is informative .
    btw , i would like you to help me check my blog and give comment on how i can improve more.

Leave a Reply

We're glad you have chosen to leave a comment. Please keep in mind that comments are moderated according to our comment policy. Your email address is required but will not be published. No keyword stuffing in the name field and commenting from blah blah blah makes no sense. Thank You.

  • NetDivo ePin Manager Lets You Print Airtime Of All NetworksLearn More
statcounter blog traffic tracker add project

Statcounter Tutorial : Add Blog Traffic Stats Tracking Code To Blogger Without Error

bulk delete all comments wordpress webdesign web development

WordPress Plugin That Bulk Delete All Comments Easily