File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Java retrieving values from GAnalytics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Java retrieving values from GAnalytics" Watch "Java retrieving values from GAnalytics" New topic

Java retrieving values from GAnalytics

Isaac Ferguson
Ranch Hand

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

I am getting data from my DB using Java. After that I use Javascript in order to send my values (using variables) to GAnalytics. That's working already, but what would happen if I want retrieve data from GAnalytics using his API and show it in my *.jsp?

Is that possible? Where that data is stored? For example if I create a custom variable in GA and using his API retrieve the result to my *.jsp, or for example, if I have in my app the GA javascript code which send the number of visitor to GA. Could retrieve that value from GA and display it in my front ent using Jquery Flot?

Many Thanks,

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
GA has no API to retrieve all the data you send to it. You can get at some of the summarized report via what little API it does have:
Isaac Ferguson
Ranch Hand

Joined: Jun 22, 2012
Posts: 751

if for example I send a variable with value "Male" and in GAnalytics I customize it. For example:

custom var 1 containing "Gender"

custom value1 containing "Male"

If the result of this is that there are 30 males. Could I retrieve that custom variable result value using GA API or Java or in other way and show the result in my *.jsp?

Many thanks
I agree. Here's the link:
subject: Java retrieving values from GAnalytics
It's not a secret anymore!