wood burning stoves*
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
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Google Analytics using Java

Isaac Ferguson
Ranch Hand

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

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

Many Thanks,
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

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
Rancher

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:
https://developers.google.com/analytics/devguides/reporting/core/v3/
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 331
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

Joined: Jan 10, 2002
Posts: 60782
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Google Analytics using Java
 
Similar Threads
google analytics java api - how to begin and master
Has "R" something to do with Google analytics?
Any demo wesbite to test google analytics ?
Extra cookies are creating by default
Where to ask about Google analytics and Java?