google analytics is this code ok

Discussion in 'Google' started by mutley, Jul 6, 2008.

  1. #1
    hi i have just join google analytics and i got my javascript code it said to put it just before the </body> tag would the code still work where i have put it or must it go just before the end body tag

    <div id="footer">
    <p>Copyright &copy; 2008<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">

    </script>
    <script type="text/javascript">
    _uacct = "UA945945934853;
    urchinTracker();
    </script>
    sitenamr.com.</p>
    </div>
    </body>
    </html>
     
    mutley, Jul 6, 2008 IP
  2. lycos

    lycos Well-Known Member

    Messages:
    3,769
    Likes Received:
    176
    Best Answers:
    0
    Trophy Points:
    185
    #2
    You must always paste it immediately right before the </body> tag except when in special cases there are codes such as urchinTracker(), utmLinker(), utmSetTrans(), or utmLinkPost() above the </body> tag. If this true, then you must paste the Google Analytics Javascript above the codes.

    If not, follow the rules to place it before the </body>
     
    lycos, Jul 6, 2008 IP
  3. koushal

    koushal Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think the placement is right there is no need to change it
     
    koushal, Jul 6, 2008 IP
  4. alviother

    alviother Peon

    Messages:
    154
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    bcoz in my case i checked it worked only within body tag , do not embed in head, div, etc it will not work there
     
    alviother, Jul 7, 2008 IP
  5. mutley

    mutley Peon

    Messages:
    356
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    ok i have now added it to just before the </body> but it think it was still working where i had it

    but it seems it works best by the body tag :)
     
    mutley, Jul 8, 2008 IP
  6. vishvambposervices

    vishvambposervices Banned

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    no you have to take only script code from analytics and paste before closing body tag
     
    vishvambposervices, Jul 8, 2008 IP
  7. adamiscool

    adamiscool Banned

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    yes u do or it wont count the links under it.
     
    adamiscool, Jul 8, 2008 IP