in google analytics, what is 'ga:accountName' for ?
Posted
by Chez
on Stack Overflow
See other posts from Stack Overflow
or by Chez
Published on 2010-04-09T13:32:18Z
Indexed on
2010/04/09
13:33 UTC
Read the original article
Hit count: 267
google-analytics
|language-agnostic
In google analytics, what is 'ga:accountName' for ?
it might seem like a straightforward question but I can't find anywhere some documentation which tells me what ga:accountName is supposed to return.
if I run the google's code from the java example:
private static void getAccountFeed(AnalyticsService analyticsService)
throws IOException, MalformedURLException, ServiceException {
// Construct query from a string.
URL queryUrl = new URL(
"https://www.google.com/analytics/feeds/accounts/default?max-results=10");
// Make request to the API.
AccountFeed accountFeed = analyticsService.getFeed(queryUrl, AccountFeed.class);
// Output the data to the screen.
System.out.println("-------- Account Feed Results --------");
for (AccountEntry entry : accountFeed.getEntries()) {
System.out.println(
"\nAccount Name = " + entry.getProperty("ga:accountName") +
"\nProfile Name = " + entry.getTitle().getPlainText() +
"\nProfile Id = " + entry.getProperty("ga:profileId") +
"\nTable Id = " + entry.getTableId().getValue());
}
}
it does return my website.
can anybody help ? thanks
© Stack Overflow or respective owner