Q&A: What is wrong with my HTML code?

Question by David: What is wrong with my HTML code?
I am trying to make my web site visible when people are searching with google. Google Analytics provided me with this code to put on each page of my site immediately before the closing tag:

var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-21020395-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);
})();

Unfortunately, there is no “closing tag” in my code for my site:

We make it a priority to provide customers with quality used products at competitively low prices. Most of our products include used golf balls, used baseballs, used tennis balls, and used softballs. None of our golf balls are refurbished; we wash our golf balls either by hand or with the help of appliances at local golf clubs. We guarantee satisfaction and will work with any customer that is unhappy with our products. 

Under the “Link to eBay Page- Items”, you will find a description of the three possible transactions. Most of our sales are done on eBay; however, we are now open to any custom transactions. Usually, we sell golf balls by 120-ball groups, 100-ball groups, 72-ball groups, 36-ball groups, or 12-ball groups. For baseballs, we typically sell groups of 30. With tennis balls, 100-ball groups or 50-ball groups are our standard.  But we will accommodate any amount that suits you, and then adjust the price accordingly.

Can someone please tell me how I can insert the code that Google Analytics gave me.
My site is: sites.google.com/site/MDDiscountGolfBalls, which may explain the incomplete code. I am not familiar with any of the HTML coding, I just want to place that javascript/code into my site, but no matter where I put it, it does not work. I even tried reformatting it with then then the tracking then , then , my current code, , then and kept going like Stephen W advised, but it did not work.

Best answer:

Answer by Brandon
paste

Know better? Leave your own answer in the comments!

Get the book now