PXS – Google Analytics
Current Version 0.3 BETA
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
No related posts6 Comments »
RSS feed for comments on this post. TrackBack URI




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
Doh!! What version of WP are you using? What is the error??
Comment by Phrixus — 22/11/2005 @ 5:25 pm
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
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
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
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