0:00:01.190,0:00:07.470 Hi this is Tom from Coherent Logic and today i would like to take you through a 0:00:07.470,0:00:12.139 quick overview of our Java client for working with the Google Analytics 0:00:12.139,0:00:21.050 Measurement API. I'd like to jump right in and cover four parameters available: 0:00:21.590,0:00:30.660 the protocol version has a parameter name of V, the tracking ID has a 0:00:30.660,0:00:39.030 parameter name of TID and lastly anonymized IP has a parameter 0:00:39.030,0:00:49.800 name of a IP. We'll take a look at some code next. Here we have a integration 0:00:49.800,0:00:58.190 test which uses JUnit and we have a query builder -- the query builder is 0:00:58.190,0:01:03.059 instantiated using the default constructor this is a spring bean and is 0:01:03.059,0:01:08.430 appropriate for use in enterprise applications, middleware, desktop 0:01:08.430,0:01:17.720 applications, etc and we're going to build up a query and execute it. 0:01:20.450,0:01:29.540 In all of our examples we will call on "with" methods and then we will provide 0:01:29.540,0:01:36.530 the parameter name. So we need a protocol version and that's one we have a 0:01:36.530,0:01:44.540 convenience method for; we need a tracking ID this is the UA identifier 0:01:44.540,0:01:58.420 which is provided to you by Google Analytics we need a client identifier 0:01:59.170,0:02:04.700 it's called CID and we have a convenience method to pass it a randomly 0:02:04.700,0:02:16.520 generated UUID; we need a hit type that's TA and we have several options available 0:02:16.520,0:02:24.739 to us -- sorry that's T and we say with T as the 0:02:24.739,0:02:31.070 event exception item page view screen view social timing or transaction we 0:02:31.070,0:02:41.290 need event we need an event category that's EC 0:02:48.630,0:02:53.850 we need an application named that's AN 0:03:00.540,0:03:07.920 we need a event action that's EI 0:03:18.540,0:03:35.700 we need an application version that's A V and we need an event label EL. 0:03:46.160,0:03:50.880 So that's what our query will look like. We need to execute that query and we 0:03:50.880,0:03:58.950 will use the doPost method to achieve that. Now in this example we'll run this 0:03:58.950,0:04:08.239 test and then we will go to the real-time view on Google Analytics and 0:04:08.239,0:04:15.330 you can see that there is one event that just came in you can see the location is 0:04:15.330,0:04:23.359 in Reston Virginia. We can then check the events option here 0:04:26.880,0:04:33.870 and you can see that we have some information. The event action is the UCL 0:04:33.870,0:04:42.230 GAMA Client EI you can drill in and see some more information here. 0:04:47.490,0:04:54.199 So that's the conclusion of our example and if you have any questions, comments, 0:04:54.199,0:05:00.150 suggestions, or bug fixes please let me know. This is open source software -- it's 0:05:00.150,0:05:05.310 available under the LGPL license and it will be available on maven central in 0:05:05.310,0:05:13.819 the next couple of days. Thanks for your time and see you soon.