Google Analytics Plugin For Wordpress MU - Revised - English
September 19th, 2008
Update 17 Feb 2009
Fix uploaded for admin hook error on wpmu 2.7. “If (is_admin)” hook added on admin page.
Thanks to Ankit for bringing up the issue.
Update
Fix uploaded for wrong variable on line 55 in rafik_ga.php.
Thanks to Robert Staddon for bringing up the issue.
Google Analytics Plugin For Wordpress MU
This is an english translation of the plugin from this french website revised version downloaded from here. We have only translated the plugin to English so everybody can use it.
Download
wpmu_google_analytics-revised-english.zip (2640)
If you have enjoyed this download, please digg this page, spread the word.
WordPress Mu Google Analytics by Rafik Ouerchefani - http://themajesty.asslema.net/
Revised Version from http://www.tajidyakub.net/
Translation: French » English by George Abhishek Cherian - http://www.be-lifted.com
Description: A solution for Google Analytics for the entire site and for each blog!
Installation
Upload the files:
wp_content / mu-plugins / rafik_ga.php
wp_content / mu-plugins / rafik_ga / rafik_ga_admin.php
Configuration
To set up Google Analytics on this site:
> Admin. Site> Google Analytics.
Paste the Google Analytics (in the form-”UA-xxxxxxx-x” ).
To set up Google Analytics on a specific blog, blog administrator can set his own blog:
> Options> Google Analytics.
Paste the Google Analytics (in the form -”UA-xxxxxxx-x” ).
That’s it!
Note: Make sure you have the wp_footer hook “<?php wp_footer(); ?> ” in your footer.php or else it wont work.
Related posts:
- Downloads Google Analytics Plugin For Wordpress Mu - English This...
- 5 Reasons Why Wordpress Rules Easy To Setup & Learn The famous Wordpress install is...
- tai-yama.com - Website for Rapper ‘Tai’ aka ‘Yama’ Taisuke is globetrotting rapper from Japan. Raised in Germany, UK,...
- Corporate Website for Vivace, an Events Company Vivace is run by a group of entrepreneurial young people...

