File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes  Google Analytics using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

Google Analytics using Java

Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 756
Hi everybody,

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

Many Thanks,
Darryl Burke

Joined: May 03, 2008
Posts: 5115

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.

luck, db
There are no new questions, but there may be new answers.
Panagiotis Kalogeropoulos

Joined: May 27, 2011
Posts: 99

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:
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 756
Hi everybody,

the case is:

I access well:


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

Joined: Jan 10, 2002
Posts: 63873

I think it'd be best to continue any discussion in the other topic.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Google Analytics using Java
It's not a secret anymore!