简体   繁体   中英

Google Analytics not tracking a Wordpress directory

Just wondered if there is a known issue with GA having trouble tracking a site which has a Wordpress directory?

It seems to be able to track all of my other pages on the site, but we have a /news/ directory which is powered by Wordpress and it doesn't pick this up at all. It is obviously an issue with the fact that this directory is a Wordpress blog, but there must be a way to track it with all of the other pages.

Aaahhh... Sounds like the google analytics tracking code is present on your main site pages, but is not included in the wordpress template that's applied to that sub-section of your site.

The GA tracking code must be visible to google on every page you want to have tracked.

Try 'View Source' in your browser, and check wether the analytics tracking code is present.

If not, you could hard-code the GA tracking code in, or use one of the free WordPress Plugins to do it for you, like 'Google Analytics':

http://wordpress.org/extend/plugins/googleanalytics/

Hope this helps - post back if you're still having problems!

Rick

It may not be related, but did you check if your blog is indexable? Under Settings -> Privacy you can check if its enabled.

Another option is to install a google analytics plugin for the blog. If you enter the same credentials from your already-in-use GA it should be combined. I'm using this one on my blog and its working.

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