• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java retrieving values from GAnalytics

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,

Cheers!
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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: https://developers.google.com/analytics/devguides/
 
Angus Ferguson
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic