Dimension filter using ga:pagePath targeting a folder and enumerating the next level similar to Content Drill-down

243 views
Skip to first unread message

adwords+...@longtail.net.au

unread,
Jun 22, 2009, 6:10:30 AM6/22/09
to google-analytics-api - GA Data Export API, acol...@longtail.com.au, nta...@longtail.com.au
Hello,

We have implemented tracking code into our portal based web
application and for reporting need to be able to target a specific
content path and return a list of child paths with metrics but only
the next level deep, a treeview like behavior... Basically I need to
achieve what exists with the Content Drill-Down report in the
Analytics Web Interface where you can navigate into each folder and
see the top level stats for the next level of subfolders.

I have experimented heavily with the ga:pagePath dimension filter with
various expressions however am getting undesired results.

I do not wish to use something like "filters=ga:pagePath%3D@/PathTo/
TargetFolder/" which would return all paths beneath /TargetFolder/
recursively which we could parse externally and achieve the desired
results but this method is very expensive.

Is anyone able to point me in the right direction?

Cheers

Nigel

Nick

unread,
Jun 23, 2009, 12:47:29 PM6/23/09
to google-analytics-api - GA Data Export API
Hi Nigel,

Currently there is no equivalent of the content drill down report
through the API.

For small date ranges, you could pull all the pages and do your own
roll up.
For larger date ranges, I think your filter method might be the best.
What you can do is instead of requesting all of the rows, just return
1 row and use the data feed's aggregate table to request the totals
for the matched metrics. This saves some bandwidth, but still you need
to go through each row.

Otherwise this is an open feature request. If people want this, let us
know.

Cheers,
-Nick

ShoreTel

unread,
Jun 25, 2009, 10:07:28 PM6/25/09
to google-analytics-api - GA Data Export API
Since the "filter=" supports regular expressions, could you use
something like:

/path_to_folder/[^/]+/

Which would only include URL's one level deep. Or are you looking to
aggregate ALL the URL's below that level into one line item.
Reply all
Reply to author
Forward
0 new messages