Analytics
2.7K members online now
2.7K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

Filter by Site Map Tree Branch

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

My organization has scheduled emails set up for the various departments that are represented with their own "sub site" within our main website.  These emails report on those pages specifically under the "umbrella" for that department.  Our old website had these "sub sites" set up as essentially subfolders, i.e. http://[site domain]/[dept name], so the filter for each report was the [dept name].  With a new website vendor, this organizational structure has changed.  Now we have a site map that is organized by each department, but every single page is organized as http://[site domain]/[page index number]/[page-title].  Every page has a numeric ID, in no particular order, so that Department A could have pages 123, 456, 789, etc. and Department B could have pages 234, 567, 789, 012, etc.  We have over 40 different departments in that site map so specifying every page in the filter for each of those 40+ reports would be time-consuming and hard to maintain as they add, move and delete pages.  Is there any way to set up view filters in Google Analytics by it's hierarchical location in the site map?  For example, if page 345 is at the third tier of the site map, can we set up a filter so page 345 and any child pages in the tree can be filtered into one report?  Does anyone have any ideas on how I can set this up?  Thank you.

1 Expert replyverified_user

Re: Fiilter by Site Map Tree Branch

[ Edited ]
Top Contributor
# 2
Top Contributor

Hi Spokane County,

Oh, I see - there is no way to handle these changing numbers. Do you maybe have department information in your page titles instead of your page URLs? If so, you might set up a content grouping with rule-set method [1] by using page-title definitions containing the department names. Content groupings are used to bundle pages together - they will be available in all page reports as alternative or as complement to page URLs.

Christoph

[1] https://support.google.com/analytics/answer/2853546?hl=en

Re: Fiilter by Site Map Tree Branch

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thank you for your response Christoph. Unfortunately I don't think that will work, because we don't have department information in the page titles. We have a CMS with over 1500 pages and the titles don't necessarily have the department name. If you want to see what I'm referring to, our website is www.spokanecounty.org. Look under Your Government in the top menus and go to Departments A-I or J-Z and pick one. Hmm, content grouping would be nice, but I just don't see how it'll work because there's no identification on the pages as to which department they are a part of, they just fall under the department in the site tree.
~Kirsten

Re: Fiilter by Site Map Tree Branch

Top Contributor
# 4
Top Contributor
Hi Kirsten,

okay - if you need that department information in your reports I think the next-best possibility is to actually add that department information into the page title and to proceed as given above. It should be straightforward to for your CMS team to add that second to last structure level to the page title without lengthening it too much. So, for example the title of page http://www.spokanecounty.org/852/Maintenance may read

Road Maintenance | Public Works | Spokane County, WA

instead of

Road Maintenance | Spokane County, WA

Now you could define a content group 'Public Works' by demanding that page titles contain ' | Public Works | '.

Christoph