Installation:
1. Extract the plugin archive file.
2. Upload the "google-analytics" folder to the "/wp-content/plugins/" directory.
3. Activate the plugin through the 'Plugins' menu in WordPress
Changelog: Version: 1.1.2
* Added localization.
* Plugin architecture changed.
* Added function which handles migration of data from deprecated DB options.
* Code improvements.
Version: 1.1.1
1. Bug fixes
2. The current version has completed the first round of testing and it may be used on a live environment.
Version: 1.1.0
1. Plugin updated with the new asynchronous Google Analytics tracking code.
2. Cross-Domain Tracking
3. Admin Pages Tracking
4. Code improvements
5. The current release is an early BETA intended for testing/ bug hunting. It may not be suitable for production environment.
FAQ 1. Where do site admins go to add their UA code to their site? It used to be under Settings > Google Analytics, but I can't find it anymore.
Super Admins enter their code in Super Admin -> Options. All other users enter their code in Settings -> Google Analytics.
Please report bugs in the current thread. You can find the latest version of the plugin attached.
Installation:
1. Extract the plugin archive file.
2. Upload the "google-analytics" folder to the "/wp-content/plugins/" directory.
3. Activate the plugin through the 'Plugins' menu in WordPress
Changelog: Version: 1.1.2
* Added localization.
* Plugin architecture changed.
* Added function which handles migration of data from deprecated DB options.
* Code improvements.
Version: 1.1.1
1. Bug fixes
2. The current version has completed the first round of testing and it may be used on a live environment.
Version: 1.1.0
1. Plugin updated with the new asynchronous Google Analytics tracking code.
2. Cross-Domain Tracking
3. Admin Pages Tracking
4. Code improvements
5. The current release is an early BETA intended for testing/ bug hunting. It may not be suitable for production environment.
FAQ 1. Where do site admins go to add their UA code to their site? It used to be under Settings > Google Analytics, but I can't find it anymore.
Super Admins enter their code in Super Admin -> Options. All other users enter their code in Settings -> Google Analytics.
Please report bugs in the current thread. You can find the latest version of the plugin attached.
Where do site admins (not super admins) go to add their UA code to their site? It used to be under Settings > Google Analytics, but I can't find it anymore.
@gregfielding The new version uses slightly different option entries, so the old records won't work on the new version.
@cfricks The localization is planned for the next version, for the time being you can translate it directly in the code ( there are a few sentences for translation in total ).
@fuzu42 @gregfielding The current version copies over the old tracking codes to the new option entries. This is not thoroughly tested so I will appreciate your feedback whether everything works correctly.
@cfricks You can find the ".pot" file inside the "ga-languages" directory.
Maybe a dumb question, but presumably this still interacts with the Supporter framework, yes? Does it interfere with global tracking if you haven't network activated, or don't provide access to individual blogs?
So everything seems to work well except that when logged in as a Super Admin, the Settings > Google Analytics link is hidden from me. If I login as an Admin (non Super Admin) for any sub-domain site on our install, I CAN view the link .... the issue is that many times I insert code for client blogs which I am unable to do as a Super Admin .... I've tried multiple browsers and have cleared cookies as well to no avail.... anyone ABLE to see the Google Analyitcs links on sub domain blogs while logged in as Super Admin?
Also, can someone clarify in detail what "Enable subdomain tracking" on the Options Page page does?
So everything seems to work well except that when logged in as a Super Admin, the Settings > Google Analytics link is hidden from me. If I login as an Admin (non Super Admin) for any sub-domain site on our install, I CAN view the link .... the issue is that many times I insert code for client blogs which I am unable to do as a Super Admin .... I've tried multiple browsers and have cleared cookies as well to no avail.... anyone ABLE to see the Google Analyitcs links on sub domain blogs while logged in as Super Admin?
Sorry, I should include this in the FAQ. Super Admins enter their code in Super Admin -> Options. All other users enter their code in Settings -> Google Analytics.
For your particular problem open the "google-analytics/ga-core" directory and edit ga-core.php. Change line 97 from: if ( current_user_can( 'manage_options' ) && !is_super_admin() )To: if ( current_user_can( 'manage_options' ) )
Also, can someone clarify in detail what "Enable subdomain tracking" on the Options Page page does?
Sub-domain tracking is usefully when you have ... sub-domains :). For example if you have "example.com" Google Analytics will track only activity on the root level domain. If you want to track "sub.example.com" you should Enable the sub-domain tracking feature.
Thanks for the explanation. Enabling Super Admins to see the settings > google analytics link on the other GA plugin for sub-domain sites seems to be pretty handy when working with client sites to help them insert their code or check to be sure they've inserted it correctly, any particular reason for hiding it from Super Admins in this version (async) of the plugin?
I'm thinking the downside of hiding the link outweighs any benefits (are there any?) there might be to showing the super admin the link ... ?? Am I missing something?
Gotcha on sub-domain option, there were a couple different ways I was reading that, so thanks for clarifying.
I am trying to set up tracking on multiple subdomains but they all use the domain mapping functions and rarely ever use the subdomain. Will this plugin track the traffic of the custom domains?
In the gogle docs/setup process it said to insert the below code to track different domains (even though they are also subdomains)...
We've enabled sub-domain tracking but tracking seems to have halted, we saw 14 hits total via GA yesterday, so something isn't right. The first new user to try to add his code after installing this plugin is also unable to have it verfied by Google after 24 hours as well.... here's what at client site has in the header, anything look wrong with it?
The only difference I can see between the code below and code from google is that google doesn't use parentheses like ( "UA-9xxx157-1" ), they use ( 'UA-9xxx157-1' ) and the addition of _gaq.push(['_setAllowHash', false]); .....
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', "UA-9xxx157-1"]);
Thanks. Also, for what it's worth.... just created test analytics account and unable to verify with Google, switched back to other non async WPMU Google analytics plugin and no issues verifying ....
I wanted to give it some time to show some tracking stats for the mapped domains but time does not heal all issues. Currently the plugin doesn't seem to track mapped domains. Is this a functionality shortage or error on the google side or with this plugin? The domains are bverified and I can see the tracking code but they are not being tracked properly.
I have the same exact question as rsisales. What is the proper way to install the code? In my case, all of the subdomains will be using domain mapping plugin. As of now, all I get is a the little clock telling me the tracking has been installed, but no data is being transfered. It has been 3 days now.
Responses (28)
Founder & CEO — 1st October 2010 (1 year ago) #
I should also note that this is *not* backwards compatible for pre 3.0 releases - I just found that out for myself ;)
Member — 1st October 2010 (1 year ago) #
Does this have a problem with Firefox?
Many Google Analytics sites are having problems loading when using Firefox.
Lead Developer — 1st October 2010 (1 year ago) #
I think that was a bug in an recent older version of firefox.
Member — 15th October 2010 (1 year ago) #
Very, very awesome. Thank you!
Member — 15th October 2010 (1 year ago) #
It outputs the code in the head instead of the footer?
Lead Developer — 15th October 2010 (1 year ago) #
Thats how the new GA code is supposed to go.
Member — 18th October 2010 (1 year ago) #
Where do site admins (not super admins) go to add their UA code to their site? It used to be under Settings > Google Analytics, but I can't find it anymore.
Developer — 18th October 2010 (1 year ago) #
@nickd32 Super Admins enter their code in Super Admin -> Options. All other users enter their code in Settings -> Google Analytics.
Member — 21st October 2010 (1 year ago) #
If I switch from the old GA plugin, will users have to re-enter their GA code? or will it transfer over? (multi-site)
Member — 21st October 2010 (1 year ago) #
How can I translate this plugin. What should be the name of the .mo file and where do I put it?
Developer — 21st October 2010 (1 year ago) #
@gregfielding The new version uses slightly different option entries, so the old records won't work on the new version.
@cfricks The localization is planned for the next version, for the time being you can translate it directly in the code ( there are a few sentences for translation in total ).
Member — 29th October 2010 (1 year ago) #
@Ivan I'd love to see a script to copy over old records
Sounds great! I'll test on a sandbox next week
Developer — 10th November 2010 (1 year ago) #
Google Analytics Version: 1.1.2 - Released!
@fuzu42 @gregfielding The current version copies over the old tracking codes to the new option entries. This is not thoroughly tested so I will appreciate your feedback whether everything works correctly.
@cfricks You can find the ".pot" file inside the "ga-languages" directory.
Member — 11th November 2010 (1 year ago) #
Maybe a dumb question, but presumably this still interacts with the Supporter framework, yes? Does it interfere with global tracking if you haven't network activated, or don't provide access to individual blogs?
Developer — 11th November 2010 (1 year ago) #
@peterkirn
Yes.
No.
Member — 28th November 2010 (1 year ago) #
So everything seems to work well except that when logged in as a Super Admin, the Settings > Google Analytics link is hidden from me. If I login as an Admin (non Super Admin) for any sub-domain site on our install, I CAN view the link .... the issue is that many times I insert code for client blogs which I am unable to do as a Super Admin .... I've tried multiple browsers and have cleared cookies as well to no avail.... anyone ABLE to see the Google Analyitcs links on sub domain blogs while logged in as Super Admin?
Also, can someone clarify in detail what "Enable subdomain tracking" on the Options Page page does?
Developer — 29th November 2010 (1 year ago) #
@Tracy
Sorry, I should include this in the FAQ. Super Admins enter their code in Super Admin -> Options. All other users enter their code in Settings -> Google Analytics.
For your particular problem open the "google-analytics/ga-core" directory and edit ga-core.php. Change line 97 from:
if ( current_user_can( 'manage_options' ) && !is_super_admin() )To:if ( current_user_can( 'manage_options' ) )Sub-domain tracking is usefully when you have ... sub-domains :). For example if you have "example.com" Google Analytics will track only activity on the root level domain. If you want to track "sub.example.com" you should Enable the sub-domain tracking feature.
Member — 30th November 2010 (1 year ago) #
Thanks for the explanation. Enabling Super Admins to see the settings > google analytics link on the other GA plugin for sub-domain sites seems to be pretty handy when working with client sites to help them insert their code or check to be sure they've inserted it correctly, any particular reason for hiding it from Super Admins in this version (async) of the plugin?
I'm thinking the downside of hiding the link outweighs any benefits (are there any?) there might be to showing the super admin the link ... ?? Am I missing something?
Gotcha on sub-domain option, there were a couple different ways I was reading that, so thanks for clarifying.
Member — 30th November 2010 (1 year ago) #
I am trying to set up tracking on multiple subdomains but they all use the domain mapping functions and rarely ever use the subdomain. Will this plugin track the traffic of the custom domains?
In the gogle docs/setup process it said to insert the below code to track different domains (even though they are also subdomains)...
Do I need to edit the plugin to accomplish this or will it work as-is?
Founder & CEO — 1st December 2010 (1 year ago) #
Hopefully it will work as is, can you give it a test and report back on any issues?
Member — 2nd December 2010 (1 year ago) #
We've enabled sub-domain tracking but tracking seems to have halted, we saw 14 hits total via GA yesterday, so something isn't right. The first new user to try to add his code after installing this plugin is also unable to have it verfied by Google after 24 hours as well.... here's what at client site has in the header, anything look wrong with it?
The only difference I can see between the code below and code from google is that google doesn't use parentheses like ( "UA-9xxx157-1" ), they use ( 'UA-9xxx157-1' ) and the addition of _gaq.push(['_setAllowHash', false]); .....
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', "UA-9xxx157-1"]);
_gaq.push(['_setDomainName', ".leadpress1.com"]);
_gaq.push(['_setAllowHash', false]);
_gaq.push(['_trackPageview']);
var _gaq2 = _gaq || [];
_gaq2.push(['_setAccount', "UA-1xxx301-2"]);
_gaq2.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Developer — 2nd December 2010 (1 year ago) #
@Tracy I will look into it and get back to you.
Member — 2nd December 2010 (1 year ago) #
Thanks. Also, for what it's worth.... just created test analytics account and unable to verify with Google, switched back to other non async WPMU Google analytics plugin and no issues verifying ....
Member — 29th December 2010 (1 year ago) #
I wanted to give it some time to show some tracking stats for the mapped domains but time does not heal all issues. Currently the plugin doesn't seem to track mapped domains. Is this a functionality shortage or error on the google side or with this plugin? The domains are bverified and I can see the tracking code but they are not being tracked properly.
A sample mapped domain is http://www.bashabearsfootball.com it's subdomain is bashafootball.americanyouth.com
Please advise...
Member — 22nd February 2011 (1 year ago) #
I have the same exact question as rsisales. What is the proper way to install the code? In my case, all of the subdomains will be using domain mapping plugin. As of now, all I get is a the little clock telling me the tracking has been installed, but no data is being transfered. It has been 3 days now.
Please advise.
Developer — 22nd February 2011 (1 year ago) #
Hi rillc,
There is a new version of GA plugin available. Please update and report back whether you have your tracking working.
Member — 4th March 2011 (1 year ago) #
It has been several days and I still can't get any results. GA shows that data is being received but I am not getting any results. Please help.
Developer — 8th March 2011 (1 year ago) #
Please update to version 1.1.8. Thanks.
Become a member