Closing Head Tag

Hi I need to put my Google Analytics tracker before the ‘closing head tag’ but I don’t see one…

Do you think what I have done is right? Thanks


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd”>

<html xmlns=“http://www.w3.org/1999/xhtml”>
<head>
<title>Ubereadoolische</title>
<meta http-equiv=“Content-Type”
content=“text/html; charset=Utf-8”/>
<link href=“style1.css” rel=“stylesheet” type=“text/css”/>
</head>
<body>
<div id=“header”>
<div id=“sitebranding”>
<h1>Ubereadoolische</h1>
</div>
<div id=“tagline”>
<p>Meeting point for the underground house scene in Reading</p>
</div>
</div> <!-- end of header div –>
<div id=“navigation”>
<ul>
<li><a href=“home.html”>Home</a></li>
<li><a href=“events.html”>Upcoming Events</a></li>
<li><a href=“djs.html”>DJs</a></li>
<li><a href=“clouds.html”>Clouds</a></li>
<li><a href=“record label.html”>Record Label</a></li>
<li><a href=“photo galleries.html”>Photo Galleries</a></li>
<li><a href=“club reviews.html”>Club/Event Reviews</a></li>
<li><a href=“music reviews.html”>Music Reviews</a></li>
<li><a href=“inspirations.html”>Inspirations</a></li>
<li><a href=“contact us.html”>Contact Us</a></li>
<li><a href=“message board.html”>Message Board</a></li>
</ul>
</div> <!-- end of navigation div –>
<div id=“bodycontent”>
<h2>Welcome to Ubereadoolische</h2>
<p><img src=“C:\Users\James Winfield\Desktop\Ubereadoolische\images\cdjs.jpg” class=“feature” width=“300” height=“220”
alt=“Music comes out of these”/></p>
<p>The new home page to promote local underground house/techno/disco events, and their
representative local DJs and producers.</p>
</div> <!-- end of bodycontent div –>

&lt;/body&gt;

<script type=“text/javascript”>

var _gaq = _gaq || ;
_gaq.push([‘_setAccount’, ‘UA-28801604-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>
</html>

[COLOR=#464646]<html xmlns="http://www.w3.org/1999/xhtml">[/COLOR]
[COLOR=#464646]<head>[/COLOR]
[COLOR=#464646]<title>Ubereadoolische</title>[/COLOR]
[COLOR=#464646]<meta http-equiv="Content-Type"[/COLOR]
[COLOR=#464646]content="text/html; charset=Utf-8"/>[/COLOR]
[COLOR=#464646]<link href="style1.css" rel="stylesheet" type="text/css"/>[/COLOR]
[B][COLOR=#464646]</head>[/COLOR]
[/B][COLOR=#464646]<body>


[/COLOR]

You can place Javascript anywhere on the page. Many see it as good practice to put such scripts before the closing body tag, and I see you already have a script down there so you might as well place your Google script into that area too. :slight_smile:

Thanks, sorted it :slight_smile: