the body of a webpage

Discussion in 'Digital Marketing' started by Dunn's, Aug 17, 2006.

  1. Dunn's

    Dunn's LawnSite Bronze Member
    Posts: 1,546

    what is the body of a webpage i is telling me to copy and paste the link before tha body of my page to track it?
     
  2. davevg

    davevg LawnSite Member
    Posts: 18

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="en-US">
    <head>
    <title>Dunns Lawn Service - Home</title>
    </head>
    <body>
    Here is the page body
    </body>
    </html>
     
  3. Dunn's

    Dunn's LawnSite Bronze Member
    Posts: 1,546

    Yea sorry still don't understand that computer language, but I did figure it out though thanks!
     
  4. WebMan

    WebMan LawnSite Member
    from D/FW TX
    Posts: 11

    Just curious...what is telling you that?
     
  5. Dunn's

    Dunn's LawnSite Bronze Member
    Posts: 1,546

    Click in the box below to select all code. Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to track. If you use a common include or template, you can enter it there. See Example


    But I don't know what it means and then it says something about if I have a template there is another way but I can't figure it out either.Any help appreciated
     
  6. davevg

    davevg LawnSite Member
    Posts: 18

    I am assuming you are referring to this:
    http://www.google.com/support/analytics/bin/answer.py?answer=26908&topic=7325


    How are you editing your HTML? Is it one of those free online sites, or do you upload the HTML to the webserver? Almost all tags on a web page are opened and closed. <body> is the open tag for the body container. </body> is the close tag.

    A common include template is used if you are using a scripting language to generate the html. (JSP, Java, Perl, PHP, etc..) For example, one of the websites I work on using Mason (A Perl based web-templating system), I have a common header and footer page which is "included" in all page request. This keeps all of the page layout information the same across pages all pages. So lets say for example, I wanted to make a change to the menu bar. I would make the change in 1 place and it will be changed on all pages that include that file. I wouldn't need to modify every page on my site.

    Back to your needs... So basically it is asking you to find the body close tag "</body>" in your html. Right before that paste the javascript specified.
    HTML:
    
    
    Ex.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="en-US">
    <head>
    <title>Dunns Lawn Service - Home</title>
    </head>
    <body>
    Here is the page body with a listing of your services
    Blah Blah Blah
    Blah Blah Blah




    <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
    </script>
    <script type="text/javascript">
    _uacct="UA-xxxx-x";
    urchinTracker();
    </script>
    </body>
    </html>
     
  7. Dunn's

    Dunn's LawnSite Bronze Member
    Posts: 1,546

    I'm going to see if I can find the html of my page but I am using Yahoo site builder if it matters so almost everything is drag and drop. Just in case I don't figure it out if you have any suggestions on how to do it with yahoo site builder I would greatly appreciate it. Thanks
     
  8. davevg

    davevg LawnSite Member
    Posts: 18

  9. Dunn's

    Dunn's LawnSite Bronze Member
    Posts: 1,546

    Thanks I tried that now too we will see if it worked tommorow I also clicked on the html link and put it in the head so we will see if that works I did that before you wrote and was gonna try what you said next. thanks again and good luck to me I will post an update tommorrow.
     
  10. Dunn's

    Dunn's LawnSite Bronze Member
    Posts: 1,546

    I'm not sure which one did it but it is working now thanks for the help guys.
     

Share This Page