Q&A: What is wrong with my HTML code?
by infomatique
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.
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
Best answer:
Answer by Brandon
paste
Know better? Leave your own answer in the comments!