6 replies
  • SEO
  • |
Why we can't place google analytics code in the starting of body tag?
#analytics #google
  • Profile picture of the author irawr
    Banned
    Originally Posted by davidmillernyc View Post

    Why we can't place google analytics code in the starting of body tag?
    You can put it wherever you want.

    The reason it's suggested to put it before the end of the closing body tag is in the case the page doesn't completely load, that will cause less BS data.

    Wherever you put it, just make sure the placement is consistent for that site or the data might look strange.
    {{ DiscussionBoard.errors[10674006].message }}
  • Profile picture of the author John Peter
    If you're website build with Wordpress. Just install Tiny Google Analytics Plugin.. No need Coding.. You have to place your GA ID
    {{ DiscussionBoard.errors[10674619].message }}
  • Profile picture of the author CreativeDreamrz
    According to the guidelines Analytics code insert in the website's header!
    {{ DiscussionBoard.errors[10675323].message }}
  • Profile picture of the author khusi89
    Google analytics code is generally used on site header or footer part. You can put it wherever you want.
    {{ DiscussionBoard.errors[10675416].message }}
  • Profile picture of the author MattXL
    Hi David,

    Are you seeing an error or are you just wondering?

    Matt
    {{ DiscussionBoard.errors[10677832].message }}

Trending Topics