Back to Browse

Google Analytics Measurement API: Invoking in Java (How-To)

5.9K views
Sep 12, 2016
5:15

This is a brief introduction to the Coherent Data Adapter: Google Analytics Measurement API Client which is open-source middleware for sending analytics data from any Java application to the Google Analytics Measurement API. Analytics data is posted to the Google Analytics Measurement API via a queryBuilder, which uses method chaining to construct the URI -- for example: String result = queryBuilder .withV1() // Protocol version 1 .withTid(googleAnalyticsUAID) // Tracking id .withCIDAsRandomUUID() // Client id .withTAsEvent() // Hit type .withEc("Integration Test") // Event category .withAn("CL GAMA Client AN") // application name .withEa("CL GAMA Client EA") // Event action .withAv("1.0.0") // Application version .withEl("CL GAMA Client EL") // Event label .doPost(); The dependencies are available on Maven Central here: https://mvnrepository.com/artifact/com.coherentlogic.gama/client This middleware is available under the LGPL open-source license and the product page can be found here: https://coherentlogic.com/middleware-development/google-analytics-measurement-api-client?utm_source=youtube.com Source code can be found here: https://bitbucket.org/CoherentLogic/google-analytics-measurement-api-client/ Feel free to connect with me on LinkedIn: https://www.linkedin.com/in/thomasfuller/ #Java #googleanalytics #SEO #adwords #middleware #webservices #analytics #digitalmarketing #socialmedia #marketing #userengagement #universal-analytics

Download

0 formats

No download links available.

Google Analytics Measurement API: Invoking in Java (How-To) | NatokHD