Google Analytics for Concrete5 (It won't work)

Permalink
Hello

I would like to install Google Analytics on a Concrete5 (5.4.1.) Website.
I put the Google Analytics tracking code in the Dashboard under (Tracking Code).
But it but it doesn't work.

my tracking code:

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_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);
})();




Can anybody help me?

Thanks!!
View Replies:
EmeraldStar replied on at Permalink Reply
EmeraldStar
I'm sure you probably figured this out by now. But just in case you haven't, I had the same problem.

The forum tells you to add a line of code to the footer in addition to the code in the dashboard. Just do a search for Google Analytics Doesn't Work for that line of code- but that didn't work for me.

What DID work was when I *only* put the analytics code in the header file. For the specifics click here:
http://www.concrete5.org/community/forums/customizing_c5/google-ana...