Google webmasters tools: validation with google analytics code

  • Anonymous



    First, thanks for this nice theme !

    I am using graphene 1.1.2 where I have activated the code for google analytics. The javascript code is automatically put before the closing body tag for performance reasons.

    For the moment, the validation of a site for google webmaster tools fails because it does not find the google analytics code in the head. If I move the php code concerning google from footer.php to header.php then the validation is successful.

    As the google analytics code is asynchronous, there should be no penalty anymore if it is put in the head tag. What do you think?

    Thanks a lot!


    Syahir Hakim


    Hurm..I wasn’t aware of this change by Google.. Thanks for the heads up!

    However, I’m a bit concerned about moving it to the <head> element for the theme now, as I’m sure a lot of people are still using the older version of the tracking script. This will cause them performance setback if I move the code to the <head> element and they don’t update their script.

Viewing 2 posts - 1 through 2 (of 2 total)

  • You must be logged in to reply to this topic.