PHP is listed as a browser in Google Analytics. 50 sessions have been created.
My own server is PHP and there is a server-side script that records certain Events by pushing data into GA. I checked the Events report and sure enough, there was the exact same number 50, as the number of
So we can safely assume that these stats are actually about hits on the GA API. But why are my own server-side requests to Analytics being bundled in with data which should be about the users? I look at the Browser + OS report to learn about my site's Users, surely mixing in information about my server-side requests to the API is misleading?! PHP is not one of my users browsers, it is my own server pushing user data into my Analytics account.
Is there a some parameters I can add to the API requests? Should I be capturing the User Agent string myself and passing that to the GA API? If so, do I then capture the IP Address, language et cetera, the never ending list of things GA records. Can I just tell GA not to include the information about which server is hitting the API but instead, just the information given to the API?