}
public JSONObject getProfileMetrics(String profileId) throws IOException {
String formattedToday = DATE_TIME_FORMATTER.print(new DateTime());
Analytics analytics = initializeAnalytics();
GaData data = analytics.data().ga()
.get("ga:" + profileId, formattedToday, formattedToday, "ga:visitors,ga:newVisits")
.execute();
if (CollectionUtils.isEmpty(data.getRows())) {
return null;