简体   繁体   中英

Google Analytics tracking code has not been detected on your website's home page

I installed Google analytics on my localhost and I am able to see the activities of the visitors on the real-time beta part but I am not able to see any report on the standard report part . Also on my account "The Google Analytics tracking code has not been detected on your website's home page" is shown.

Where is the problem here?

The "detection" mechanism crawls your site to see if it can find the code. It's a courtesy feature, applicable to very basic usages only.

But, it can't access your localhost (since its not available to its crawlers; it's trying to crawl whatever domain you have configured as your account's domain.

The regular reporting in GA is not in real time. It might take some time. Assuming you haven't manually set any incorrectly configured profiles, if your data is appearing in Real Time, it will eventually show up in Standard Reporting.

PS: Be sure to set the date selector to today's date; by default, GA shows data from 30 days ago until yesterday.

检查您是否已将Google Analytics提供的脚本放在主页的标头标记内

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM