1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.
  2. Better Analytics for WordPress Get It Free

Google Analytics Code : Out Of HTML tag or body...

Discussion in 'Google Analytics' started by nikjem, Dec 19, 2011.

  1. #1
    Hello Webmasters, I putted Google Analytics Code to My All the pages of My website page.. fibre2fashion.com/wabetsy/products.asp

    But By mistakes I putted Analytic code at the starting of page, or Out of Html body...

    Its like

    Will Google can track this page.. ???? Or Analitics code must be into <body> or <head> tag???

    Thanks and regards...

    Nik
     
    Last edited: Dec 19, 2011
    nikjem, Dec 19, 2011 IP
  2. roxanne_ross

    roxanne_ross Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It better if you add analytic code before </body> tag...
     
    roxanne_ross, Dec 21, 2011 IP
  3. Antix

    Antix Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    We expect our game www.dostm2.com :)
     
    Antix, Dec 21, 2011 IP
  4. MattewHayden555

    MattewHayden555 Peon

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    MattewHayden555, Dec 21, 2011 IP
  5. webmaster

    webmaster Active Member

    Messages:
    189
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #5
    No. It won't track at all.
     
    webmaster, Dec 23, 2011 IP
  6. silent_drakula

    silent_drakula Peon

    Messages:
    70
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i putted analytic code before </body> tag and its working
     
    silent_drakula, Dec 26, 2011 IP
  7. roxanne_ross

    roxanne_ross Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I checked your webpage and you did small mistake. You have added the code on the <td> tag. You have add them on before </body> tag like :

    </table>
    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-47........']);
    _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);
    })();

    </script>
    </body>

    Hope you get what i m trying to say...
     
    roxanne_ross, Jan 3, 2012 IP
  8. robinraj

    robinraj Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    always use GA code before </body> tag. if you past Ga code another place in page so Google unable to track this code...
     
    robinraj, Jan 4, 2012 IP
  9. spymobiles

    spymobiles Peon

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Its simple dude. pit if before the ending of body tag and it works.
    Thanks
     
    spymobiles, Jan 13, 2012 IP
  10. tessori

    tessori Peon

    Messages:
    139
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    HI.
    No Google will not track it but its better to put analytic code before body tag. It will be good for your site.
     
    tessori, Jan 17, 2012 IP
  11. stella_j

    stella_j Peon

    Messages:
    84
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #11
    stella_j, Jan 17, 2012 IP
  12. JohnAadams

    JohnAadams Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    According to Google you can past this code before </head> or </footer> . According to me you should paste the code ta head part because when Google crawl the website its will see the analytic code at start.
     
    JohnAadams, Jan 17, 2012 IP
  13. trishia

    trishia Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    yes, same here. i add my analytic before </body>, because i follow the analytic instruction in the web, i do not think they would crawl if you have placed it in the wrong side.
     
    trishia, Jan 17, 2012 IP
  14. afshari

    afshari Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    where can i put analytics code ? footer or header? which one in better?
     
    afshari, Feb 6, 2012 IP
  15. gaush007

    gaush007 Greenhorn

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #15
    The right way to insert the GA code is to insert it before the </head> tag. This really works. If you are still having any problems then just reply back.
     
    gaush007, Feb 14, 2012 IP