Tell HN: Subdomains and Google Analytics don't mix
We're completely reworking that site and so I finally got around to tackling the analytics problem.
Apparently analytics is not playing nice when you give your users subdomains. It's 'debatable' whether this is expected behaviour or it isn't, but analytics seems to interpret every user visiting a part of the main site from a subdomain as an 'external visit' and every visit of a users page from main site as a bounce!
Also all the uniques and visits are double counted, and if a users visits more than one subdomain the situation gets worse.
I was planning to get rid of the subdomain scheme for different reasons (the extra dns lookup slows down the user when moving between pages) and I'm happy to report that the analytics statistics are now much more in line with the log files.
So, if you have a huge discrepancy in your logs versus your google analytics statistics and you are using subdomains, this is probably happening to you too!