Hello API Analytics: running PHP quickly for service accounts will not help you at all. This code uses the basic reporting API, the basic reporting API to request data from . Google Analytics does not send data to Google Analytics.
To send data to Google Analytics, we use the Measurement Protocol . The measurement protocol is used to send information to Google analytics, the JS fragment you posted also uses the measurement protocol.
You can use the measurement protocol from any language that supports the HTTP message or Http Get. However, there is no special library for sending information to Google analytics, which you will need to format yourself. A tip would be to use Validating hits to test it before posting it to Google while you are developing it.
It probably looks something like this.
http://www.google-analytics.com/collect?v=1&tid=UA-XXX-Y&cid=35009a79-1a05-49d7-b876-2b884d0f825b&an=My%20Awesom%20APP&aid=com.daimto.awesom.app&av=1.0.0&aiid=come.daimto.awesom.installer &t=event&ec=list&ea=accounts&userclicked&ev=10
DaImTo
source share