Bookmark Topic Watch Topic
  • New Topic

Google Analytics using Java

 
Isaac Ferguson
Ranch Hand
Posts: 922
2
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi everybody,

what way could I retrieve data from Google Analytics using Java?

Many Thanks,
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
Angus, it's bad form to post a follow-up question without replying to Steve's response on this earlier thread.

To repeat Steve's response, equally applicable here:
Steve Luke wrote:The first question would be to see if it is legal. Check out the Google terms and conditions and see if you are allowed to use their system this way. And in your research you might also look to see if they have an API you can use to interface with their application - making your work a whole lot easier.

 
Panagiotis Kalogeropoulos
Rancher
Posts: 99
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Report post to moderator
Google has released apis for many languages to retreive and/or modify data from Google Analytics, including Java. One good way to start is by using the Core Rreporting api. See here for more information:
https://developers.google.com/analytics/devguides/reporting/core/v3/
 
Isaac Ferguson
Ranch Hand
Posts: 922
2
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi everybody,

the case is:

I access well:

oauthHelper.getUnauthorizedRequestToken(oauthParameters);

String accessToken = oauthParameters.getOAuthToken();

Then here the user authorize, in order to access their data.

oauthHelper.getRequestTokenUrl(), here I would have to retrieve the parameter from the browser? Sorry I am a little confuse.

Any tip, please?

Many Thanks,





 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
I think it'd be best to continue any discussion in the other topic.
 
    Bookmark Topic Watch Topic
  • New Topic