Title: WordPress.com Stats Doesn&#039;t Like My API Key
Last modified: August 20, 2016

---

# WordPress.com Stats Doesn't Like My API Key

 *  [johnchartrand](https://wordpress.org/support/users/johnchartrand/)
 * (@johnchartrand)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/wordpresscom-stats-doesnt-like-my-api-key-1/)
 * I installed and activated WordPress.com Stats and it doesn’t like my API key.
 * >  “The API key “7101ce1c77a4” belongs to the WordPress.com account “johnchartrand661″.
   > If you want to use a different account, please enter the correct API key.”
 * This is the API key I received and used with Askismet plugin. It also says if
   I want to use a different account to enter the correct API key. What is the correct
   API key? And how do I get it if I don’t have the right one that I’m using with
   Askimet.
 * I tried to create a Google Analytics account, but it wants me to enter the code
   in each page of my site within the <head> tag of the html, but WordPress uses.
   php and I don’t know where to place it.
 * Appreciate your help
    John

Viewing 1 replies (of 1 total)

 *  [Big Bagel](https://wordpress.org/support/users/big-bagel/)
 * (@big-bagel)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/wordpresscom-stats-doesnt-like-my-api-key-1/#post-2385813)
 * I think that’s the message that shows when you enter a valid key. It’s just telling
   you who owns the key (presumably you) and that you can re-enter a different key
   if you want. Wait a while and see if some stats are shown.
 * You would add your Google analytics tracking code directly to your theme’s `header.
   php` file (or preferably, a [child theme](http://codex.wordpress.org/Child_Themes)
   of such). There _are_ also a few plugins that will do it for you, such as this
   one:
 * [http://wordpress.org/extend/plugins/google-analytics-for-wordpress/](http://wordpress.org/extend/plugins/google-analytics-for-wordpress/)

Viewing 1 replies (of 1 total)

The topic ‘WordPress.com Stats Doesn't Like My API Key’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Big Bagel](https://wordpress.org/support/users/big-bagel/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/wordpresscom-stats-doesnt-like-my-api-key-1/#post-2385813)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
