Title: [Plugin: WordPress.com Stats] Re-enter API &#8211; Link Broken!
Last modified: August 19, 2016

---

# [Plugin: WordPress.com Stats] Re-enter API – Link Broken!

 *  [becky.lansdale](https://wordpress.org/support/users/beckylansdale/)
 * (@beckylansdale)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/)
 * Hi,
 * When setting up the plugin I used an API key that was evidently the wrong one(
   my mistake, too many logins to remember). I found the right key for the site 
   and it says The API key “……….” belongs to the WordPress.com account “……..”. If
   you want to use a different account, please enter the correct API key.
 * The link for entering the correct API key does absolutely nothing and I’m stuck
   with the key that isn’t relevant.
 * I’ve deleted the plugin, removed all the files, downloaded a completely fresh
   file and uploaded, it STILL remembers the old key and won’t let me re-enter the
   real one.
 * Help!
 * [http://wordpress.org/extend/plugins/stats/](http://wordpress.org/extend/plugins/stats/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [johngeesman](https://wordpress.org/support/users/johngeesman/)
 * (@johngeesman)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/#post-1627128)
 * Same problemo — no way to submit correct API key despite multiple deactivations,
   deletes, and reinstalls.
 *  [acangiano](https://wordpress.org/support/users/acangiano/)
 * (@acangiano)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/#post-1627222)
 * Guys, you can run the following MySQL query to make the plugin ask you for a 
   new key:
 * `update wp_options set option_value = '' where option_name = 'stats_options';`
 * Cheers,
    Antonio
 *  [halcan](https://wordpress.org/support/users/halcan/)
 * (@halcan)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/#post-1627243)
 * Hi Becky & John…further to what Antonio stated, before running the SQL command
   code he suggested, backup your site first in your cpanel. If you are not in the
   habit of backing up your sites, it’s a good habit to start. Just go into your
   cpanel & click the “backup wizard tab under section “files”. Then choose backup,
   then under partial select SQL databases and then the site you need to backup 
   for your SQL command. Save it to a folder you can find if needed in the future.(
   backup regularly, once every week or two.
 * **NOTE: Below I show you how to follow through all the steps needed. But I think
   you already had things done correctly. I am guessing that you did not click the“
   add blog to Account” button. If that the case, just read the last paragraph in
   this post. Otherwise, continue reading.**
 * To run your SQl command code, go to cpanel/Databases and click PhpMyAdmin. In
   the left hand sidebar, choose the database you are wanting you affect the code
   antonia provided. Then on the table bar at the top, choose “SQL”. Copy & paste
   the code Antonio provided `update wp_options set option_value = '' where option_name
   = 'stats_options';`
    and hit go. Done
 * Now go back to WP and activate WP stats plugin. When you click on the bar to (
   WP stats need your attention or whatever it says, copy your API code in. You 
   can find it when it asks you to find your API code.
 * Last step is to click “add blog to WP Account”. You should not have to change
   any setting after that. Save changes and all done.
 * **Take care,**
 * Michael
 *  Thread Starter [becky.lansdale](https://wordpress.org/support/users/beckylansdale/)
 * (@beckylansdale)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/#post-1627304)
 * Thanks guys.
 *  [mlombard](https://wordpress.org/support/users/mlombard/)
 * (@mlombard)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/#post-1627306)
 * Thanks, guys, worked like a charm.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: WordPress.com Stats] Re-enter API – Link Broken!’ is closed 
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/stats.svg)
 * [WordPress.com Stats](https://wordpress.org/plugins/stats/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stats/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stats/)
 * [Active Topics](https://wordpress.org/support/plugin/stats/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stats/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stats/reviews/)

## Tags

 * [Stats](https://wordpress.org/support/topic-tag/stats/)

 * 5 replies
 * 5 participants
 * Last reply from: [mlombard](https://wordpress.org/support/users/mlombard/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-wordpresscom-stats-re-enter-api-link-broken/#post-1627306)
 * Status: not resolved