Google Analytics code Not working
-
Hi,
First I need to thank you for the very good theme. I love it very much.
I have registered on Google Analytics. This is my tracking id :UA-32939519-1 and I got my tracking code
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-32939519-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);
})();
</script>I want to display the analytics information on the footer of my homepage. I have installed Google Analytics Plugin and all in one SEO pack.
I tried with all the options. Even I tried in Graphene GA options as well. But still not working. Please help.
What I am doing wrong??
Thanks
Ragavan
When did you add Google Analytics code? Make sure it is there in the head section of your page. (view page source). If it is there, wait 2-3 days and you’ll see stats in GA dashboard.
Don’t believe what GA says about the presence of Analytics code in your site. This is what it says for my site. “Analytics code not found. Last checked December 31 1968” ๐
I added two days before in Google Analytics Plugin. Tell me one thing which Plugin I need to use. Shall I just use Graphene options GA place?
Yes in head section my GA code is there
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<title>All about Excel and VBA</title>
<link rel="pingback" href="http://www.snatchexcel.com/xmlrpc.php" />
<link rel="alternate" type="application/rss+xml" title="All about Excel and VBA รยป Feed" href="http://www.snatchexcel.com/?feed=rss2" />
<link rel="alternate" type="application/rss+xml" title="All about Excel and VBA รยป Comments Feed" href="http://www.snatchexcel.com/?feed=comments-rss2" />
<script type="text/javascript">//<![CDATA[
// Google Analytics for WordPress by Yoast v4.2.3 | http://yoast.com/wordpress/google-analytics/
var _gaq = _gaq || [];
_gaq.push(['_setAccount','UA-32939519-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);
})();
//]]></script>I am really confused.
If you want to access stats within WordPress admin, go for a plugin. Else, just put the Analytics code in Graphene options. What are your requirements?
I was just trying to make analytics stats like Joshlobe website. So which one I need to use? What if I use Graphene and Google Analytics plugin. How can I display Analytics stats on footer just like Joshlobe??
I don’t think Josh is using Google analytics for footer stat widget. He is probably using a wordpress statistics plugin. Josh will be here soon. Let’s see what he says.
Josh! Where are you? :p
Mod
I think he’s using this one:
Mod
Update:
That is the one he’s using. I just installed it my own blog.
Excellent Kenneth. Thanks very much for your quick help.
Prasanna,
Now my GA code is still under Graphene options. Where can I see this in my website. It is more than two days. Still GA is not at all appearing on my website ๐
Admin
Here’s what I think is happening.
Google Analytics depends on Javascript, and there seems to be a few javascript errors on your website.
ReferenceError: jQuery is not definedThis error is caused by the g-auto-hyperlink plugin, which is loading its before jquery has been loaded, causing that error.
Then there are a couple of this error:
"NetworkError: 400 Bad Request - http://fonts.googleapis.com/css?family="which is probably caused by the Google Fonts plugin you’re using. Try deactivating both plugins and see if it helps.
Viewing 10 posts - 1 through 10 (of 15 total)
- 1
- 2
- You must be logged in to reply to this topic.
