How to get Daily wise data by passing single Start and End Date

219 views
Skip to first unread message

Thakur Vishal

unread,
Apr 27, 2012, 10:18:22 AM4/27/12
to google-analytics...@googlegroups.com
Hi Team,

When we pass Start Date as "2011-09-01" and End -Date as  "2011-09-30" we get the sum of all the data between this time range.
Is there a way to get the data daily wise by passing some  parameter i.e., if we pass
Start Date as "2011-09-01" and End -Date as  "2011-09-30" can we get the data for 2011-09-01,2011-09-02,.....separately but not as a sum.

I am using the following query
 
Get apiQuery = analytics.data().ga().get(
    TABLE_ID
,                       // "ga:" + Profile Id.
   
"2011-09-01",                   // Start date.
   
"2011-09-30",                   // End date.
   
"ga:visits,ga:pageviews");      // Metrics.

apiQuery
.setDimensions("ga:source,ga:medium");
apiQuery
.setFilters("ga:medium==referral");
apiQuery
.setSort("-ga:visits");
apiQuery
.setSegment("gaid::-11");
apiQuery
.setMaxResults(50);

Thanks and regards
T.Vishal


chris@shufflepoint

unread,
Apr 27, 2012, 10:55:26 AM4/27/12
to google-analytics-api - GA Data Export API
Just add the ga:date dimension
Reply all
Reply to author
Forward
0 new messages