This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Java retrieving values from GAnalytics  RSS feed

 
Ranch Hand
Posts: 1262
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • 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: 42974
76
  • Mark post as helpful
  • send pies
  • 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: 1262
3
Java Netbeans IDE Spring
  • Mark post as helpful
  • send pies
  • 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
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!