Analytics
Getting data from a profile
foreach (AnalyticsDataRow row in data.Rows) {
// Get the date (both calls give the same result)
string date1 = row.GetString(AnalyticsDimension.Date);
string date2 = row.GetString("ga:date");
int visits = row.GetInt32(AnalyticsMetric.Visits);
int pageviews = row.GetInt32(AnalyticsMetric.Pageviews);
// Almost as before, but cell is now an object rather than a string
foreach (AnalyticsDataCell cell in row.Cells) {
Console.Write(cell.Value.PadRight(32));
}
Console.WriteLine();
}