How To Install the WordPress.com Stats Plug-in on Your WordPress Blog

Share This:

If you’re like me and have a fresh install of the popular WordPress publishing platform on your own server space, you may be looking for a way to see how well your new web log is taking off. ‘WordPress.com Stats’ is a plug-in hosted on WordPress.org that you can download and use to track statistics and find out what is (and what is not) popular on your new site.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 1

Note: To complete this tutorial you should already have the WordPress publishing platform installed on your own server space, be able to extract a package / zip file , have a WordPress.com account and be able to use an FTP client.

Adding the ‘WordPress.com Stats’ plug-in to your WordPress site

Step 1:

Go to wordpress.org/extend/plugins/stats/

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 3

and click the red “Download” button in the top right column, to download this plug-in.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 5

You should see a popup asking you if you would like to save or cancel, since you want to save,  click ‘Save File’.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 7

Step 2:

 Once the Download is complete, go to your desktop, open your new package and extract to your desktop. You should see a folder labeled ‘stats’ appear on your desktop.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 9

Step 3:

 Run your FTP client and connect to the server that your wordpress blog is hosted.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 11

Once connected, make sure you are displaying both the contents of the stats folder (located on your computer) and the plugins folder (located on your server).

To get to these points typically you will click through folders “home > desktop > stats” on your end and “web > domainurl > wp-content > plugins” on the server side”

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 13

Tip: If you are using Fire FTP a free plug-in for Firefox (pictured above), your computers directories will be located on your left, and your server hosted directories will be on your right.

Step 4:

 On the server side (where directories located on your server are displayed), go into your plugins directory (folder)

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 15

in your plugins directory, create a new directory named, ‘stats’.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 17

Now open your new ‘stats’ directory.

Step 5:

 On your side (where directories located on your computer are displayed), go into the stats folder you created earlier (when you extracted from your zip file), then select “stats.php” and “open-flash-chart.swf” and upload these two files to the stats folder you just created on your server using your FTP client.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 19

Your files are now where they need to be.

Step 6:

 Now you will need to go get your free API key from your WordPress.com account so you can activate this plug-in.

If you don’t have a WordPress.com account, you will need to sign up for one. A basic WordPress.com account is free. After you sign up, an API key should be emailed to the email address you signed up with.

If you already have a WordPress.com account, go to it and login. After you have logged in, you will be able to find your API key listed on your personal settings page. You can get there by clicking the “Users” button on the left hand side and then clicking the “Personal Settings” sub menu link.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 21

You should now be directed to your, “Personal Settings” page where your API key should be displayed (near the top center of the page).

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 23

It is a good idea to make note of that key now and after you are done with this tutorial, to store it in a secure place.

Note: Treat your API key as you would a password and don’t share it. You can find out more about WordPress  api-keys at http://wordpress.com/api-keys/

Step 7:

 Now that you have your API key, go and log into your WordPress account (not the one on WordPress.com but the one hosted independently on your own server space), this should bring you strait to your Dashboard.

Now, click the ‘Plugins’ Button on your left

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 25

and you should see the “Manage Plugins Page”.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 27

Look for your ‘WordPress.com Stats’ plugin and click the ‘activate’ link.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 29

Step 8:

 Since you haven’t entered an API key yet you will see a red alert message saying, “WordPress.com Stats needs attention: please enter an API key or disable the plugin”.

(Note: While doing this, I noticed an edit option under the ‘WordPress.com Stats’ plug-in on the ‘Manage Plugins’ page, so if you would rather edit the plug-in manually instead of forcing the alert, you can probably enter your API key that way too.)

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 31

Go ahead and click the “WordPress.com Stats” link located at the beginning of your alert message and you will be sent to a page where you can easily enter your API Key without any hard coding necessary.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 33

After you enter your key and click save, you will be sent to page asking you to confirm your API key account selection and association with that account.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 35

If you made a typo or entered a key that does not belong to the WordPress.com account that you want your blog associated with, then go ahead and click the “Re-enter API key” button and type in the correct API key now.

If the API key you entered is correct, proceed to click the “Add to WordPress.com account” button to add your WordPress blog to your WordPress.com account in order for your new ‘WordPress.com Stats’ plug-in to work.

Step 9:

Congratulations! you are done You should see a page telling you, “The WordPress.com Stats Plugin is configured and working”.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 37

Now, although your done and your blog has been registered with wordpress.com for statistical purposes, it will take some time to track your stats and until this is complete there will be nothing to display.

The wait time for me was about 17 minutes, but this may very. With that in mind, now is probably a good time to make a sandwhich, go outside or go do something other than sit in front of your computer screen, continuously hitting the reload button until your stats appear.

Until stats for your new site have been tracked, you will see this message.

How To Install the WordPress.com Stats Plug-in on Your WordPress Blog 39

After tracking is complete, you will be able to view your stats by going to ‘Dashboard’ > ‘Site Stats’. If you log-out and log back into your server hosted WordPress account you will be prompted to log into your WordPress.com account to view your stats, as the servers who calculate these stats for you with this plug-in belong to them. Enjoy

(Image Credit for feature image: ‘Sample WordPress.com Stats Graph’ goes to: Daniel Voyager at http://www.flickr.com/photos/danielvoyager/ / CC BY 2.0)

Share This:
Photo of author

Sanjeev Singh

Sanjeev is the tech editor at DeviceMAG. He has a keen interest in all things technology, and loves to write about the latest developments in the industry. He has a passion for quality-focused journalism and believes in using technology to make people's lives better. He has worked in the tech industry for over 15 years, and has written for some of the biggest tech blogs in the world. Sanjeev is also an avid photographer and loves spending time with his family.

2 thoughts on “How To Install the WordPress.com Stats Plug-in on Your WordPress Blog”

  1. Thanks for ones marvelous posting! I actually enjoyed reading it, you are a great author.
    I will be sure to bookmark your blog and will come back very soon. I want to encourage one to continue
    your great posts, have a nice weekend!

    Reply
  2. Its like you read my mind! You appear to know a lot about
    this, like you wrote the book in it or something. I think that you can do with some pics to drive the message
    home a bit, but other than that, this is wonderful blog.

    A great read. I’ll definitely be back.

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.