I'm having trouble figuring out how to tag some pages with google analytics - wondering if anyone has done this before.I want to imbed some goog analytics javascript into my pages that help me track hits based on categories. I want to be able to generate a page, and put some analytics JS in there that I can then easily sum up and view via the analytics web console.example: i have 2 categories, apples+pears. on the pages /pears/view/2333 and /pears/view/4444 I want to imbed JS that says this page has to do with "pears". On the pages /apples/view/5555 and /apples/view/6666 I want to imbed JS that says page has to do with "apples".Then when I login I want to see a summary of all my categories, and the stats for each. Most importantly i want to be able to compare the number of hits vs another category. So in the grouping of "fruit" apples gets 60% pears get 40%. IS there a way to do this? i've seen bits and pieces in the AS doc but not exactly what i'm looking for.
8/13/2008 2:58:40 PM
I just set this up a few weeks ago for someonesetup your site in analytics they will give you 1 tracking codeput that same tracking code on all of your pages (pears and apples)then go to your analytics homepageadd new website profile (called pears)Add a Profile for an existing domainclick Finishthen click Edit under settings for your new profile under Filters Applied to Profile, click Add FilterAdd new Filter for Profilefilter name: pearsfiler type: include only traffic to a subdirectorysubdirectory: ^/pears/so to recap, your analytics code is the same for the whole domain. you then create a new website profile on the same domain and it uses a filter to only match certain subdirectories.
8/13/2008 5:23:46 PM
yup ... what he said.
8/15/2008 10:49:47 AM