Analytics
2.7K members online now
2.7K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Google Analytics tracking code on your site is in the wrong location.

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Verification failed for http://example.com/ using the Google Analytics method (34 minutes ago). The Google Analytics tracking code on your site is in the wrong location. You can verify site ownership with the asynchronous snippet placed in the <head> section of your home page. 

 

However http://www.example.com is working fine. May I know what is the reason cause http://example.com fail to verify?

Google Analytics tracking code on your site is in the wrong location.

Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭

Hi Peifa,

Google says 

  • Put the tracking code in the <head> section, not the <body> section, of your page. If you do not, verification will fail.

So use different verification method or place GA snippets in head section in order to verify your website.

 

Thanks

Re: Google Analytics tracking code on your site is in the wrong location.

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
I place same code at same place for both www.example.com and example.com.
Question is how come only www.example.com success??

Google Analytics tracking code on your site is in the wrong location.

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

But where to put the verification code in my website? Is a Google's business site.