Please post any suggestions, feedback, or bug reports in the comments section of this page.
Download from WordPress.orgVery simple plugin for reliably inserting your Google Analytics tracking code on every page.
Description
This is a bare bones option for people who are looking to simply insert the basic Google Analytics tracking code into the head section of every page without any fuss.
I've only included the essential options; it's not very exciting, but works reliably.
Installation
- Download the latest zip file and extract the
super-simple-google-analyticsdirectory. - Upload the this directory inside your
/wp-content/plugins/directory. - Activate 'Super Simple Google Analytics' on the 'Plugins' menu in WordPress.
- Click 'Settings' underneath the plugin or navigate to Settings > Google Analytics and insert your GA tracking code and click the checkbox to turn it on.
- That's it.
Frequently Asked Questions
Can you add this feature I just thought of?
Possibly, I'm trying to keep this as simple as possible, but if it's a really useful/uncomplicated feature that I've omitted I will definitely consider it.
Screenshots

The bare bones options page.

Where to find your Google Analytics account number.

Source of the tracking code inserted just before </body>.

HI -
Sorry to bother you with this, but I’ve activated this plugin, and when I view the source code, I get this:
<!– Plugin: Super Simple Google Analytics Plugin URL: Super Simple Google AnalyticsYou’ve chosen to prevent the tracking code from being inserted on pages viewed by logged-in administrators.
I’m no developer I’m afraid, and have no idea what to do here, can you please offer some advice?
Thanks so much in advance, Adam
No problem Adam,
When you log in to the WordPress Dashboard (the backend where you write posts and such that the public can’t see), there is a tab on the left side titled “Settings”. Under that tab there should be a sub-menu item titled “Google Analytics”. It’s the settings page where you had to input your Google Analytics ID.
There should be a box titled “Track administrator hits?” It is unchecked by default. If you check this, than the code will be inserted on pages even when viewed by YOU when you are logged in as the administrator. If you want this to happen, check the box. Otherwise, if you logout of your WordPress account and check the source again, the regular tracking code should be there.
This option just exists so administrators aren’t counting their own visits. I hope this clears up the problem for you, if not, please let me know.
Thank You for all that you Do .. .trying out super simple Google Analytics 1.7
Glad you like it!
Hi there,
Hi there,
Ok so after you add your tracking code to the ‘Settings’ page – what happens next? - Do you not need to insert the code into every individual page of your site? - The text on my Editor page looks different to yours, so still not sure what to paste in? - Also how would you track all of the data – would you need to log back into your Google Analytics site or would the data be retained in your wordpress dashboard?
Sorry if these questions are silly but I’m completely new to this.
Many Thanks, Li
Hi Li,
You don’t have to paste anything in an editor, that screenshot is just of a page’s source code to show that the tracking code is inserted.
All you do is:
UA-#######-##) on the Google Analytics tab under the Settings section on your Dashboard.That’s it! It will take about a day for a new Analytics account to start reporting data. You can go to “View Source” in your browser to verify the tracking code is there, but that’s not necessary.
Hope this Helps
how google analytics help me to check my daily visitors on my site please reply fast
Is it best to place the google analytics before the header or before the body? What’s advantages of both?
Head makes sure the code is loaded, but may slow down your site a touch. Personally, I’d recommend putting it at the end of the body tag.
Hi there,
I set the plugin two days ago and I made everything that you wrote, but I can’t see “Google Analytics” code on pages of my site.
Please help me.
ohh, sorry:) I forgot to add between tags this line “wp_head()” in my template. The plugin works great.
Thanks
Glad you worked it out
Hi, I followed your settings yesterday to set up analytics for my site, How would I check the code has been inserted in my site,? where would I look for it?
Danny
Just wait 24 hours and see if you’ve got stats!
Hi there,
I used the Super Simple Google Analytics plugin & entered my GA tracking code. Upon viewing the page source I can see the code is there, however the old code is there as well. The new one is “UA-35232352-1″
Here is what I am seeing. Any assistance would be greatly appreciated!
!– Plugin: Super Simple Google Analytics Plugin URL: Super Simple Google Analytics –>
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-29236210-1']); _gaq.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); })();
I can’t really help you with this specifically, sorry buddy. I can tell you that most likely your Analytics code is either hard coded into your theme (probably the header.php file), of you have another Analytics plugin running along side this one.
All I can tell you with certainty is that my plugin is working. If you have the capability, do a search for the old code in the wp-content directory of the site. Should reveal the problem either way.
Hi, I just tested your plugin and I’ve got a question for you :
My web shop is “www.example.com”, and I’ve got also a WordPress blog at “blog.example.com” On GA, I recorded my domain and ticked the option “track subdomains”. When I activated this option, the script given by GA include some new arguments : _gaq.push(['_setDomainName', 'example.com']); _gaq.push(['_setAllowLinker', true]);
These arguments are not present in your plugin. How to integrate this new arguments ? One more question, where your plugin insert the GA script ? I cannot find it in the php pages of my theme
Thanks in adavnce
If you need to change the tracking code, just edit the SuperSimpleGoogleAnalytics.php file, it is plain text and you can use the plugin editor. You will see the big block of javascript that is the standard Google Tracking code.
As far as where the code inserts: it depends which insert option you’ve chosen for the plugin:
</head>, it will hook thewp_headtag in the header.php file of your theme.</body>, it will hook thewp_footertag in the footer.php file of your theme.thanks…
I just installed on http://www.volunteeringinnepal.org/ and it is working very well.
Well, it “simply” doesn’t work.
The google analytics page simply won’t load and tells me that: “Status: Tracking Not Installed Last checked: Dec 11, 2012 2:42:08 PM PST The Google Analytics tracking code has not been detected on your website’s home page. For Analytics to function, you or your web administrator must add the code to each page of your website. “
And yes, I entered the correct number. Checked it 3 times.
maybe a different name would be appropriate, as this plugin is clearly not for beginners.
best, Sean
…Did you check the option “
Insert tracking code?“?The other 50,000 beginners using it don’t seem to be having any problems.
This works so much better than the one I was using called “Simple Google Analytics”…could never get that one to work right, but the “super-simple-google-analytics” worked right away.
Thank you!
Our site has one page that gets a lot of traffic and swamps all other analytics data. This tends to skew all graphics, bounce rate, etc towards the one page. Is there a way to turn off the Analytics code for a single page. This is what we did when our site was hand coded (thank goodness we are not doing that anymore).
Thanks
Loren
I can make you a special version where you can disable tracking of individual posts or pages (probably using a custom field), but this is too complicated to be included in the default version. My prices are very reasonable if you want me to whip this up for you, let me know, plugins@shinraholdings.com
http://www.classipresstheme.com run the simple effective plugin,thanks!
Hi – I just installed your plugin today. When I look at my GA tracking info page, it says “Tracking Code Not Installed”. Do I just have to wait the 24 hours? I did add my GA tracking ID # and checked the insert tracking code box. DId I do anything wrong? Thanks!
Give Google some time to respider your page, tracking should begin within 24 hours.
What is the function of the first option (in red) “insert tracking code” ?
Its just a way to enable or disable tracking on all pages. I did it so you can temporarily disable tracking if you need to, or so you can mess around with the settings before you make the code live. I suppose its a little unnecessary in retrospect.
I added google analytics to my site and nothing is happening. I don’t see any activity whether negative or positive. Help!
Did you input your adsense id and check the box on the settings page to turn it on? If so, just wait a few hours.