Using GA Data Export API (Java client) behind a firewall

369 views
Skip to first unread message

Erik Norvelle

unread,
Jul 16, 2009, 9:43:52 AM7/16/09
to google-analytics-api - GA Data Export API
Greetings,

I've built a Java program that uses the Google Analytics Java client
(the AnalyticsService class) in order to connect to Google Analytics
and retrieve data.

Currently it works just fine, but I will soon have to deliver the
application to the client, whose entire network runs behind a
firewall. I have searched the API documentation and online forums in
order to find out how to tell the AnalyticsService object to use a
given firewall to connect, but I have not found any information.

Note that the proxy in question is just a standard forwarding proxy,
with no authentication required.

Does the AnalyticsService object check to see if a system proxy has
been set and adjust accordingly, or does it assume that all
connections are direct (unproxied)? If the latter, how can I tell it
to use the standard system proxy values?

Thanks!
Erik Norvelle

Nick

unread,
Jul 16, 2009, 4:22:12 PM7/16/09
to google-analytics-api - GA Data Export API
Hey Erik,

There's a great GData article on how to configure the Java Client
library to work through proxies here : http://code.google.com/apis/gdata/articles/proxy_setup.html#java

Hope that helps,
-Nick

Erik Norvelle

unread,
Jul 17, 2009, 3:50:34 AM7/17/09
to google-analytics-api - GA Data Export API
Howdy Nick,

Thanks for the speedy answer... the Google Client acts just the way it
ought to, which is a rather rare experience in the software world.

Cheers,
Erik
Reply all
Reply to author
Forward
0 new messages