Adding google analytics code to dashboard

Permalink
I have added the google analytics code to the code tracker box in the dashboard, then saved, closed out. Went out to a google, yahoo visited my site but did not see any results of visits or other data in google.

Any suggestions?

I'm using the Business theme.

Thanks

This is the code i pasted in:

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21765761-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>

View Replies: View Best Answer
myFullFlavour replied on at Permalink Best Answer Reply
myFullFlavour
Could be two things:

1) The theme doesn't for some reason include the code that is needed to input what you entered through the dashboard (likely)

2) The theme does include it, and it's in the footer, and Google has gotten nasty about wanting it's tracking code in the header.

Solution:
Get into the theme folder and drop the code into the header of the theme. If you aren't comfortable doing this, post a job on the job board.