TosKen
TosKen

Reputation: 491

Analytics Service/API for plain java desktop applications

I am looking for a analytics service like keen.io or google analytics for plain desktop applications. google analytics only provides a android sdk which is not usable with a java sdk. Anyone knows a good service for this? We just want to track user events on our application (selected product, number of pictures, ...)

Thanks Sebastian

One more important functionality is that we can track a user session. All events must be assignable to a user / session

Upvotes: 0

Views: 152

Answers (1)

Linda Lawton - DaImTo
Linda Lawton - DaImTo

Reputation: 116968

There is an Android, IOS and windows SDKs along with the normal analytics.js JavaScript snippet. For inserting data in to Google Analytics.

You are correct there is no SDK for pure Java.

That being said you can do this on your own using Pure HTTP Posts or HTTP GETs via the Measurement protocol

POST /collect HTTP/1.1
Host: www.google-analytics.com

PayLoad

v=1&tid=UA-XXXXX-Y&cid=555&t=pageview&dp=%2Fhome

The client id and user id parameters will allow you to control user and session data.

Upvotes: 1

Related Questions