ArticlesForumDownload AboutContact

boakes.org

nice of you to drop by. tea?

Tags: Google, Releases, Website, WordPress

Google Analytics Plugin for Wordpress

November 14th, 2005, by Rich.

Google Analytics Plugin for Wordpress

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('

You appear to be using an older version of the plugin. You may wish to download the latest version.

‘);
}
}
?>

I have it running on this site and it seems to be working just fine so far.

Installation instructions

To use it:

  1. If you have a previous version of the plugin, delete it.
  2. Download this fileDownload this file
  3. Rename the file googleanalytics.php and copy it to your /wp-content/plugins directory.
  4. Enable it on the plugins page.
  5. Enter your Google Analytics User Account string (it’ll be something like UA-12345-6. It appears when you “Add a channel”)
  6. 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
    A graph showing clicks on outbound links - something not possible with stats based on server logs alone
  • 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.
  • Per Category Channels
    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!

    310 Responses to “Google Analytics Plugin for Wordpress”

    Pages: «134567891011121331»

    1. 71
      Trackback from: Dagon Design » Articles » Sitemap Generator Plugin for Wordpress
    2. 72
      Trackback from: Google Analytics sur Wordpress at think’blog
    3. 73
      Trackback from: Test Installation » Articles » Hello world!
    4. 74
      A Samuel Says:

      I seem to have a conflict between this plugin and my technorati tags plugin from http://www.broobles.com/ does anyone know how to fix this?

    5. 75
      Rich Says:

      Hi A Samuel, can you be a bit more descriptive? I have no idea what you are seeing sorry. I’ve had a look at your site and the plugin is currently disabled, so I’m a bit limited in what I can diagnose so far!

    6. 76
      A Samuel Says:

      Strange it is activated? I am seeing this in the source code:

      Technorati Tags: manchester, offplan, off plan, affordable, housing, flats, leeds, city pod, UK

      It seems to be stopping technorati log my posts any ideas?

    7. 77
      Rich Says:

      Aha, got it. Yes, this is a most curious one and it’s down to the combination of the that Analytics works and the way Technorati do their indexing. The analytics plugin updates every link to include the onClick code which can be seen in each of your tags, but technorati don’t seem to like this.

      Two solutions spring to mind (in advance of me being able to code a workaround).

      1. Contact Technorati and raise a tech support ticket (they’re usually very quick to respond), ’cause this is likely to be something that many people will eventually endure.
      2. You might want to try the autometa plugin which does work ok with the analytics plugin (and it does a fairly good job at automatically generating the meta tags for you).
    8. 78
      A Samuel Says:

      Thanks for the response, I appreciate your help. I have raised a ticket and await to hear from them. I will try the scenario you suggested if no solution can be found. Ill keep you posted.

      Cheers once again!

    9. 79
      Trackback from: yauidea.com » links for 2006-04-12
    10. 80
      Trackback from: Google Analytics per Wordpress at web@work

    Pages: «134567891011121331»