This is an implementation of the Google Analytics page tracking API for Java. It's draws heavily from kra3's py-ga-mob.
try (GAClient client = new GAClient()){
client.trackPageView(
new Tracker( "UA-12345678-1", "www.example.com"),
new Page("/example"),
new Session(),
new Visitor());
}
See com.tapstream.ga4j.TestClient.testPageViewParameters() for an example of more advanced usage.