Closed IgorRodchenkov closed 6 years ago
It was exciting to learn and experiment, but it did not quite work for me after all. I think, Google Analytics is probably not a suitable tool for PC service/data access tracking and analysis (and we also have previous years data to be converted and uploaded, which also would require making custom dimensions (time), filters, reports and views; i.e, standard google-analytics dashboards and reports would not help much). So let's keep using Elastic tools (elasticsearch, filebeats, kibana).
Closed.
See Google Analytics Measurement Protocol and MP Parameters Reference.
We could turn PC2 log into GA hits (page views and events) using MP parameters, such as:
v (=1), t, tid, uip, cg1, dp, dt, ds, ec, ea, el, an
(e.g., can try this).And an example code (can be simpler, using only http-client or Spring RestTemplate.)