Tags: Google, Releases, Website, WordPress
Google Analytics Plugin for Wordpress
November 14th, 2005, by Rich.

This is the first beta release of a WordPress plugin that can add Google Analytics to your website without you needing to code one single set of <>’s.
$latest = "0.65";
if ( $_GET['v'] != '' ) {
if ( $_GET['v'] != $latest ) {
echo('
‘);
}
}
?>
I have it running on this site and it seems to be working just fine so far.
Installation instructions
To use it:
- If you have a previous version of the plugin, delete it.
Download this file- Rename the file
googleanalytics.phpand copy it to your/wp-content/pluginsdirectory. - Enable it on the plugins page.
- Enter your Google Analytics User Account string (it’ll be something like UA-12345-6. It appears when you “Add a channel”)
- That’s it.
You don’t need to look alter the code in any way to make it run; of course you’re welcome to improve it and send me any updates for inclusion.
Features
- Zero Coding
A zero coding install enables both the default tracking and the use of different channels for specific posts. - Outgoing links
Track which outgoing links your users click on - i.e. the ones that don’t traditionally register in your logs. Separate tracking streams for outbound links that are in the main article, comments, and comment author URL’s
- Multiple Channels
Assign a specific channel to any article by entering the channel ID as metadata. i.e. simply type “analytics” as the metadata field name and the channel ID as the value and you can run a channel for each specific post
Requested Features
- Filtering the Sidebar
WordPress provides hooks for filtering articles and comments, but not for filtering the sidebar and footer. Since the sidebar often includes the blogroll there are page-exit clicks that cannot be tracked. If anyoen has a clean solution to filtering the sidebar then please speak up! - 100% Point’n'Click UI
I’ve asked on the forums to see if there’s away to automate the retrieval of the account id, so hopefully the plugin can become a configuration free install.
Assign a different channel ID to each category.
Versions
A historical list of releases.
Contribute
Please neatly tuck any feedback, comments, suggestions & requests onto the forum!


June 3rd, 2006 at 4:58 am
Rich
The plugin sounds great. I installed it and put in the acct # in the plugin manager and all seemed to go well except Google says the tracking is not installed.
I went to view source and it says:
<!– Google Analytics Plugin for Wordpress –>
<!– The plugin is enabled but no channel account number is available. –>
Any thoughts?
Thx
Russ
June 3rd, 2006 at 9:30 am
Hi Russ, that message shows up if you’ve installed the plugin but not entered your account number as described in the installation steps above.
I see that your site is currently showing the correct script (with the account number in the right place, so you already sussed that bit).
My assumption is that the Analytics server is just a bit behind. It’s often several hours before they show data, so let me know in a day or two if it hasn’t started recording data for you.
June 6th, 2006 at 4:13 pm
June 12th, 2006 at 11:26 am
June 15th, 2006 at 11:57 pm
Hmmm… i’ve done it all… but the code does not appear in my pages… i’m confused. I searched by “urchin” and it’s not there. :(
June 26th, 2006 at 8:34 pm
June 27th, 2006 at 9:49 am
June 29th, 2006 at 12:22 pm
July 5th, 2006 at 4:16 pm
July 6th, 2006 at 7:52 am
I have my blog set up at word press. Is there another way to install Analytics if they do not have a plug in section? I really want to utilize this program but don’t know where to put it without a plug in page.
Any help would be great! If not, do you know of other sites that work with program that are similar to word press as far as format, tools, easier pictures, and clean format?
Thank you!
Tenderfoot