Combine www and non-www hostname results?

457 views
Skip to first unread message

D-Rock

unread,
Nov 22, 2009, 11:10:29 AM11/22/09
to google-analytics-api - GA Data Export API
I've noticed that the API will report the ga:hostname results for
pages requested with and without the 'www' prefix as separate entries
in my top content report, essentially giving me duplicate entries.
However in the Analytics UI, there are no such duplicates.

Is there a way I can make a request that combines these before I get
the data, or do I have to request more results than I need, and then
filter it and combine it on my end?

Seems like it should be combined by default, since that's how the
Analytics reports use the data in the first place.

Nick

unread,
Nov 23, 2009, 12:55:08 PM11/23/09
to google-analytics-api - GA Data Export API
Hi,

By default GA only reports on the ga:pagePath dimension in the Top
Content report via the Analytics UI. So by default there shouldn't be
a www prepended anywhere in top content. To get the hostname in that
report one must add a profile level filter that combines hostname and
page path before GA processes the data.

So I suspect the profile level filter is merging the www and non-www
entries, something the API isn't doing for ga:hostname.

-Nick
Reply all
Reply to author
Forward
0 new messages