23 Responses to “Google Analytics Plugin For Wordpress MU - Revised - English”
1Jason
October 18th, 2008 @ 4:19 pm
This plugin doesn’t allow for the proper code length from google. It’s cuttiing it off.
Code allowed: UA-xxxxxxx-x (one short)
Code needed: UA-xxxxxxx-xx
2Jason
October 18th, 2008 @ 4:26 pm
Simple fix once I opened it up and looked at it.
Find this:
<input maxlength=”12″ name=”rafik_wpmu_analytics_admin_urchin” value=”" />
Change the 12 to a 13. If you’re anal, change all the “-x” to “-xx”
3George
October 19th, 2008 @ 4:35 am
hi jason thank you for letting me know. fixed it,
fixed all the instances of the value and also changed the directions. analytics code can either be UA-xxxxxxx-x or UA-xxxxxxx-xx so depends on what analytics gives you.
cheers.
4Jay
October 21st, 2008 @ 11:59 am
Will this work with Donncha Domain Mapping plugin?
5George
October 21st, 2008 @ 4:07 pm
sorry haven’t tried it. if anybody has a note would be appreciated.
6» links for 2008-10-15 ff
October 27th, 2008 @ 9:16 pm
[...] Google Analytics Plugin For Wordpress MU - Revised - English | Be-Lifted - Internet Visibility for E… [...]
7Robert Staddon
November 1st, 2008 @ 6:54 pm
Thanks so much for providing this plugin! The only thing that doesn’t work for me is having blog-level Google Analytics tracking without site-level tracking. The reason for this is because of a bug in the code of rafik_ga.php. On line 55, $site_urchin should be $blog_urchin. I changed this and everything works fine now. Thanks!
8Ben Greenberg
November 3rd, 2008 @ 8:11 pm
Thank you for writing this plugin. I have a couple of questions:
1. Do you use the same Google Analytics code on all of the blogs in one MU installation?
2. If the answer to 1 is yes, does Google Analytics generate separate reports for each blog? I’m a little confused about how the reporting will work.
9George
November 4th, 2008 @ 3:13 am
@ ben greenberg
google analytics puts out two sets of code for the plugin, one for the main admin and the other for the blog owner. if you see the source of one of the blogs you can see two of these javascript code blocks.
so basically you need two accounts one for the site owner to see the overall traffic & the other for the blog owner to see his or her own traffic.
the site owners google analytics page does not differentiate between blogs but i am sure you can find which page or blog is most visited and stuff like that.
if your aim is to track your mu installation comprehensively there are a couple of other plugins, cant remember them of the top off my head but it is out there. try firestats….
10George
November 4th, 2008 @ 3:14 am
@ robert
appreciate the fix, will be uploading a new file soon.
11Doing What I Like» Blog Archive » Oh, the things I do.
November 4th, 2008 @ 4:41 pm
[...] installed a Google Analytics plugin for Wordpress MU that works [...]
12kobak
November 9th, 2008 @ 9:18 pm
thanks, dugg!
13Boris Masis
November 11th, 2008 @ 5:42 pm
Its probably also a good idea to add:
pageTracker._setDomainName(”.’.$current_site->domain.’”);
before the “trackPageview();” line to properly support subdomains sitewide.
Note that the last version will read:
firstTracker._setDomainName(”.’.$current_site->domain.’”);
You will then need to enable showing of subdomains in google analytics by creating an advanced filter as described at http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55524
14George
November 12th, 2008 @ 5:49 am
new update with fix by Robert.
15WpMu için Google Analytics - Türkçe
December 12th, 2008 @ 1:20 pm
[...] Eklentinin İngilizce versiyonu : http://www.be-lifted.com/posts/google-analytics-plugin-for-wordpress-mu-revised-english/ [...]
16Satranc
December 12th, 2008 @ 1:24 pm
Hi,
There is a modified version by me: http://abdullaharik.com/wpmu-icin-google-analytics-turkce/
Modifications:
Translated for Turkish,
Extenden information for users.
It is using by me at: http://satranc.biz/
Thanks for great plugin.
17Ankit
February 16th, 2009 @ 5:55 pm
there is a bug in the plugin
even the blog users can access the wpmu-admin.php?page=rafik_ga_admin.php page
i had to disable this page after making the sitewide code static in the plugin
18George
February 16th, 2009 @ 6:32 pm
have fixed the error, i noticed the error after upgrading to wpmu 2.7. added an admin filter to the add menu function, should work fine now.
thanks for reminding me, give me a digg if it works out for you.
19Ankit
February 17th, 2009 @ 12:17 pm
Thanks for the update George. I had already fixed it though :p
And nice way of notifying my about the plugin update though you could have emailed me as well :p
20Upgrade from Wordpress 2.7 to Wordpress MU 2.6.5 | Wordpress @ Ralf Engel dot Com
February 20th, 2009 @ 6:01 pm
[...] I googled to see if there are any Google Analytics for Wordpress MU out there and found this one: Google Analytics Plugin For Wordpress MU - Revised - English It works perfectly. One confusing thing about it is that you can reach a “urchin” field [...]
21nadia
March 17th, 2009 @ 9:53 am
thank it’s work great!!
22wahbi
April 5th, 2009 @ 9:44 am
Hi,
The french (tunisian) website is no more working and i needed this plugin in french. I re-made a french version of this plugin (with .po and .mo files). How is it possible to send you the different files (some modifications in rafik_ga_admin.php in order to make the necessary translations).
Sincerely yours
23George
April 18th, 2009 @ 5:41 pm
i have not worked on translation before with .po and .mo files. but if you have a translation i can put it up for download.
Leave a Reply