Question:
What is wrong with my HTML code?
?
2011-01-27 12:27:10 UTC
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:




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.
Four answers:
anonymous
2011-01-27 15:57:48 UTC
Your First 10 HTML Tags



Just starting out with HTML? Here are 10 essential HTML tags that you'll need to know when building your web pages. If you learn how these 10 tags work then you'll have enough knowledge to put together a basic page.



http://www.elated.com/articles/first-10-html-tags/



5 Great Resources To Learn How To Code: http://www.makeuseof.com/tag/5-great-resources-learn-code/



Why Validate?: http://validator.w3.org/docs/why.html

CSS Validator: http://jigsaw.w3.org/css-validator/

HTML Validator: http://validator.w3.org/#validate_by_uri+with_options



Ron
Semper VI
2011-01-27 20:36:02 UTC
David,



You can really paste that javascript snippet anywhere on your page you like. Typically I put them in my footer of my page just because I want my stuff to load before any google analytics takes place - it's a performance thing. So long as google analytics gets the ping (pasting that code does the ping) - it does not matter where you put it.



Putting the JavaScript in the head is merely a suggestion but the script will parse/run anywhere within reason on your page
Stephen W
2011-01-27 20:32:10 UTC
If your page has no closing head tag then the page is not written properly. You should have a html page with a head section followed by a body section like this:





google tracking code here





Website content here





See http://www.freewebtutorial.co.uk if you're still stuck.
anonymous
2011-01-27 20:30:32 UTC
paste


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...