API Key madness is enough to put me off Wordpress forever
Definition of insanity: trying to work out WTF is going on with Wordpress and the API key needed to run stats on a blog.
Problem. Two kinds of Wordpress. Wordpress.com and Wordpress.org. To run the Wordpress stats plugin on your self-hosted blog (built with Wordpress software from Wordpress.org) you need a Wordpress.com API key. Got it? No? Join the club.
The problem comes when you create a new self-hosted Wordpress blog and try to set up the stats for that blog. Let’s say it’s a clients blog. If you’re not careful, you put in your own wordpress.com API key to get it working.
The problem you’ve then got is that your client’s site reads stats via your wordpress.com dashboard and requires your wordpress.com login and password to see his stats. Not good.
So you want to..er..do something about it. Like..er..presumably disconnect his blog from your wordpress.com dashboard. But how?
You log out of your wordpress.com dashboard and create a new wordpress.com account (in the hope of creating a new API key to attach to his blog) but it asks you for an email address. Ah. Ideally you want to give your client’s email address but you can’t because you know it will demand you validate it. So you use another of your own.
The validating email comes through, you rush off to try to set up Wordpress stats plugin on your client’s site using his new wordpress.com account and it’s shiny new API key which you hopefully cut and paste… and..
PHUT!
“Error from last API Key attempt: Missing API Key”
What follows is then a 2 hour crawl through a maze of complete and utter fucking gobbledegook splattered across both wordpress.com’s ’support forums’ and wordpress.org’s unintelligible ‘Codex’ with your heart and soul dying by the second. You jump from one nonsensical ‘fix’ to another until you’ve got about 30 browser tabs open, each saying the same pile of meaningless shite.
If you’ve read this far it’s because, like me, you’ve been on this life-sapping journey to nowhere and ended up at 1.30am wondering what the hell you’re doing wasting your life like this.
My advice to you (myself, actually) is deactivate the stupid plugin, shove some Google analytics code into your template and tell your client it’s a far more sophisticated way to monitor his traffic and forget you ever heard of the stupid wordpress.com API key.