Tracking subfolders with Google Analytics

27 07 2007

So I was setting up Google Analytics for a client. The client’s site has one main landing page and from there goes to 4 subfolders that each contain a new site. Naturally, the client wanted to be able to track these subfolders separately. So I went through Analytics and found the “Filters” section. Perfect, you can filter your results to only show traffic to a subdirectory. So I set them up and waited the required 24 hours for data to come in. And…nothing. So I did some more poking around and couldn’t find any reason why they wouldn’t be working. On a hunch, I put the javascript tracking code into the homepage of one of the subfolders I wanted to track. Waited the 24 hours, and presto! I was getting good data. It turns out that you have to put the tracking code into each homepage that you want to track. No word on this in the documentation, but hey, it’s free!


Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.