If you use Google Analytics, you may occasionally wonder ... wouldn't it be nice to track separate sections of my web site (i.e. folders) as if they were their own independent web domains? While it is possible to code your web site with multiple unique Google ID's, if you wanted to uniquely track eight different folders you would be required to create eight Google ID's, and install that custom code on your web site (i.e. on each page you want to track). If you ever changed your mind due to the need for different analytics desires, you would need to recode with new ID's. Sounds messy, doesn't it?
Enter profile copy and paste. This is NOT a feature found via the normal Google Analytics dashboard. A few minor setup steps are required:
- Firefox is required due to script setup constraints
- Install Greasemonkey (a common Firefox add-in which enables scripts)
- Read the ROI Revolution Blog instructions (author profile copy/paste script)
- Browse to the Google copy/paste script
- Enable the script via Greasemonkey (see image given below)

Having installed the script, it's time to use its functionality! Navigate to your Google Analytics dashboard. The process could not be simpler: (images are given below ... click upon any image to maximize)
- Add a new profile to the Google ID which you wish expand tracking
- Click "copy" from the master profile
- Click "paste" to apply the master profile to your copy
- Create filters to make your copy track sections of your web
After reviewing these images, you'll find some instructions later on in this post about constructing optimal Google filters. My examples show I set up an "Include Filter" for my Legos and Nordic Skiiing categories of this blog. Here is a brief explanation of what the ROI script performs:
- An exact duplicate of your desired profile is created
- Use Google filters to create unique analytics
Step #1

--------------------------------------
Step #2
--------------------------------------
More on Google Filters
If you don't create some unique filters, your new profile is just a duplicate with exactly the same data. Here is the code I used to create my folder filters:
- Filter Name: Leisure
- Filter Type: Include (only tracks data meeting the constraint)
- Constraint: Request URI (i.e. web address)
- Code: ^/(nordic-skiing|legos)/
It's worth learning the Google Filter operators. Here is a Google Forum conversation on tracking multiple folders. In my own case, the expression is interpreted in this manner: Only record analytics data for the root domain folders, nordic-skiing OR legos.