Welcome to WebmasterWorld Guest from 107.20.110.201

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Google Analytics sub domain tracking not working

What to set the web property to for subdomain tracking to work

     

KenBarlow

3:31 pm on May 29, 2012 (gmt 0)



Hi,

I have a site www.example.com for which I have a Google Analytics account. I have always had the web property set to www.example.com.

Recently I wanted to extend this to track two subdomains from the same account. I regenerated the the tracking code accordingly, and added it to the main www site, and the two subdomain sites. The code was generated directly from the Google interface, so I did not manually edit the code. Updating to track subdomains seemed to add an extra line so:

_gaq.push(['_setDomainName', 'example.com']);

The web property was not changed, so it still has the "www." on the front of it. Should I take the www. off the web property to track subdomains?

My problem is, when I view visited pages in google analytics, the URL of each page starts with a '/', so something like /index.html So the URLs don't include the subdomain, as per www.index.html, so I cant see how I can view pages that start subdomain.example.com/index.html.

If I search for pages that include subdomain.example.com, then I get a few hits with strange re-written/re-directed URLs, but only a handful whereas I know there should be thousands.

The online help just says "set the web property to the web site", but it is not clear as to what example it should be set to when subdomains are tracked too.

Any idea what I might be doing wrong? Thanks.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month