rynop All American 829 Posts user info edit post |
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 |
mellocj All American 1872 Posts user info edit post |
I just set this up a few weeks ago for someone
setup your site in analytics they will give you 1 tracking code put that same tracking code on all of your pages (pears and apples) then go to your analytics homepage add new website profile (called pears) Add a Profile for an existing domain click Finish then click Edit under settings for your new profile under Filters Applied to Profile, click Add Filter Add new Filter for Profile filter name: pears filer type: include only traffic to a subdirectory subdirectory: ^/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 |