Monitor Google Analytics requests on an iPhone Application

后端 未结 5 1536
情话喂你
情话喂你 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:37

    Google Analytics does request via HTTPS -> SSL encrypted. You should in fact see their requests using Charles. Just, you won't be able to see the content of those requests.

    To negate your note right away; you can certainly see HTTP/s requests from the device itself as well using Charles.

    See this blog entry for more on Charles' configuration.

    Make sure you understand the fundamental difference between HTTP and HTTPS.

    Edit: I was all wrong. Google Analytics does not use HTTPS for the tracking but plain HTTP (TCP Port 80). I have yet to find out on why the tracking requests are not visible when using Charles. They are however visible when using Wireshark.

    -> Use Wireshark for tracing Google Analytics activity.

    To get that accomplished, I am sharing the internet connection from my Mac with my iOS device as follows:

    System Preferences -> Sharing -> Internet Sharing -> Share your connection from:Ethernet, To computers using:Wifi

    Once connected, I make sure to minimize the network traffic of the Mac itself to prevent noisy tracing.

    The rest is Wireshark magic and a bit hard to describe off the head (can not do it at this moment).

提交回复
热议问题