PXS - Google Analytics

20-11-2005 | Categories: — by Phrixus

Current Version 0.3 BETA

Download Now

NOTE: This is an old and no longer developed plugin. Please feel free to download for your own use but be warned that it probably wont work!!!

Overview

PXS Analytics is a small plugin that will insert the Google Analytics code into the head of your WP blog. It’s main feature at the moment is the ability to ensure that google does not log users of a set admin level. For example, if you have level 10 as as an admin, you may not want your activities to cloud the analysis of your website. You would tell the plugin to ignore all users of that level and above. This means that if you have registered users that had level 9 and were logged in, their activities would be recorded but yours at level 10 would not. Likewise, if the limit is set to 5, all users with level 6-10 would be ignored and all others would be logged.

Requirements

PXS Analytics has been built and tested on Wordpress 1.5.

Installation

1. Copy pxsanalytics.php into the /wp-content/plugins/ directory.
2. Open the file in a text editor of your choice and insert your own Google Analtics account code after the line starting $google_ac, this should then look something like - $google_ac = ‘UA-xxxxxx-x’; but with your own numbers in place of the x’s. Also update the log_level_limit to the required level. As default, it is set at 10 so that the main admin account will be ignored. Lower this to your own requirement.
3. Save and copy pxsanalytics.php into the /wp-content/plugins/ directory.
2. Go to the plugin manager and activate ‘PXS Analytics‘.
3. All done… wait a while for Google to start showing your results!! You can check the plugin is functioning correctly by looking at the source for your blog and looking for the google code in the head section.

Good luck and please contact me if you have any difficulties or leave a comment below to help out other users!


Additional Related Entries

Google Analytics Plugin
Google Analytics
It had to happen…
Infinity+1
My Home

6 Responses to “PXS - Google Analytics”

  1. Get your own Gravatar at Gravatar.com

    #1

    The plugin does not even activate for me; it give an error on the get_currentuserinfo(); line.

    Comment by tylerwillis — 22/11/2005 @ 1:11 am

  2. Get your own Gravatar at Gravatar.com

    #2

    Doh!! What version of WP are you using? What is the error??

    Comment by Phrixus — 22/11/2005 @ 5:25 pm

  3. Get your own Gravatar at Gravatar.com

    #3

    Fatal error: Call to undefined function get_currentuserinfo() in /home/tyler/domains/tylerwillis.com/public_html/wp-content/plugins/pxsanalytics.php on line 36

    WP 1.5.1.3

    Comment by tylerwillis — 22/11/2005 @ 11:13 pm

  4. Get your own Gravatar at Gravatar.com

    #4

    Hi Tyler, please try the latest version. I have discovered that the function causing your error was moved in WP1.5.1 and so I did not see the error. As I have not been able to test it here, I would appreciate it if you would let me know either way!

    Comment by Phrixus — 23/11/2005 @ 7:56 pm

  5. Get your own Gravatar at Gravatar.com

    #5

    The plugin, as you had, still gave the error. I did a bit of digging around and found:

    http://wordpress.org/support/topic/33129

    I replaced the inclusion code that you had put in with what was suggested, and it activated fine.

    I’ll keep an eye on it to make sure that google is receiving data.
    Thanks!
    Tyler

    Comment by tylerwillis — 24/11/2005 @ 2:44 am

  6. Get your own Gravatar at Gravatar.com

    #6

    Thanks Tyler… that will help some others… I also tried that code initially aswell but it wouldnt activate in my WP version. I’ll look into another way to fix this.

    Comment by Phrixus — 24/11/2005 @ 11:04 pm

Leave a Reply