homepage Welcome to WebmasterWorld Guest from 54.211.190.232
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
Google Analytics sub domain tracking not working
What to set the web property to for subdomain tracking to work
KenBarlow




msg:4459056
 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.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved