Monitor Google Analytics requests on an iPhone Application

后端 未结 5 1508
情话喂你
情话喂你 2021-01-12 16:26

I am trying to monitor the Google Analytics request on an iPhone application and for some reason I don\'t see any of GA the requests. However I can see and uniquely identify

5条回答
  •  醉梦人生
    2021-01-12 16:52

    With the latest version of Charles you can see GA tags and it's a bit easier then using the approach from Jordan Brough above. Steps:

    • Download the latest version of Charles.
    • Launch Charles and set your iOS device to use Charles as a proxy in Settings->Wi-Fi [networkName]. Tap the I icon then scroll down to the HTTP Proxy section. Tap Manual and add the server IP and port 8888.
    • Launch Mobile Safari and navigate to http://www.charlesproxy.com/getssl. Install the Charles Root Cert.
    • In Charles add the GA server in Proxy->SSL Proxying Settings. The GA server is ssl.google-analytics.com.
    • Quit Charles and restart.

    Note that the GA SDK batches requests (although sometimes it looks like it makes single requests on occasion as well) so if you think you do not see your tag make sure you scroll through the batched request. If you are looking for screen views the parameter is cd. GA tags in CharlesProxy

提交回复
热议问题