0

I'm currently using this regex to grab a pageviews report for a certain segment of my site:

ga:pagePath=~^/cr/[a-zA-Z_0-9-]*\/*$

This returns all the pages under /cr to one level so it'll find /cr/somename and not /cr/somename/photos. The first level (somename) is all I want.

In the pageviews report, it breaks down separate numbers for results with or without trailing slashes:

/cr/somename/ 12 
/cr/somename 4
/cr/othername 2
etc.

Is there anyway in the API to combine the results so that the report will give me a combined pageviews of 16 for /somename or will I have to handle this addition in my code?

4

1 回答 1

0

没有办法要求 API 合并并返回结果。你必须自己处理这个问题。

于 2013-11-03T19:15:16.383 回答